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

Add ability to ignore headers when generating toc #127

Merged
merged 3 commits into from
Mar 15, 2017
Merged

Add ability to ignore headers when generating toc #127

merged 3 commits into from
Mar 15, 2017

Conversation

christopherwk210
Copy link
Contributor

@christopherwk210 christopherwk210 commented Mar 14, 2017

When generating toc in a custom sidebar, sometimes you may wish to ignore certain headers and prevent them from appearing in the toc. This pr adds the functionality with flags that can be entered in the headers on a page.

Adding {docsify-ignore} to a header will prevent it from appearing in the toc, and adding {docsify-ignore-all} to the first top-level header on the page will prevent all headers on that page from being added to a toc.

@QingWei-Li QingWei-Li merged commit d57b80e into docsifyjs:master Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants