rust/src
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
..
bootstrap
build_helper
ci
doc Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid 2021-11-24 22:56:37 +01:00
etc
librustdoc Simplify rendering of stylesheet links into HTML 2021-11-24 19:41:47 -08:00
llvm-project@f9b03d0e2d
rustdoc-json-types
test Auto merge of #91203 - GuillaumeGomez:rollup-kwtqvb1, r=GuillaumeGomez 2021-11-24 23:09:42 +00:00
tools Rollup merge of #91144 - ehuss:update-cargo, r=ehuss 2021-11-22 23:30:32 +01:00
README.md
stage0.json
version

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.