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

fix {docsify-ignore-all} and {docsify-ignore} bug #299

Merged
merged 2 commits into from
Oct 31, 2017

Conversation

mixj93
Copy link
Contributor

@mixj93 mixj93 commented Oct 31, 2017

Please makes sure these boxes are checked before submitting your PR, thank you!

  • Make sure you are merging your commits to master branch.
  • Add some descriptions and refer relative issues for you PR.
  • DO NOT include files inside lib directory.

Should I include the file in themes/ folder ?

Sorry for the previous PR #298, I seems the doc is correct, but there is a bug in code.

Also, find any problem in {docsify-ignore}, second contiunous {docsify-ignore} still show in sidebar

@@ -191,7 +191,7 @@ export class Compiler {
const currentPath = this.router.getCurrentPath()
const { cacheTree, toc } = this

toc[0] && toc[0].ignoreAllSubs && (this.toc = [])
toc[0] && toc[0].ignoreAllSubs && toc.splice(0, toc.length)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need toc.splice(0)

@mixj93 mixj93 changed the title fix {docsify-ignore-all} not work bug fix {docsify-ignore-all} and {docsify-ignore} bug Oct 31, 2017
@QingWei-Li QingWei-Li merged commit cc98f56 into docsifyjs:master Oct 31, 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