Repository navigation
Replies: 2 comments 2 replies
|
What I'd like to have is:
You would use it like that for your use-case: docs: {
createDocFrontMatter: ({doc,frontMatter)}) => ({
...frontMatter,
"hide_table_of_contents": true,
}),
}Does it make sense? This generic system would be more powerful to support other use-cases as well, and would enable to turn on/off features like TOC on a per-doc basis. For example you could express that you want docs in a certain folder to have TOC, but not docs in another folder (instead of a static per-instance config) |
1 reply
|
It would be nice to be able to provide default front_matter values, specially to force |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I know that I can disable the TOC for every page by setting
hide_table_of_contents: truebut it would be nice, if this was also a plugin setting like:That would allow me to disable TOC per docs instance and not having to disable it for every item specifically.
Thanks!
All reactions