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-04-13 18:57:01 +00:00
|
|
|
# Build for development
|
2022-03-25 16:45:40 +00:00
|
|
|
|
2022-04-13 18:57:01 +00:00
|
|
|
We assume you ran `yarn` at monorepo level.
|
|
|
|
|
2022-06-21 21:02:55 +00:00
|
|
|
The website depends on `squiggle-lang` and `components`, which you have to build manually.
|
2022-02-06 18:40:28 +00:00
|
|
|
|
2022-04-10 23:15:46 +00:00
|
|
|
```sh
|
2022-04-13 18:57:01 +00:00
|
|
|
cd ../squiggle-lang
|
|
|
|
yarn build
|
2022-06-21 21:02:55 +00:00
|
|
|
cd ../components
|
|
|
|
yarn build
|
2022-02-06 18:40:28 +00:00
|
|
|
```
|
|
|
|
|
2022-04-13 18:57:01 +00:00
|
|
|
Generate static content, to the `build` directory.
|
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-13 18:57:01 +00:00
|
|
|
Open a local dev server
|
2022-04-10 23:15:46 +00:00
|
|
|
|
|
|
|
```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
|
|
|
```
|