mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Force TOC to appear in sidebar for each page
- https://stackoverflow.com/questions/18969093/how-to-include-the-toctree-in-the-sidebar-of-each-page#19007358
This commit is contained in:
parent
a499fd325e
commit
4aef8eecea
2
.gitignore
vendored
2
.gitignore
vendored
@ -29,8 +29,6 @@ local_settings.py
|
|||||||
|
|
||||||
# Sphinx files
|
# Sphinx files
|
||||||
docs/_build
|
docs/_build
|
||||||
docs/_static
|
|
||||||
docs/_templates
|
|
||||||
|
|
||||||
# Local media storage (only when running in development mode)
|
# Local media storage (only when running in development mode)
|
||||||
InvenTree/media
|
InvenTree/media
|
||||||
|
18
docs/conf.py
18
docs/conf.py
@ -28,6 +28,7 @@ copyright = '2019, InvenTree'
|
|||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||||
# ones.
|
# ones.
|
||||||
extensions = [
|
extensions = [
|
||||||
|
'sphinx.ext.autodoc',
|
||||||
'sphinx.ext.napoleon',
|
'sphinx.ext.napoleon',
|
||||||
'autoapi.extension',
|
'autoapi.extension',
|
||||||
]
|
]
|
||||||
@ -37,6 +38,12 @@ napoleon_numpy_docstring = False
|
|||||||
|
|
||||||
autoapi_dirs = [
|
autoapi_dirs = [
|
||||||
'../InvenTree',
|
'../InvenTree',
|
||||||
|
'../Inventree/build',
|
||||||
|
'../InvenTree/company',
|
||||||
|
'../InvenTree/InvenTree',
|
||||||
|
'../InvenTree/part',
|
||||||
|
'../InvenTree/stock',
|
||||||
|
'../InvenTree/users',
|
||||||
]
|
]
|
||||||
|
|
||||||
autoapi_options = [
|
autoapi_options = [
|
||||||
@ -60,7 +67,8 @@ autoapi_ignore = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
autoapi_template_dir = 'templates'
|
||||||
|
|
||||||
|
|
||||||
# List of patterns, relative to source directory, that match files and
|
# List of patterns, relative to source directory, that match files and
|
||||||
# directories to ignore when looking for source files.
|
# directories to ignore when looking for source files.
|
||||||
@ -85,3 +93,11 @@ html_theme = 'sphinx_rtd_theme'
|
|||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
html_static_path = ['_static']
|
html_static_path = ['_static']
|
||||||
|
|
||||||
|
# Table of contents in sidebar
|
||||||
|
html_sidebars = {'**': [
|
||||||
|
'globaltoc.html',
|
||||||
|
'relations.html',
|
||||||
|
'sourcelink.html',
|
||||||
|
'searchbox.html'
|
||||||
|
]}
|
Loading…
x
Reference in New Issue
Block a user