squiggle/packages/website/README.md

37 lines
591 B
Markdown
Raw Permalink Normal View History

2022-02-06 18:40:28 +00:00
# Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
# Build for development
We assume you ran `yarn` at monorepo level.
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
cd ../squiggle-lang
yarn build
cd ../components
yarn build
2022-02-06 18:40:28 +00:00
```
Generate static content, to the `build` directory.
2022-04-10 23:15:46 +00:00
```sh
yarn build
2022-02-06 18:40:28 +00:00
```
Open a local dev server
2022-04-10 23:15:46 +00:00
```sh
yarn start
2022-02-06 18:40:28 +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
yarn clean
2022-02-06 18:40:28 +00:00
```