Prevent auto-addition of toc by autoapi

- Also fix links in sidebar
This commit is contained in:
Oliver Walters 2019-04-28 00:37:20 +10:00
parent 0d8f14d3e2
commit c87166a49a
4 changed files with 10 additions and 7 deletions

View File

@ -69,6 +69,7 @@ autoapi_ignore = [
# Add any paths that contain templates here, relative to this directory.
autoapi_template_dir = 'templates'
autoapi_root = 'api'
autoapi_add_toctree_entry = False
templates_path = ['templates']

View File

@ -9,12 +9,10 @@ Welcome to InvenTree's documentation!
.. toctree::
:maxdepth: 2
:caption: Contents:
:hidden:
InvenTree <introduction>
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
* :ref:`modindex`

4
docs/introduction.rst Normal file
View File

@ -0,0 +1,4 @@
Introduction
============
This is a test

View File

@ -2,6 +2,6 @@
{% block menu %}
{{ super() }}
<a href="genindex.html">Index</a>
<a href="py-modindex.html">Module Index</a>
<a href="/py-modindex.html">Module Index</a>
<a href="/genindex.html">Index</a>
{% endblock %}