summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/template
diff options
context:
space:
mode:
authorcaseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 18:35:07 +0000
committercaseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 18:35:07 +0000
commit12985f8e01462b397db7801c9bff566de05f3963 (patch)
tree498dff6397c65429b4ef8bdd816e7d468c7714eb /chrome/common/extensions/docs/template
parentb3c59cc5ad40bd08847ba6af0e61b27a70c54812 (diff)
downloadchromium_src-12985f8e01462b397db7801c9bff566de05f3963.zip
chromium_src-12985f8e01462b397db7801c9bff566de05f3963.tar.gz
chromium_src-12985f8e01462b397db7801c9bff566de05f3963.tar.bz2
Improve readability for events & methods nested into types
- add name of parent type to headers of event and methods sections - increase bottom margins for top-level apiItem to 2em - set h3 font size for nested sections to 110% (same as parent, was 120%) - don't display parameters for methods with no parameters BUG=none TEST=none Review URL: http://codereview.chromium.org/6476032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/template')
-rw-r--r--chrome/common/extensions/docs/template/api_template.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/template/api_template.html b/chrome/common/extensions/docs/template/api_template.html
index 8081cecc..ae5a94d 100644
--- a/chrome/common/extensions/docs/template/api_template.html
+++ b/chrome/common/extensions/docs/template/api_template.html
@@ -344,7 +344,7 @@
<div id="methodsTemplate" class="apiGroup"
jsdisplay="$this.functions && $this.functions.length > 0">
<a jsvalues=".name:getAnchorName('global', 'methods', $scope)"></a>
- <h3>Methods</h3>
+ <h3 jscontent="$scope ? 'Methods of ' + $scope : 'Methods'">Methods</h3>
<!-- iterates over all functions -->
<div class="apiItem" jsselect="functions.sort(sortByName)"
@@ -364,7 +364,7 @@
</p>
<!-- PARAMETERS -->
- <h4>Parameters</h4>
+ <h4 jsdisplay="$this.parameters && $this.parameters.length > 0">Parameters</h4>
<dl>
<div jsselect="parameters">
<div transclude="valueTemplate">
@@ -422,7 +422,7 @@
<div id="eventsTemplate" class="apiGroup"
jsdisplay="$this.events && $this.events.length > 0">
<a jsvalues=".name:getAnchorName('global', 'events', $scope)"></a>
- <h3>Events</h3>
+ <h3 jscontent="$scope ? 'Events of ' + $scope : 'Events'">Events</h3>
<!-- iterates over all events -->
<div class="apiItem" jsselect="$this.events.sort(sortByName)"
jsdisplay="!($this.nodoc)">