Skip to content

Commit

Permalink
added_git_ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sabapatm authored and sabapatm committed Dec 28, 2024
1 parent 675524b commit 0365c7e
Show file tree
Hide file tree
Showing 7 changed files with 293 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
site/
docs/docker/php-fpm/script/
# docs/Meeting
# docs/Meeting
pyvenv.cfg
lib/
include/
bin/
pip.conf
3 changes: 3 additions & 0 deletions .obsidian/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"showLineNumber": true
}
1 change: 1 addition & 0 deletions .obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
30 changes: 30 additions & 0 deletions .obsidian/core-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}
22 changes: 22 additions & 0 deletions .obsidian/graph.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"collapse-filter": false,
"search": "",
"showTags": false,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,
"collapse-color-groups": false,
"colorGroups": [],
"collapse-display": false,
"showArrow": false,
"textFadeMultiplier": 0,
"nodeSizeMultiplier": 1,
"lineSizeMultiplier": 1,
"collapse-forces": false,
"centerStrength": 0.518713248970312,
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 1.0750737421162953,
"close": true
}
195 changes: 195 additions & 0 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"main": {
"id": "d07af9289e766b13",
"type": "split",
"children": [
{
"id": "586eb9ab44cfbd43",
"type": "tabs",
"children": [
{
"id": "80d86825c3523d2f",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "docs/Helm_chart/Helm_chart.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "Helm_chart"
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "1358028b61180e9f",
"type": "split",
"children": [
{
"id": "8233c65ac256c454",
"type": "tabs",
"children": [
{
"id": "9d7f19b880dd38ef",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
},
"icon": "lucide-folder-closed",
"title": "Files"
}
},
{
"id": "18e0fce593ccba42",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "helm",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
},
"icon": "lucide-search",
"title": "Search"
}
},
{
"id": "9166d39c16fe7ae3",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {},
"icon": "lucide-bookmark",
"title": "Bookmarks"
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "c5b6cde9e223148f",
"type": "split",
"children": [
{
"id": "a9915e3a57891d05",
"type": "tabs",
"children": [
{
"id": "7d36f84b5339f790",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "Backlinks"
}
},
{
"id": "d11f2f6972232baf",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "Outgoing links"
}
},
{
"id": "d9e754176c86e6a4",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
},
"icon": "lucide-tags",
"title": "Tags"
}
},
{
"id": "24813c939479a879",
"type": "leaf",
"state": {
"type": "outline",
"state": {},
"icon": "lucide-list",
"title": "Outline"
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false
}
},
"active": "80d86825c3523d2f",
"lastOpenFiles": [
"docs/Helm_chart/Helm_chart.md",
"docs/Kubernetes/basics.md",
"docs/Helm_chart",
"docs/Kubernetes/CheatSheet.md",
"exec.md",
"docs/linux/Linux-terminal-profile.md",
"Untitled",
"docs/linux/aws.centos7.md",
"docs/AWS/soci.md",
"docs/AWS/s3-bucket.md",
"docs/AWS/remote-ec2.md",
"docs/AWS/RDS.md",
"docs/AWS/Nat_instance.md",
"docs/AWS/mysqld.md",
"docs/AWS/lambda.md",
"docs/AWS/IAM.md",
"docs/AWS/EC2.md",
"docs/AWS/Dynamodb.md",
"docs/AWS/DMS.md",
"docs/AWS/Databases.md",
"docs/AWS/codepipeline.md",
"docs/AWS/CI-CD.md",
"docs/AWS/bot-fake-crawler-bots.md",
"docs/AWS/Aws-Athena.md",
"docs/AWS/Aws-well-architech.md",
"docs/AWS/aws_clean_rooms.md",
"docs/AWS/amazon-linux.md",
"docs/AWS/Amazon-Kinesis.md",
"Untitled 2.canvas",
"Untitled.canvas",
"Untitled 1.canvas"
]
}
36 changes: 36 additions & 0 deletions docs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import os
import yaml

def generate_nav_from_docs(docs_dir):
nav = []
for root, _, files in os.walk(docs_dir):
rel_dir = os.path.relpath(root, docs_dir)
if rel_dir == ".":
rel_dir = ""
section = []
for file in sorted(files):
if file.endswith(".md"):
path = os.path.join(rel_dir, file).replace("\\", "/")
title = os.path.splitext(file)[0].replace("-", " ").capitalize()
section.append({title: path})
if section:
if rel_dir:
nav.append({rel_dir.capitalize(): section})
else:
nav.extend(section)
return nav

def update_mkdocs_yaml(nav, yaml_file="mkdocs.yml"):
with open(yaml_file, "r") as f:
config = yaml.safe_load(f)

config["nav"] = nav

with open(yaml_file, "w") as f:
yaml.dump(config, f, default_flow_style=False, sort_keys=False)

if __name__ == "__main__":
docs_directory = "docs"
nav_structure = generate_nav_from_docs(docs_directory)
update_mkdocs_yaml(nav_structure)
print("mkdocs.yml updated with navigation from docs folder.")

0 comments on commit 0365c7e

Please sign in to comment.