Quellcode durchsuchen

Enable support for Markdown inclusions

Jeremy Stretch vor 6 Jahren
Ursprung
Commit
70397461eb
2 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 2 0
      docs/requirements.txt
  2. 5 0
      mkdocs.yml

+ 2 - 0
docs/requirements.txt

@@ -0,0 +1,2 @@
+mkdocs
+git+https://github.com/cmacmackin/markdown-include.git

+ 5 - 0
mkdocs.yml

@@ -1,11 +1,16 @@
 site_name: NetBox Documentation
 site_name: NetBox Documentation
 site_url: https://netbox.readthedocs.io/
 site_url: https://netbox.readthedocs.io/
 repo_url: https://github.com/netbox-community/netbox
 repo_url: https://github.com/netbox-community/netbox
+python:
+    install:
+        - requirements: docs/requirements.txt
 theme:
 theme:
     name: readthedocs
     name: readthedocs
     navigation_depth: 3
     navigation_depth: 3
 markdown_extensions:
 markdown_extensions:
     - admonition:
     - admonition:
+    - markdown_include.include:
+        headingOffset: 1
 
 
 nav:
 nav:
     - Introduction: 'index.md'
     - Introduction: 'index.md'