Skip to content

Commit

Permalink
feat: add cdk/testing docs (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba authored Nov 13, 2019
1 parent 482709a commit 76f9d98
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ const DOCS: {[key: string]: DocCategory[]} = {
name: 'Components',
summary: 'Unstyled components with useful functionality.',
items: [
{id: 'stepper',
{
id: 'stepper',
name: 'Stepper',
summary: 'Presents content as steps through which to progress.',
examples: [
Expand All @@ -552,6 +553,29 @@ const DOCS: {[key: string]: DocCategory[]} = {
},
]
},
{
id: 'testing',
name: 'Testing',
summary: 'Utilities for testing common components.',
items: [
{
id: 'testing',
name: 'Testing',
summary: 'Utilities for testing common components.',
examples: [],
additionalApiDocs: [
{
name: 'Testbed',
path: 'cdk-testing-testbed.html'
},
{
name: 'Protractor',
path: 'cdk-testing-protractor.html'
}
],
}
]
}
// TODO(jelbourn): re-add utilities and a11y as top-level categories once we can generate
// their API docs with dgeni. Currently our setup doesn't generate API docs for constants
// and standalone functions (much of the utilities) and we have no way of generating API
Expand Down
5 changes: 5 additions & 0 deletions material.angular.io/src/app/shared/guide-items/guide-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ const GUIDES = [
id: 'creating-a-custom-stepper-using-the-cdk-stepper',
name: 'Creating a custom stepper using the CdkStepper',
document: '/docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.html'
},
{
id: 'using-component-harnesses',
name: `Using Angular Material's component harnesses in your tests`,
document: '/docs-content/guides/using-component-harnesses.html'
}
];

Expand Down

0 comments on commit 76f9d98

Please sign in to comment.