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

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

Issue 121713002: Rework API reference pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@addscss_330235
Patch Set: Rebase Created 6 years, 10 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/templates/private/function_signature.html
diff --git a/chrome/common/extensions/docs/templates/private/function_signature.html b/chrome/common/extensions/docs/templates/private/function_signature.html
index 40f3f0bc102778ab0cecadaabba2b2d9154bcfd5..5f35b3edb12dbd2758ab89a8588525b8f81b079e 100644
--- a/chrome/common/extensions/docs/templates/private/function_signature.html
+++ b/chrome/common/extensions/docs/templates/private/function_signature.html
@@ -2,7 +2,8 @@
|api|: the schema for the API that the function belongs to
|function|: the schema for the function
|parentName|: name of the parent object of the function
+ |no_link|: if different of null, no link will be shown for types
-}}
-<div class="line">
-<span>{{?r:function.returns}}{{+partials.variable_type type:r/}} {{/}}{{?api}}{{api.namespace}}.{{/}}{{?parentName}}{{parentName}}.{{/}}{{function.name}}</span>({{#p:function.parameters}}{{+partials.parameter_item parameter:p/}}{{^p.last}}, {{/}}{{/}})
-</div>
+<code class="prettyprint">
+{{?r:function.returns}}{{+partials.variable_type type:r no_link:no_link/}} {{/}}{{?api}}{{api.namespace}}.{{/}}{{?parentName}}{{parentName}}.{{/}}{{function.name}}({{#p:function.parameters}}{{+partials.parameter_item parameter:p no_link:no_link/}}{{^p.last}}, {{/}}{{/}})
+</code>

Powered by Google App Engine
This is Rietveld 408576698