Index: chrome/common/extensions/docs/templates/private/table_of_contents_items.html |
diff --git a/chrome/common/extensions/docs/templates/private/table_of_contents_items.html b/chrome/common/extensions/docs/templates/private/table_of_contents_items.html |
index 3c206424e1fb70815856cb8789e7ba75ad7e2a67..f5f8bd1693eabf5b1769c4e60aade2db78941b5d 100644 |
--- a/chrome/common/extensions/docs/templates/private/table_of_contents_items.html |
+++ b/chrome/common/extensions/docs/templates/private/table_of_contents_items.html |
@@ -1,8 +1,21 @@ |
-<ol> |
- {{#i:items}} |
- <li {{?i.separator}}class="separator"{{/}}> |
- <a href="#{{i.link}}">{{{i.title}}}</a> |
- {{?i.subheadings +partials.table_of_contents_items items:i.subheadings /}} |
+<ol class="toc"> |
+ {{#l0:items}}{{?l0.hideInTOC}}{{:l0.hideInTOC}} |
+ <li class="toplevel"><a href="#{{l0.link}}">{{{l0.title}}}</a> |
+ {{?l0.subheadings}} |
+ <ol class="toc"> |
+ {{#l1:l0.subheadings}}{{?l1.hideInTOC}}{{:l1.hideInTOC}} |
+ <li><a href="#{{l1.link}}">{{{l1.title}}}</a> |
+ {{?l1.subheadings}} |
+ <ol class="toc"> |
+ {{#l2:l1.subheadings}}{{?l2.hideInTOC}}{{:l2.hideInTOC}} |
+ <li><a href="#{{l2.link}}">{{{l2.title}}}</a></li> |
+ {{/l2.hideInTOC}}{{/l1.subheadings}} |
+ </ol> |
+ {{/l1.subheadings}} |
+ </li> |
+ {{/l1.hideInTOC}}{{/l0.subheadings}} |
+ </ol> |
+ {{/l0.subheadings}} |
</li> |
- {{/items}} |
+ {{/l0.hideInTOC}}{{/items}} |
</ol> |