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

[search plugin] fix fetching unnecessary links issue #653

Merged
merged 1 commit into from
Oct 23, 2018

Conversation

cheng-kang
Copy link
Contributor

Closes #614

  • Currently, if configured in auto mode, search plugin gets all relative links in document and trying to index them.

  • This PR changes the query selector from all relative links to all top level sidebar nav links.

Reason is that only these links (and only them should) link to the markdown files of a project. If there is any file link in main content not listed in _sidebar.md, it should be listed there.

Also removed unnecessary helper object.

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