rustdoc: remove unused CSS class in-band
Sincea7c25b2957
removed `in-band` from code headers, the only remaining uses of the `in-band` class are:02cd79afb8/src/librustdoc/html/render/write_shared.rs (L520-L521)
02cd79afb8/src/librustdoc/html/templates/print_item.html (L2-L3)
02cd79afb8/src/librustdoc/html/render/context.rs (L637-L638)
02cd79afb8/src/librustdoc/html/render/mod.rs (L368-L369)
02cd79afb8/src/librustdoc/html/render/mod.rs (L401-L402)
02cd79afb8/src/librustdoc/html/static/js/main.js (L525)
Since all of these uses are nested below `h1.fqn`, we can get rid of it, and the support code that was used for when `in-band` was part of item rendering.
This commit is contained in:
parent
c97d02cdb5
commit
3cb03cb342
16 changed files with 45 additions and 63 deletions
|
@ -364,11 +364,7 @@ impl AllTypes {
|
|||
}
|
||||
}
|
||||
|
||||
f.write_str(
|
||||
"<h1 class=\"fqn\">\
|
||||
<span class=\"in-band\">List of all items</span>\
|
||||
</h1>",
|
||||
);
|
||||
f.write_str("<h1 class=\"fqn\">List of all items</h1>");
|
||||
// Note: print_entries does not escape the title, because we know the current set of titles
|
||||
// doesn't require escaping.
|
||||
print_entries(f, &self.structs, ItemSection::Structs);
|
||||
|
@ -398,9 +394,7 @@ fn scrape_examples_help(shared: &SharedContext<'_>) -> String {
|
|||
let mut ids = IdMap::default();
|
||||
format!(
|
||||
"<div class=\"main-heading\">\
|
||||
<h1 class=\"fqn\">\
|
||||
<span class=\"in-band\">About scraped examples</span>\
|
||||
</h1>\
|
||||
<h1 class=\"fqn\">About scraped examples</h1>\
|
||||
</div>\
|
||||
<div>{}</div>",
|
||||
Markdown {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue