Skip to content

Commit

Permalink
chore(build): add examples to docs build and annotate table examples (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl authored and mmalerba committed Aug 7, 2017
1 parent 8d09961 commit 4851dea
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/material-examples/example-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ import {PizzaPartyComponent,SnackBarComponentExample} from './snack-bar-componen
import {SnackBarOverviewExample} from './snack-bar-overview/snack-bar-overview-example';
import {SortOverviewExample} from './sort-overview/sort-overview-example';
import {TableBasicExample} from './table-basic/table-basic-example';
import {TableHttpExample} from './table-http/table-http-example';
import {TableFilteringExample} from './table-filtering/table-filtering-example';
import {TableHttpExample} from './table-http/table-http-example';
import {TableOverviewExample} from './table-overview/table-overview-example';
import {TablePaginationExample} from './table-pagination/table-pagination-example';
import {TableSortingExample} from './table-sorting/table-sorting-example';
Expand Down Expand Up @@ -446,18 +446,18 @@ export const EXAMPLE_COMPONENTS = {
additionalFiles: null,
selectorName: null
},
'table-http': {
title: 'Table retrieving data through HTTP',
component: TableHttpExample,
additionalFiles: null,
selectorName: null
},
'table-filtering': {
title: 'Table with filtering',
component: TableFilteringExample,
additionalFiles: null,
selectorName: null
},
'table-http': {
title: 'Table retrieving data through HTTP',
component: TableHttpExample,
additionalFiles: null,
selectorName: null
},
'table-overview': {
title: 'Feature-rich data table',
component: TableOverviewExample,
Expand Down
3 changes: 3 additions & 0 deletions src/material-examples/table-basic/table-basic-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import {DataSource} from '@angular/cdk/table';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/observable/of';

/**
* @title Basic table
*/
@Component({
selector: 'table-basic-example',
styleUrls: ['table-basic-example.css'],
Expand Down
3 changes: 3 additions & 0 deletions src/material-examples/table-http/table-http-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import 'rxjs/add/operator/map';
import 'rxjs/add/operator/startWith';
import 'rxjs/add/operator/switchMap';

/**
* @title Table retrieving data through HTTP
*/
@Component({
selector: 'table-http-example',
styleUrls: ['table-http-example.css'],
Expand Down
1 change: 1 addition & 0 deletions tools/gulp/tasks/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ task('docs', [
'highlight-examples',
'api-docs',
'minified-api-docs',
'build-examples-module',
'plunker-example-assets',
]);

Expand Down

0 comments on commit 4851dea

Please sign in to comment.