Skip to content

TOC.Integrate not working for small project? See code and sample doc #8177

Answered by mocdaniel
Vibemetheus asked this question in Q&A
Discussion options

You must be logged in to vote

The formatting of your mkdocs.yml isn't correct - the features key needs to go under theme, not under palette in the config file, like this:

site_name: My MkDocs Site
site_url: https://example.com
theme:
  name: material
  palette:
    - scheme: default
      toggle:
        icon: material/brightness-7
        name: Switch to dark mode
    - scheme: slate
      toggle:
        icon: material/brightness-4
        name: Switch to light mode
  features:
    - navigation.instant
    - navigation.instant.progress
    - navigation.prune
    - navigation.sections
    - navigation.tabs
    - navigation.tabs.sticky
    - navigation.top
    - navigation.tracking

I'll shamelessly plug my free, open-…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Vibemetheus
Comment options

@Vibemetheus
Comment options

@mocdaniel
Comment options

Answer selected by Vibemetheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants