]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #36130 - frewsxcv:patch-32, r=steveklabnik
authorJonathan Turner <jonathandturner@users.noreply.github.com>
Wed, 31 Aug 2016 13:29:10 +0000 (06:29 -0700)
committerGitHub <noreply@github.com>
Wed, 31 Aug 2016 13:29:10 +0000 (06:29 -0700)
rustbook chapters/sections should be an ordered list.

src/tools/rustbook/build.rs

index 6014439fafcf9661cfe981a515bea5558f8c58a4..09c2d2510e31729cea5c5a9b842e795bc07370ce 100644 (file)
@@ -61,9 +61,9 @@ fn walk_item(item: &BookItem,
                  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 walk_item(item: &BookItem,
     }
 
     writeln!(out, "<div id='toc' class='mobile-hidden'>")?;
-    writeln!(out, "<ul class='chapter'>")?;
+    writeln!(out, "<ol class='chapter'>")?;
     walk_items(&book.chapters[..], "", &current_page, out)?;
-    writeln!(out, "</ul>")?;
+    writeln!(out, "</ol>")?;
     writeln!(out, "</div>")?;
 
     Ok(())