Repository navigation
Search plugin: added option to put full nav path to the search result title - #2590
Closed
lord-vesel wants to merge 3 commits into
Closed
lord-vesel wants to merge 3 commits into
lord-vesel wants to merge 3 commits into
Conversation
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
Author
oprypin
reviewed
Oct 10, 2021
| page_ancestors = [] | ||
| full_title = '' | ||
|
|
||
| if len(page.ancestors): |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
|
Any plans to merge this PR? It would be useful in our context |
|
+1. |
|
I had this idea myself, and here I find someone else had it before me! Please merge this. It would be super helpful for us, as we have headers that are identical to headers on other pages, and it's hard to figure out which page the search result is for. |
|
@lord-vesel any chance to rebase? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Hi! Here is my first PR 😁
Added option
full_path_in_titlewhich allows to get not just page title in a search result, but full path separated with slashes, like: "Section 1 / Subsection / Page Title".To enable the feature, one has to add following to mkdocs.yml:
Tests for search plugin is updated too.