Skip to content

Commit dfa6622

Browse files
authored
Rollup merge of #115655 - notriddle:notriddle/rustdoc-fe-cleanup, r=GuillaumeGomez
rustdoc: remove unused ID `mainThemeStyle` This was added in #47620 and used to build the URL of the theme stylesheets. It isn't used any more, because #101702 changed it so that the URL was supplied in a `<meta>` tag, which also provides the hashes of the files.
2 parents 7ec8136 + 00b7d70 commit dfa6622

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustdoc/html/markdown.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,6 @@ fn init_id_map() -> FxHashMap<Cow<'static, str>, usize> {
15741574
map.insert("crate-search-div".into(), 1);
15751575
// This is the list of IDs used in HTML generated in Rust (including the ones
15761576
// used in tera template files).
1577-
map.insert("mainThemeStyle".into(), 1);
15781577
map.insert("themeStyle".into(), 1);
15791578
map.insert("settings-menu".into(), 1);
15801579
map.insert("help-button".into(), 1);

src/librustdoc/html/templates/page.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
<link rel="stylesheet" {#+ #}
1616
href="{{static_root_path|safe}}{{files.normalize_css}}"> {# #}
1717
<link rel="stylesheet" {#+ #}
18-
href="{{static_root_path|safe}}{{files.rustdoc_css}}" {#+ #}
19-
id="mainThemeStyle"> {# #}
18+
href="{{static_root_path|safe}}{{files.rustdoc_css}}"> {# #}
2019
{% if !layout.default_settings.is_empty() %}
2120
<script id="default-settings" {#+ #}
2221
{%~ for (k, v) in layout.default_settings ~%}

0 commit comments

Comments
 (0)