rust/src/librustdoc/html
Jacob Hoffman-Andrews 3649b90b33 Simplify rendering of stylesheet links into HTML
We carry around a list of stylesheets that can carry two different types
of thing:

 1. Internal stylesheets specific to a page type (only for settings)
 2. Themes

In this change I move the link generation for settings.css into
settings(), so Context.style_files is reserved just for themes.

We had two places where we extracted a base theme name from a list of
StylePaths. I consolidated that code to be a method on StylePath.

I moved generation of link tags for stylesheets into the page.html
template. With that change, I made the template responsible for special
handling of light.css (making it the default theme) and of the other
themes (marking them disabled). That allowed getting rid of the
`disabled` field on StylePath.
2021-11-24 19:41:47 -08:00
..
highlight rustdoc: use better highlighting for *const, *mut, and &mut 2021-10-25 11:13:43 -07:00
length_limit Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown heading_level: u32 -> heading_offset: HeadingOffset 2021-10-04 22:28:04 -04:00
render Simplify rendering of stylesheet links into HTML 2021-11-24 19:41:47 -08:00
static Auto merge of #91203 - GuillaumeGomez:rollup-kwtqvb1, r=GuillaumeGomez 2021-11-24 23:09:42 +00:00
templates Simplify rendering of stylesheet links into HTML 2021-11-24 19:41:47 -08:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs rustdoc tweaking 2021-01-30 01:02:18 +00:00
format.rs rustdoc: Remove top-level wrappers for ImplKind methods 2021-11-07 18:26:37 -08:00
highlight.rs Sort scraped call locations before serializing 2021-11-04 13:57:09 -07:00
layout.rs Simplify rendering of stylesheet links into HTML 2021-11-24 19:41:47 -08:00
length_limit.rs Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown.rs rustdoc: Avoid using Iterator::count() where possible 2021-11-18 23:04:51 -05:00
mod.rs Refactor Markdown length-limited summary implementation 2021-08-19 16:22:54 -07:00
sources.rs rustdoc: Small micro-optimizations and cleanups 2021-10-31 21:10:32 -07:00
static_files.rs rustdoc: use ttf based font for cjk glyphs 2021-10-26 10:58:13 +09:00
tests.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
toc.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00