aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/js/docs.js
diff options
context:
space:
mode:
authorJulie2014-01-23 15:14:02 -0800
committerCaitlin Potter2014-01-28 14:12:52 -0500
commitce37ae28687167f7b4274ba547f013980126a219 (patch)
treeb6e3164a0edad4a19f4afe298896178e6772103f /docs/src/templates/js/docs.js
parent95f0bf9b526fda8964527c6d4aef1ad50a47f1f3 (diff)
downloadangular.js-ce37ae28687167f7b4274ba547f013980126a219.tar.bz2
docs(cookbook): remove the cookbook docs
The cookbook docs are now superceded by the guide. They are no longer available in any menus and the only way to find them is to search for them. Remove! Closes #5967
Diffstat (limited to 'docs/src/templates/js/docs.js')
-rw-r--r--docs/src/templates/js/docs.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js
index 587e1565..dad57aa5 100644
--- a/docs/src/templates/js/docs.js
+++ b/docs/src/templates/js/docs.js
@@ -111,9 +111,6 @@ docsApp.serviceFactory.docsSearch = ['$rootScope','lunrSearch', 'NG_PAGES',
angular.forEach(index.search(q), function(result) {
var item = NG_PAGES[result.ref];
var section = item.section;
- if(section == 'cookbook') {
- section = 'tutorial';
- }
results[section] = results[section] || [];
if(results[section].length < 15) {
results[section].push(item);
@@ -630,7 +627,6 @@ docsApp.serviceFactory.sections = ['NG_PAGES', function sections(NG_PAGES) {
api: [],
tutorial: [],
misc: [],
- cookbook: [],
error: [],
getPage: function(sectionId, partialId) {
var pages = sections[sectionId];
@@ -675,7 +671,7 @@ docsApp.controller.DocsController = function($scope, $rootScope, $location, $win
}
};
var OFFLINE_COOKIE_NAME = 'ng-offline',
- DOCS_PATH = /^\/(api)|(guide)|(cookbook)|(misc)|(tutorial)|(error)/,
+ DOCS_PATH = /^\/(api)|(guide)|(misc)|(tutorial)|(error)/,
INDEX_PATH = /^(\/|\/index[^\.]*.html)$/,
GLOBALS = /^angular\.([^\.]+)$/,
ERROR = /^([a-zA-Z0-9_$]+:)?([a-zA-Z0-9_$]+)$/,
@@ -737,7 +733,6 @@ docsApp.controller.DocsController = function($scope, $rootScope, $location, $win
guide: 'Developer Guide',
misc: 'Miscellaneous',
tutorial: 'Tutorial',
- cookbook: 'Examples',
error: 'Error Reference'
};