Skip to content

issue about sidebar.md not found #11

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

Merged
merged 2 commits into from
Oct 19, 2022
Merged

issue about sidebar.md not found #11

merged 2 commits into from
Oct 19, 2022

Conversation

dzylikecode
Copy link
Owner

@dzylikecode dzylikecode commented Oct 19, 2022

problem 1

The scroll will be in the wrong position when you save the markdown file if the current markdown file can't be found in the sidebar. I find the reason is that Docsify won't execute the function hook.ready if the Markdown file is not in the sidebar. So you'd better add the markdown file to the sidebar first before writing the Markdown file with joy.

problem 2

docsify-plugin-runkit doesn't work if sidebar.md doesn't exist in the same directory.

@dzylikecode
Copy link
Owner Author

dzylikecode commented Oct 19, 2022

solved

the problem is that I don't respond to 404 if the file is not found.

@dzylikecode dzylikecode merged commit 00628a5 into master Oct 19, 2022
@dzylikecode dzylikecode deleted the sidebar-affect branch October 19, 2022 06:17
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.

1 participant