jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
177 stars 28 forks source link

[jupiter-book] Missing Table of Contents #331

Open Mrsenior12 opened 4 months ago

Mrsenior12 commented 4 months ago

I'm using this theme inside jupyter-book to generate documentation. Unfortunately in every file excluding "root" file Table of Contents is missing.

In documentation I could find anything related to that issue :(

Section with theme configuration in _config.yml looks like that:

sphinx:
  config:
    html_theme: "sphinx_immaterial"
    html_theme_options: {
    "globaltoc_collapse": True,
    "edit_uri": "blob/develop/docs",
    "features": [
      "navigation.expand",
      "navigation.selection",
      "navigation.top",
      "search.share",
      "toc.follow",
      "toc.sticky",
    ],
    "palette": [
        {
            "media": "(prefers-color-scheme: light)",
            "scheme": "default",
            "toggle": {
                "icon": "material/lightbulb-outline",
                "name": "Switch to dark mode",
            }
        },
        {
            "media": "(prefers-color-scheme: dark)",
            "scheme": "slate",
            "toggle": {
                "icon": "material/lightbulb",
                "name": "Switch to light mode",
            }
        },
    ],
  }
  extra_extensions:
  - sphinx_inline_tabs
  - sphinx_immaterial
2bndy5 commented 4 months ago

I never used jupiter-book before. Providing a config is not very helpful. Weirder that it is an oddly written YAML config. We need steps to reproduce. Can you attach a zip of a sample project that re-produces the problem?