summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorcduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-28 22:45:20 +0000
committercduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-28 22:45:20 +0000
commita43d46103fd0b4243332a9249f95649edb18200f (patch)
treebfc6f26dc984ce32b43a61edcf914030d57db737 /chrome
parent65f173550226cb0dcf577183a462d48c47764ee3 (diff)
downloadchromium_src-a43d46103fd0b4243332a9249f95649edb18200f.zip
chromium_src-a43d46103fd0b4243332a9249f95649edb18200f.tar.gz
chromium_src-a43d46103fd0b4243332a9249f95649edb18200f.tar.bz2
Extensions Docs Server: type templates
Templates for types in the API documentation. BUG=133773 Review URL: https://chromiumcodereview.appspot.com/10684009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/extensions/docs/server2/static/css/site.css4
-rw-r--r--chrome/common/extensions/docs/server2/templates/private/type.html9
-rw-r--r--chrome/common/extensions/docs/server2/templates/private/type_name.html6
3 files changed, 19 insertions, 0 deletions
diff --git a/chrome/common/extensions/docs/server2/static/css/site.css b/chrome/common/extensions/docs/server2/static/css/site.css
index fcac21c..b2477be 100644
--- a/chrome/common/extensions/docs/server2/static/css/site.css
+++ b/chrome/common/extensions/docs/server2/static/css/site.css
@@ -255,6 +255,10 @@ span.displayModeWarning {
margin: 0 0 0 0;
}
+#type_name {
+ font-style: italic;
+}
+
.api_reference div.summary {
border: 1px solid #b582f6;
font-family: "Courier New", courier, monospace;
diff --git a/chrome/common/extensions/docs/server2/templates/private/type.html b/chrome/common/extensions/docs/server2/templates/private/type.html
new file mode 100644
index 0000000..fc9a231
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/templates/private/type.html
@@ -0,0 +1,9 @@
+<div>
+ <a name="type-{{name}}"></a>
+ <h4>{{name}}</h4>
+ <div>
+ <dt>{{+partials.type_name}}</dt>
+ <dd>{{^undocumented}}{{{description}}}{{/}}</dd>
+ <dd><dl>{{#properties}}{{+partials.property}}{{/}}</dl></dd>
+ </div>
+</div>
diff --git a/chrome/common/extensions/docs/server2/templates/private/type_name.html b/chrome/common/extensions/docs/server2/templates/private/type_name.html
new file mode 100644
index 0000000..645096f
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/templates/private/type_name.html
@@ -0,0 +1,6 @@
+<span class="type_name">
+ (
+ {{?optional}}<span class="optional">optional</span>{{/}}
+ <span id="typeTemplate">{{type}}</span>
+ )
+</span>