You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Half of the page is covered by the warning header. From what I can see, rustdoc adds the necessary css file to the root folder (i.e., it creates a theme.css file), while the actual website tries to find it under static.files/theme.css.
I am definitely not an expert here, but, from what I've tried, you can solve the problem by using html-in-header instead of extend-css. The extra CSS can be wrapped in a <style> tag, making it a perfectly valid HTML to include in the header:
The documentation under https://tracing.rs/tracing/ is missing CSS
styles. Fixes#2444
Used the `--html-in-header` rustdoc flag instead of `--extend-css`.
Converted the css file into an html file.
https://tracing.rs/tracing/
The documentation looks like this:
Half of the page is covered by the warning header. From what I can see, rustdoc adds the necessary css file to the root folder (i.e., it creates a theme.css file), while the actual website tries to find it under static.files/theme.css.
I am definitely not an expert here, but, from what I've tried, you can solve the problem by using
html-in-header
instead ofextend-css
. The extra CSS can be wrapped in a<style>
tag, making it a perfectly valid HTML to include in the header:I can send a PR, but let me know if there's a better way.
Side note
It pains me to see the actual CSS content, even after the fix, rendered on a mobile screen, but that's a separate problem.
The text was updated successfully, but these errors were encountered: