librustdoc: Use correct heading levels.
- Avoid multiple <h1>s on a page. - The <h#> tags should follow a semantic hierarchy. - Cap at h6 (no h7)
This commit is contained in:
parent
e737694a4d
commit
a8a40ea9a4
65 changed files with 147 additions and 118 deletions
|
|
@ -125,7 +125,8 @@ impl Formatter for HTMLFormatter {
|
|||
&mut id_map,
|
||||
ErrorCodes::Yes,
|
||||
DEFAULT_EDITION,
|
||||
&Some(playground)
|
||||
&Some(playground),
|
||||
0
|
||||
)
|
||||
.into_string()
|
||||
)?
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ fn check_error_code_explanation(
|
|||
} else if s.contains("compile-fail") {
|
||||
invalid_compile_fail_format = true;
|
||||
}
|
||||
} else if s.starts_with("#### Note: this error code is no longer emitted by the compiler") {
|
||||
} else if s.starts_with("### Note: this error code is no longer emitted by the compiler") {
|
||||
if !found_error_code {
|
||||
error_codes.get_mut(&err_code).map(|x| x.has_test = true);
|
||||
found_error_code = true;
|
||||
|
|
@ -64,7 +64,7 @@ fn check_if_error_code_is_test_in_explanation(f: &str, err_code: &str) -> bool {
|
|||
|
||||
for line in f.lines() {
|
||||
let s = line.trim();
|
||||
if s.starts_with("#### Note: this error code is no longer emitted by the compiler") {
|
||||
if s.starts_with("### Note: this error code is no longer emitted by the compiler") {
|
||||
return true;
|
||||
}
|
||||
if s.starts_with("```") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue