Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable TOC at a page level #843

Open
vvarp opened this issue Mar 27, 2025 · 3 comments
Open

Disable TOC at a page level #843

vvarp opened this issue Mar 27, 2025 · 3 comments

Comments

@vvarp
Copy link

vvarp commented Mar 27, 2025

I have document which could use some extra width, and I want to disable TOC to reclaim some space without resorting to a custom page.
I've been looking for an smart & easy way to do it via plugin, but I failed hard.

Rough idea - is this something that could be managed via markdown's frontmatter metadata?, eg.

---
title: Page with tons of H2 & H3
disable_toc: true
---
@dan-lee
Copy link
Contributor

dan-lee commented Mar 28, 2025

Hey @vvarp thanks for your issue. You can actually already do this with toc: false at the frontmatter level, as you suggested :)

We are working on documentation for frontmatter, thanks for bringing this to our attention!
Let me know if this works for you

@vvarp
Copy link
Author

vvarp commented Mar 28, 2025

haha, that's amazing :D

I quickly checked toc: false and while it indeed hides the TOC, it doesn't reclaim the extra space, which is the real motivation behind

If that's the case, it seems the custom page is my only option?

@dan-lee
Copy link
Contributor

dan-lee commented Mar 28, 2025

Interesting! I wasn't aware of this. I wonder if this could be a frontmatter option too? (something like fullWidth)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants