aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorMisko Hevery2012-03-01 11:28:50 -0800
committerMisko Hevery2012-06-02 16:02:08 -0700
commitf0be543614d5c2c3f492e1ed73ec964bd8a3d381 (patch)
tree6f831d7fb45df34142d0cd6b9e0ad7d1d7c42d1d /docs/src
parenta3a37c2063a9098539a59444b8e4a52959f3ee24 (diff)
downloadangular.js-f0be543614d5c2c3f492e1ed73ec964bd8a3d381.tar.bz2
doc(ngdoc): clean up doc generation and add missing documentation links
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/ngdoc.js23
1 files changed, 4 insertions, 19 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index fd623804..441ea2c8 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -726,7 +726,7 @@ function scenarios(docs){
//////////////////////////////////////////////////////////
function metadata(docs){
- var words = [];
+ var pages = [];
docs.forEach(function(doc){
var path = (doc.name || '').split(/(\.|\:\s+)/);
for ( var i = 1; i < path.length; i++) {
@@ -738,7 +738,7 @@ function metadata(docs){
shortName = 'input [' + shortName + ']';
}
- words.push({
+ pages.push({
section: doc.section,
id: doc.id,
name: title(doc.name),
@@ -747,27 +747,12 @@ function metadata(docs){
keywords:doc.keywords()
});
});
- words.sort(keywordSort);
- return words;
+ pages.sort(keywordSort);
+ return pages;
}
var KEYWORD_PRIORITY = {
'.index': 1,
- '.guide': 2,
- '.angular': 7,
- '.angular.Module': 7,
- '.angular.module': 8,
- '.angular.module.ng': 2,
- '.angular.module.AUTO': 1,
- '.angular.mock': 9,
- '.angular.module.ng.$filter': 7,
- '.angular.module.ng.$rootScope.Scope': 7,
- '.angular.module.ng': 7,
- '.angular.mock': 8,
- '.angular.directive': 6,
- '.angular.inputType': 6,
- '.angular.widget': 6,
- '.angular.module.ngMock': 8,
'.overview': 1,
'.bootstrap': 2,
'.mvc': 3,