Skip to content

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