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

Allow the Table of Contents to be expanded to show subsections and collapsed to hide subsections. #2531

Open
2 tasks done
Brayden-Zhang opened this issue Jun 29, 2024 · 3 comments

Comments

@Brayden-Zhang
Copy link

Have you checked that your feature request isn't already filed?

  • I read through FAQ and searched through the past issues, none of which addressed my feature request.
  • Yes, I have checked that this feature request isn't already filed.

Description & Motivation

Allow the Table of Contents to be expanded to show subsections and collapsed to hide subsections.
Also add support for sub-subsections

Pitch

No response

Alternatives

No response

Additional context

No response

@george-gca
Copy link
Collaborator

Which table of contents do you mean? Our table of contents in a sidebar already supports this.

@Brayden-Zhang
Copy link
Author

Sorry, I meant for the distill format, specifically. Also, to clarify, I meant a dropdown menu that shows subsections (can be expanded with a + button and collapsed with a - button).

@george-gca
Copy link
Collaborator

george-gca commented Jun 29, 2024

Maybe this can be achieved using <details>, check this gist and also GitHub docs.

I agree that having the toc be automatically generated for the distill layout would be nice. PRs are welcome on this matter.

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

No branches or pull requests

2 participants