2022-02-06 18:40:28 +00:00
|
|
|
# Website
|
|
|
|
|
|
|
|
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
|
|
|
|
|
2022-03-25 16:45:40 +00:00
|
|
|
## Build for development and production
|
|
|
|
|
|
|
|
This one actually works without running `yarn` at the monorepo level, but it doesn't hurt. You must at least run it at this package level
|
2022-02-06 18:40:28 +00:00
|
|
|
|
2022-04-10 23:15:46 +00:00
|
|
|
```sh
|
2022-03-23 22:34:50 +00:00
|
|
|
yarn
|
2022-02-06 18:40:28 +00:00
|
|
|
```
|
|
|
|
|
2022-03-25 16:45:40 +00:00
|
|
|
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
2022-04-10 23:15:46 +00:00
|
|
|
|
|
|
|
```sh
|
2022-03-25 16:45:40 +00:00
|
|
|
yarn build
|
2022-02-06 18:40:28 +00:00
|
|
|
```
|
|
|
|
|
2022-04-10 23:15:46 +00:00
|
|
|
Your local dev server is here, opening up a browser window.
|
|
|
|
|
|
|
|
```sh
|
2022-03-25 16:45:40 +00:00
|
|
|
yarn start
|
2022-02-06 18:40:28 +00:00
|
|
|
```
|
|
|
|
|
2022-03-25 16:45:40 +00:00
|
|
|
Most changes are reflected live without having to restart the server.
|
2022-02-06 18:40:28 +00:00
|
|
|
|
2022-04-10 23:15:46 +00:00
|
|
|
Clean up the build artefacts.
|
|
|
|
|
|
|
|
```sh
|
2022-03-23 22:34:50 +00:00
|
|
|
yarn clean
|
2022-02-06 18:40:28 +00:00
|
|
|
```
|