Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ce37ae2

Browse files
juliemrcaitp
authored andcommitted
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
1 parent 95f0bf9 commit ce37ae2

File tree

12 files changed

+6
-694
lines changed

12 files changed

+6
-694
lines changed

docs/component-spec/docsSearchSpec.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ describe("docsSearch", function() {
1313
results[0] = { section: 'tutorial', shortName: 'item one', keywords: 'item, one, 1' };
1414
results[1] = { section: 'tutorial', shortName: 'item man', keywords: 'item, man' };
1515
results[2] = { section: 'api', shortName: 'item other', keywords: 'item, other' };
16-
results[3] = { section: 'cookbook', shortName: 'item cookbook', keywords: 'item, other' };
17-
results[4] = { section: 'api', shortName: 'ngRepeat', keywords: 'item, other' };
16+
results[3] = { section: 'api', shortName: 'ngRepeat', keywords: 'item, other' };
1817

1918
$provide.value('NG_PAGES', results);
2019
$provide.factory('lunrSearch', function() {
@@ -41,19 +40,14 @@ describe("docsSearch", function() {
4140
expect(items['api'].length).toBe(2);
4241
}));
4342

44-
it("should place cookbook items in the tutorial", inject(function(docsSearch) {
45-
var items = docsSearch('item');
46-
expect(items['tutorial'].length).toBe(3);
47-
}));
48-
4943
it("should return all results without a search", inject(function(docsSearch) {
5044
var items = docsSearch();
51-
expect(items['tutorial'].length).toBe(3);
45+
expect(items['tutorial'].length).toBe(2);
5246
expect(items['api'].length).toBe(2);
5347
}));
5448

5549
it("should store values with and without a ng prefix", inject(function(docsSearch) {
56-
expect(interceptedLunrResults[4].title).toBe('ngRepeat repeat');
50+
expect(interceptedLunrResults[3].title).toBe('ngRepeat repeat');
5751
}));
5852

5953
});

docs/content/cookbook/advancedform.ngdoc

Lines changed: 0 additions & 122 deletions
This file was deleted.

docs/content/cookbook/buzz.ngdoc

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/content/cookbook/deeplinking.ngdoc

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)