dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.09k stars 868 forks source link

Clicking search results should bring the user directly to the relevant fragment #228

Open lidermanrony opened 8 years ago

lidermanrony commented 8 years ago

Current behavior is - when clicking on search result (site search, not the toc filter search) we're getting the top of the page, even if it's a very long page and the result is at the end of the page. In this case we have to either use ctrl+f to search inside the page, or scroll down and look for the highlighted text.

A better alternative would be that search results granularity will be in the html fragment level, so if i'm searching for the word "foo" and it exists inside a markdown header called "baz" in a page called "bar" i'll be directed straight to http://www.example.com/bar.html#baz

saguiitay commented 8 years ago

+1

lidermanrony commented 8 years ago

Hey, is there any plan to address this issue?