mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build(docs): exclude readme files (#8087)
* No longer copies and prefixes `README.md` files for the docs. Those are just in the repository for a better overview, but don't really have any use for the docs. Also they are conflicting with the `fetch` script on the material.angular.io repository. ``` cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/slide-toggle/material-README.html' cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/slider/material-README.html' cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/snack-bar/material-README.html' cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/tabs/material-README.html' cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/toolbar/material-README.html' cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/tooltip/material-README.html' ` * Also updates the `example-module.ts` file to the current state of the material-examples.
This commit is contained in:
committed by
mmalerba
parent
4efb70cc9f
commit
b3a493c584
@@ -697,7 +697,7 @@ export const EXAMPLE_COMPONENTS = {
|
||||
selectorName: null
|
||||
},
|
||||
'table-overview': {
|
||||
title: 'Feature-rich data table',
|
||||
title: 'Data table with sorting, pagination, and filtering.',
|
||||
component: TableOverviewExample,
|
||||
additionalFiles: null,
|
||||
selectorName: null
|
||||
|
||||
@@ -100,7 +100,7 @@ task('markdown-docs', () => {
|
||||
}
|
||||
};
|
||||
|
||||
return src(['src/lib/**/*.md', 'guides/*.md'])
|
||||
return src(['src/lib/**/!(README).md', 'guides/*.md'])
|
||||
.pipe(rename({prefix: 'material-'}))
|
||||
.pipe(markdown(markdownOptions))
|
||||
.pipe(transform(transformMarkdownFiles))
|
||||
@@ -112,7 +112,7 @@ task('markdown-docs', () => {
|
||||
// disambiguating the output.
|
||||
/** Generates html files from the markdown overviews and guides for the cdk. */
|
||||
task('markdown-docs-cdk', () => {
|
||||
return src(['src/cdk/**/*.md'])
|
||||
return src(['src/cdk/**/!(README).md'])
|
||||
.pipe(rename({prefix: 'cdk-'}))
|
||||
.pipe(markdown(markdownOptions))
|
||||
.pipe(transform(transformMarkdownFiles))
|
||||
|
||||
Reference in New Issue
Block a user