From 0365c7ea48396b39b52d1758ce9bc98c4f578c7e Mon Sep 17 00:00:00 2001 From: sabapatm Date: Sat, 28 Dec 2024 14:15:06 +0530 Subject: [PATCH] added_git_ignore --- .gitignore | 7 +- .obsidian/app.json | 3 + .obsidian/appearance.json | 1 + .obsidian/core-plugins.json | 30 ++++++ .obsidian/graph.json | 22 ++++ .obsidian/workspace.json | 195 ++++++++++++++++++++++++++++++++++++ docs.py | 36 +++++++ 7 files changed, 293 insertions(+), 1 deletion(-) create mode 100644 .obsidian/app.json create mode 100644 .obsidian/appearance.json create mode 100644 .obsidian/core-plugins.json create mode 100644 .obsidian/graph.json create mode 100644 .obsidian/workspace.json create mode 100644 docs.py diff --git a/.gitignore b/.gitignore index fbcde08..fb66d80 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ site/ docs/docker/php-fpm/script/ -# docs/Meeting \ No newline at end of file +# docs/Meeting +pyvenv.cfg +lib/ +include/ +bin/ +pip.conf \ No newline at end of file diff --git a/.obsidian/app.json b/.obsidian/app.json new file mode 100644 index 0000000..a6d81b7 --- /dev/null +++ b/.obsidian/app.json @@ -0,0 +1,3 @@ +{ + "showLineNumber": true +} \ No newline at end of file diff --git a/.obsidian/appearance.json b/.obsidian/appearance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.obsidian/appearance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json new file mode 100644 index 0000000..436f43c --- /dev/null +++ b/.obsidian/core-plugins.json @@ -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 +} \ No newline at end of file diff --git a/.obsidian/graph.json b/.obsidian/graph.json new file mode 100644 index 0000000..e9319b0 --- /dev/null +++ b/.obsidian/graph.json @@ -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 +} \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json new file mode 100644 index 0000000..cf3272e --- /dev/null +++ b/.obsidian/workspace.json @@ -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" + ] +} \ No newline at end of file diff --git a/docs.py b/docs.py new file mode 100644 index 0000000..e44b801 --- /dev/null +++ b/docs.py @@ -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.")