This is the documentation website and application of Material-UI.
- Node 4.0 or newer
- React Native for development
- Xcode for iOS development (optional)
- Android SDK for Android development (optional)
After cloning the repository, install dependencies:
cd <project folder>/material-ui
npm install
cd <project folder>/material-ui/docs
npm installOnce dependencies are installed, start the application with:
npm run browser:developmentOpen http://localhost:3000 to view the documentation site.
To publish the docs site, you need write access to the callemall/material-ui-docs-site repository,
and to have set it as a remote called docs-site (this is important as it is referenced in the build script):
git remote add -t gh-pages docs-site https://github.com/callemall/material-ui-docs-site.gitBefore publishing the docs, update the CHANGELOG, and bump the version number in package.json.
Run the build script with the new version number:
cd docs
./gh-pages-buils.js v0.x.xThe build script will update www/versions.json, commit this change, and tag the release,
before building the docs site in the gh-pages branch. You must cd out of the docs directory to see the changes.
Return to master, push the preceeding commits to mui-org/material-ui, build and publish the release,
then push the updated gh-pages branch to the docs-site remote:
git checkout gh-pages
git push docs-site gh-pages