diff options
| author | Corey Farwell <coreyf@rwell.org> | 2016-08-29 23:35:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-29 23:35:50 -0400 |
| commit | 10b8e0ed6720e7e7ec7df8fd15671cb293342e20 (patch) | |
| tree | 1ccdd0fd8711fbf332a07f5d661c5b7fb520624e | |
| parent | 77d2cd28fd715d2b9751de82b14d28ce6e376728 (diff) | |
| download | rust-10b8e0ed6720e7e7ec7df8fd15671cb293342e20.tar.gz rust-10b8e0ed6720e7e7ec7df8fd15671cb293342e20.zip | |
rustbook chapters/sections should be an ordered list.
| -rw-r--r-- | src/tools/rustbook/build.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/rustbook/build.rs b/src/tools/rustbook/build.rs index 6014439fafc..09c2d2510e3 100644 --- a/src/tools/rustbook/build.rs +++ b/src/tools/rustbook/build.rs @@ -61,9 +61,9 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul section, item.title)?; if !item.children.is_empty() { - writeln!(out, "<ul class='section'>")?; + writeln!(out, "<ol class='section'>")?; let _ = walk_items(&item.children[..], section, current_page, out); - writeln!(out, "</ul>")?; + writeln!(out, "</ol>")?; } writeln!(out, "</li>")?; @@ -71,9 +71,9 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul } writeln!(out, "<div id='toc' class='mobile-hidden'>")?; - writeln!(out, "<ul class='chapter'>")?; + writeln!(out, "<ol class='chapter'>")?; walk_items(&book.chapters[..], "", ¤t_page, out)?; - writeln!(out, "</ul>")?; + writeln!(out, "</ol>")?; writeln!(out, "</div>")?; Ok(()) |
