-
Notifications
You must be signed in to change notification settings - Fork 201
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
Add anchor-workaround for 'small-section-header' and method heading #640
Conversation
Just tried this: https://docs.rs/regex/1.3.5/regex/struct.Matches.html#impl-Borrow%3CT%3E Doesn't look very nice, but it's not from this change. Otherwise, this PR makes things a bit better. So I'm find with merging it. Your call @jyn514. :) |
@GuillaumeGomez Ehrm, it kinda looks "normal" to me. Do you mind taking a screenshot for me? |
That looks like it still has the anchor issue to me. The prod version running right now has the same issue. |
I've just checked that out and it seems like this trick won't work with impl headings because the styling for |
I still think that pushing all the content under the docs.rs top banner is the best solution. |
The problem with this is that |
If this is mobile only, then we can implement mobile-specific fixes. |
Honestly, I feel bad :/. Introducing that PR which allowed better chromium search experience doesn't really justify the broken things right now.
Do you mean not having a sticky header at all? |
Oh don't worry, the CSS has been broken long before you started making changes 😆. We might end up reverting your change though. |
@jyn514 Yes I kinda agree, I thought this could have worked by applying various fixes here and there but this requires a more “thorough” rework/redesign (probably starting with rustdoc) I guess. If @GuillaumeGomez agrees too, I would close this PR and revert all the changes related to this and perhaps open a new tracking issue. |
Yes and no. Depends how we do it. If we make the whole content start below the header, it won't go under it. |
Ok, please do this. |
See rust-lang#640. This reverts commit 3ababaf.
Note that we cannot change the generated HTML on past documentation. Doing so would at a minimum take several months of compute time, and might also cause builds to fail that previously passed. See #464. |
No need to change the HTML, just overload the CSS with our own. |
See #637 (comment).