This repo is now deprecated. Please use the official docs by the Angular Material team available at https://material.angular.io instead.
Welcome to material-docs
(unofficial)! This is basically the same as Angular's https://material.angular.io, but with more examples along with app showcases (currently work in progress).
You can develop locally by following these steps (and make a pull request):
-
Execute the following code in your Terminal:
npm install # Install dependencies and install the latest version of @angular/flex-layout npm start # Serves the app
For more info on what the
serve
command does, basically it will do a syntax highlight from theexamples/
folder, similar to how Angular Material does it for their docs.For other commands, go to misc
-
Navigate to
localhost:4200
for the app. Done!
As stated above (in Development server), you can contribute by:
- Reporting issues
- Submitting pull requests
And you may get a chance to contribute! 😄 🎉
- The website is available at https://chan4077.github.io/material-docs
- View all of the examples at https://material2-docs-all-examples.stackblitz.io
View the LICENSE (MIT
)
(Did you know?) I thought of this idea when many people were confused over how to trobuleshoot common errors, especially on StackOverflow!
- Get more contributors
- Make docs simpler
- Faster loading times on firebase
- Add hash handling
- Faster syntax highlighting
- Watch example file and syntax highlight when there are changes
This section is for all commands listed in the package.json
and what they do.
Command | Description |
---|---|
npm start |
An alias of npm run serve . |
npm run serve |
Highlights all example files, then serves the app. |
npm run serveProd |
Similar to the serve command, but the environment is set to production mode. |
npm run githubPages |
Deploys the app to Github Pages. (INTERNAL) |
npm run githubPages2 |
Similar to the githubPages command, but highlights all example files. (INTERNAL) |
npm run syntaxHighlight |
Does a highlight of all example files and will take ~1 minute to highlight. |