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

Unified Diff: chrome/common/extensions/docs/templates/private/function.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/function.html
diff --git a/chrome/common/extensions/docs/templates/private/function.html b/chrome/common/extensions/docs/templates/private/function.html
index f295ead16f03e4e47693e6100a531b3dbf2c258a..ea57fe0ac39815f1da98bd3612be0aacff515821 100644
--- a/chrome/common/extensions/docs/templates/private/function.html
+++ b/chrome/common/extensions/docs/templates/private/function.html
@@ -1,8 +1,13 @@
{{!function The function to render}}
<div>
- <h4 id="{{?function.id}}{{function.id}}{{:}}{{?parentId}}{{parentId}}-{{function.name}}{{/}}{{/}}">
- {{function.name}}
- </h4>
+ {{?parentName}}<h4{{:}}<h3{{/}}
+ {{- Might be an anonymous function. -}}
+ {{?function.id}}id="{{function.id}}"{{/}}
+ {{?hideParamTOC}}title=""{{/}}>{{function.name}}
+ {{?parentName}}</h4>{{:}}</h3>{{/}}
{{+partials.warning_deprecated item:function/}}
- {{+partials.function_details function:function parentName:parentName api:api/}}
+ {{+partials.function_details
+ function:function
+ parentName:parentName
+ api:api/}}
</div>

Powered by Google App Engine
This is Rietveld 408576698