Skip to content

Commit 5c6380f

Browse files
committed
rustdoc: remove unused ID mainThemeStyle
This was added in 003b2bc and used to build the URL of the theme stylesheets. It isn't used any more, because f9e1f6f changed it so that the URL was supplied in a `<meta>` tag, which also provides the hashes of the files.
1 parent 34b4ed8 commit 5c6380f

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)