Skip to content

Toctree not shown in sidebar #128

@thmsklngr

Description

@thmsklngr

Hi,

I wanted to use this theme for my current project and so I switched from the RTD theme - and I immediately I recognized, that I can't see links in the left sidebar. I also tried to configure it like the one in the repo, but no success. Any hints for me?

Relevant entries in conf.py:

import sphinx_material
extensions.append("sphinx_material")
html_theme_path = sphinx_material.html_theme_path()
html_context = sphinx_material.get_html_context()
html_theme = 'sphinx_material'

html_theme_options = {
    'nav_title': 'My project',
    'globaltoc_depth': 3,
    'globaltoc_collapse': False,
    'globaltoc_includehidden': False,
}

index.rst:

Welcome to My project's documentation!
=====================================

.. toctree::
	:hidden:

	Home<self>

.. toctree::
   :glob:
   :maxdepth: 1
   :caption: Library

   lib/index
   lib/*

.. toctree::
   :glob:
   :maxdepth: 1
   :caption: Modules

   modules/index
   modules/*

The only entry in the sidebar is the title set via 'nav_title'. :(

Regards, Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions