From c87166a49a82f702dfe1e11472583f9562f2e620 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 28 Apr 2019 00:37:20 +1000 Subject: [PATCH] Prevent auto-addition of toc by autoapi - Also fix links in sidebar --- docs/conf.py | 1 + docs/index.rst | 8 +++----- docs/introduction.rst | 4 ++++ docs/templates/layout.html | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 docs/introduction.rst diff --git a/docs/conf.py b/docs/conf.py index 3efd301b47..792f96b010 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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'] diff --git a/docs/index.rst b/docs/index.rst index 9c43b19929..9130e05d58 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,12 +9,10 @@ Welcome to InvenTree's documentation! .. toctree:: :maxdepth: 2 :caption: Contents: + :hidden: + InvenTree -Indices and tables -================== - * :ref:`genindex` -* :ref:`modindex` -* :ref:`search` +* :ref:`modindex` \ No newline at end of file diff --git a/docs/introduction.rst b/docs/introduction.rst new file mode 100644 index 0000000000..a10fe0e5b5 --- /dev/null +++ b/docs/introduction.rst @@ -0,0 +1,4 @@ +Introduction +============ + +This is a test \ No newline at end of file diff --git a/docs/templates/layout.html b/docs/templates/layout.html index a778e0fdb3..620814d1b3 100644 --- a/docs/templates/layout.html +++ b/docs/templates/layout.html @@ -2,6 +2,6 @@ {% block menu %} {{ super() }} - Index - Module Index + Module Index + Index {% endblock %} \ No newline at end of file