README: document building the website locally

This commit is contained in:
Starbeamrainbowlabs 2024-10-07 20:41:56 +01:00
parent 3e0bed11f0
commit 72ab9e0d64
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -208,6 +208,22 @@ As linked above:
- [Interactive Chat Command Reference](https://worldeditadditions.mooncarrot.space/Reference/) ([git](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/main/Chat-Command-Reference.md))
- [Lua API Reference](https://worldeditadditions.mooncarrot.space/api/) (built with [moondoc](https://github.com/sbrl/moondoc))
#### Building the website
The website that contains both of the above can be generated like so.
First, clone this git repository:
```bash
git clone git@git.github.com:sbrl/Minetest-WorldEditAdditions worldeditadditions;
cd worldeditadditions/.docs; # cd into the docs folder
```
Then, build the docs:
```bash
npm install
npm run build
```
## Contributing
Contributions are welcome! Please state in your pull request(s) that you release your contribution under the _Mozilla Public License 2.0_.