Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5369)

Unified Diff: chrome/common/extensions/docs/server2/templates/private/table_of_contents.html

Issue 10750017: Extensions Docs Server: Intro data source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/templates/private/table_of_contents.html
diff --git a/chrome/common/extensions/docs/server2/templates/private/table_of_contents.html b/chrome/common/extensions/docs/server2/templates/private/table_of_contents.html
index 031272e4b31c8376bfd99cdf7b20ffd41a5784f2..d46e5474ccf49f06b738a49d555abd30523c2da8 100644
--- a/chrome/common/extensions/docs/server2/templates/private/table_of_contents.html
+++ b/chrome/common/extensions/docs/server2/templates/private/table_of_contents.html
@@ -1,6 +1,16 @@
<div id="toc">
<h2>Contents</h2>
<ol>
+ {{#toc}}
+ <li>
+ <a href=#{{link}}>{{title}}</a>
+ {{?subheadings}}
+ <ol>
+ {{#subheadings}}<li><a href=#{{link}}>{{title}}</a></li>{{/}}
+ </ol>
+ {{/}}
+ </li>
+ {{/toc}}
<li>
<a href="#apiReference">API reference: chrome.{{api.name}}</a>
<ol>

Powered by Google App Engine
This is Rietveld 408576698