Documentation for @esmalley/react-material-ui.
This repository contains the documentation for the React Material UI component library.
Ensure you have Node.js installed on your machine.
Clone this repository and install the dependencies:
npm installThis is indended to be worked on in tandum with react-material-ui. The docs page will be the place to test and develop new feature for that package.
Assuming both repo are installed and set up, to link them and develop do this:
In react-material-ui
npm linkIn react-material-ui-docs
npm link @esmalley/react-material-uiIn react-material-ui
npm run watchIn react-material-ui-docs
npm run devThe application will be available at http://localhost:3002.
To create an optimized production build:
npm run buildTo run the production build:
npm run startAlternatively, you can use npm run cluster to run the production server using a clustered approach.
This project uses the Next.js App Router. To add a new documentation page for a component:
- Navigate to the
app/directory. - Create a new folder under
app/corresponding to your component's name (e.g.,app/my-component/). - Inside that folder, create a
page.tsxfile. - Implement the component showcase within
page.tsx.
The structure of the app/ directory determines the URL paths for the documentation.
| Script | Description |
|---|---|
dev |
Runs the development server at http://localhost:3002. |
build |
Builds the production-ready Next.js application. |
start |
Starts the production server at http://localhost:3002. |
cluster |
Runs the production server in cluster mode. |