From 12e0367c66bd67f9c7d3f5746034590ca5524025 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 15 Mar 2025 16:10:02 +0100 Subject: [PATCH] Optimized sphinx --- docs/.gitkeep | 0 index.rst | 5 +--- roles/README.md | 5 ++-- roles/categories.rst | 3 +++ roles/glosar.rst | 8 ++++++ roles/index.rst | 6 ++--- sphinx/_templates/local_md_files.html | 2 +- sphinx/local_md_files.py | 7 ++--- sphinx/roles_overview.py | 39 ++++++++++++++++++--------- 9 files changed, 47 insertions(+), 28 deletions(-) delete mode 100644 docs/.gitkeep create mode 100644 roles/categories.rst create mode 100644 roles/glosar.rst diff --git a/docs/.gitkeep b/docs/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/index.rst b/index.rst index ff3a35d4..50658d53 100644 --- a/index.rst +++ b/index.rst @@ -7,7 +7,4 @@ Cyber Master Infrastructure Solution documentation :glob: * - roles/index.rst - - -.. roles-overview:: \ No newline at end of file + roles/index.rst \ No newline at end of file diff --git a/roles/README.md b/roles/README.md index 6df18ae0..aadd1bde 100644 --- a/roles/README.md +++ b/roles/README.md @@ -1,3 +1,2 @@ -test - -# h1 \ No newline at end of file +# Hello World +test \ No newline at end of file diff --git a/roles/categories.rst b/roles/categories.rst new file mode 100644 index 00000000..d5c17e3a --- /dev/null +++ b/roles/categories.rst @@ -0,0 +1,3 @@ +# Applications by Category + +.. roles-overview:: \ No newline at end of file diff --git a/roles/glosar.rst b/roles/glosar.rst new file mode 100644 index 00000000..9a0e26d0 --- /dev/null +++ b/roles/glosar.rst @@ -0,0 +1,8 @@ +# Application Glosar + +.. toctree:: + :maxdepth: 1 + :caption: Included Applications: + :glob: + + */README \ No newline at end of file diff --git a/roles/index.rst b/roles/index.rst index fbe78e4f..7d33d4d5 100644 --- a/roles/index.rst +++ b/roles/index.rst @@ -6,8 +6,6 @@ Applications and Roles .. toctree:: :maxdepth: 1 - :caption: Included Applications: + :caption: Overview :glob: - - */README - + ./*.rst diff --git a/sphinx/_templates/local_md_files.html b/sphinx/_templates/local_md_files.html index c58e1984..83743b9c 100644 --- a/sphinx/_templates/local_md_files.html +++ b/sphinx/_templates/local_md_files.html @@ -14,7 +14,7 @@ {% endfor %} {% endif %} -
  • {{ item.text }}
  • +
  • {{ item.text }}
  • {% set ns.current_level = item.level %} {% endfor %} {# Close any remaining open