This is the repository for the Angular Material documentation site.
Versions of this site are also available for
Please open bugs against the Angular Material components, directives, documentation contents, API docs, and demos in the Angular Material repo.
Please only open issues with the documentation site itself (not the content) in this repo. This includes issues like the navigation not working properly, examples or documentation not being presented in an accessible way, issues with rendering or layout of the documentation pages, etc.
The documentation is generated from the following resources
- Guides
- Examples
- Material components, services, and directives
- CDK components, services, and directives
- Clone Angular Material in the parent directory of this repo
cd ..
git clone git@github.com:angular/material2.git
- Install Gulp globally:
npm i -g gulp
- Build and copy docs and examples from Angular Material:
npm run fetch-local
- Note that you may need to run this after each time that you run
npm i
as some of the examples are actually placed innode_modules/@angular/
- If you see the error
Cannot find module '@angular/material-examples'
, it means that you need to runnpm run fetch-local
again
- Note that you may need to run this after each time that you run
- Run
npm start
for a dev server. Navigate tohttp://localhost:4200/
Run npm run prod-build
to build the project.
- Run
npm run test
to execute the unit tests via Karma.
Run npm run e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via npm start
.
> npm install
# Development
> npm run publish-dev
# Production
> npm run publish-prod