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

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

Issue 99703004: Docserver: Fix the TOC rendering for API references by fixing the haphazard way (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/templates/private/property.html
diff --git a/chrome/common/extensions/docs/templates/private/property.html b/chrome/common/extensions/docs/templates/private/property.html
index e068247a231a218111cd3fb1f1a3c2fee1722c80..360ee9990164ceb4ecd5d840ebfbe8fcfcfd36e7 100644
--- a/chrome/common/extensions/docs/templates/private/property.html
+++ b/chrome/common/extensions/docs/templates/private/property.html
@@ -1,12 +1,14 @@
{{#property}}
<dt>
- <span class="variable">{{name}}</span>
- <span class="property">
- (
- {{?optional}}<span class="optional">optional</span>{{/}}
- {{+partials.variable_type type:property/}}
- )
- </span>
+ {{?parentName}}
+ <h4 id="{{id}}" title="{{^hideParamTOC name/}}">
+ {{+partials.property_name_and_type property:property /}}
+ </h4>
+ {{:parentName}}
+ <h3 id="{{id}}" title="{{^hideParamTOC name/}}">
+ {{+partials.property_name_and_type property:property /}}
+ </h3>
+ {{/parentName}}
</dt>
<dd>
{{?deprecated}}
@@ -17,9 +19,9 @@
{{/description}}
{{+partials.enum_descriptions enums:enum_values/}}
{{?array.is_object}}
- <h5>Properties of each object in <span class="variable">{{name}}</span></h5>
+ <h4 title="">Properties of each object</h4>
<dl>
- {{+partials.type type:array/}}
+ {{+partials.type type:array hideParamTOC:true /}}
</dl>
{{/array.is_object}}
</dd>

Powered by Google App Engine
This is Rietveld 408576698