mkdocs-windmill icon indicating copy to clipboard operation
mkdocs-windmill copied to clipboard

Remove the #_top anchor for the first element

Open albandewilde opened this issue 6 years ago • 3 comments

may the first element in the list isn't at the top of the page, so I change that to match to the element anchor

albandewilde avatar Mar 12 '20 02:03 albandewilde

The change is sensible, but the behavior with #_top is intentional -- there is no other link that scrolls back to the top, and the first heading is often a suitable choice for it. It's not a perfect behavior, but changing it would be a regression for some cases.

Perhaps this choice could be made somehow a property of the first link?

You can also override the theme just for your site using custom_dir (see https://www.mkdocs.org/user-guide/configuration/#theme).

dsagal avatar Mar 24 '20 05:03 dsagal

I understand, but isn't that a duplicated feature (scrolling back to top) ? Because on keyboards there already is a key to do that, it's the home key.

Otherwise, it may can be an option which can be configured in the mkdocs.yml file ?

albandewilde avatar Mar 24 '20 08:03 albandewilde

Yeah, an option would be good.

dsagal avatar Mar 24 '20 14:03 dsagal

I'm closing this PR because it was opened long time ago and it may be obsolete now.

albandewilde avatar Jul 08 '24 12:07 albandewilde