aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/collect.js3
-rw-r--r--docs/docs.js8
-rw-r--r--docs/service.template6
3 files changed, 11 insertions, 6 deletions
diff --git a/docs/collect.js b/docs/collect.js
index e1af14ef..eb540051 100644
--- a/docs/collect.js
+++ b/docs/collect.js
@@ -244,7 +244,7 @@ var TAG = {
name: function(doc, name, value) {
var parts = value.split(/\./);
doc.name = value;
- doc.shortName = parts.pop();
+ doc.shortName = parts.pop().replace('#', '.');
doc.depth = parts.length;
},
param: function(doc, name, value){
@@ -378,6 +378,7 @@ function processNgDoc(documentation, doc) {
if (doc.methodOf) {
if (parent = documentation.byName[doc.methodOf]) {
(parent.method = parent.method || []).push(doc);
+ parent.method.sort(keywordSort);
} else {
throw 'Owner "' + doc.methodOf + '" is not defined.';
}
diff --git a/docs/docs.js b/docs/docs.js
index 7e6c2ac4..6bf86ed3 100644
--- a/docs/docs.js
+++ b/docs/docs.js
@@ -1,5 +1,3 @@
-SyntaxHighlighter['defaults'].toolbar = false;
-
DocsController.$inject = ['$location', '$browser', '$window'];
function DocsController($location, $browser, $window) {
this.pages = NG_PAGES;
@@ -38,10 +36,12 @@ function DocsController($location, $browser, $window) {
return "mailto:angular@googlegroups.com?" +
"subject=" + escape("Feedback on " + $location.href) + "&" +
"body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ....");
- }
+ };
}
angular.filter('short', function(name){
return (name||'').split(/\./).pop();
-}); \ No newline at end of file
+});
+
+SyntaxHighlighter['defaults'].toolbar = false;
diff --git a/docs/service.template b/docs/service.template
index ee3a284e..c28bddc9 100644
--- a/docs/service.template
+++ b/docs/service.template
@@ -25,19 +25,23 @@
{{/requires}}
</ul>
+{{#method.length}}
<h2>Methods</h2>
<ul>
{{#method}}
- <li><tt>{{shortName}}</tt>: {{{description}}}</li>
+ <li><tt>{{shortName}}()</tt>: {{{description}}}</li>
{{/method}}
</ul>
+{{/method.length}}
+{{#property.length}}
<h2>Properties</h2>
<ul>
{{#property}}
<li><tt>{{name}}:{{#type}}{{type}}{{/type}}</tt>{{#description}}: {{{description}}}{{/description}}</li>
{{/property}}
</ul>
+{{/property.length}}
{{#example}}
<h2>Example</h2>