8000 material-ui/docs at v0.x · DominicAmal/material-ui · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

docs

README.md

This is the documentation website and application of Material-UI.

Requirements

Installation

After cloning the repository, install dependencies:

cd <project folder>/material-ui
npm install
cd <project folder>/material-ui/docs
npm install

Running

Once dependencies are installed, start the application with:

Browser

npm run browser:development

Open http://localhost:3000 to view the documentation site.

Publishing

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.git

Before 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.x

The 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
0