2022-08-12 14:44:54 +02:00
|
|
|
# Documentation
|
|
|
|
|
|
|
|
Documentation is written in mkdocs and there are a few extensions that allow richer
|
|
|
|
authoring than markdown.
|
|
|
|
|
|
|
|
To iterate with documentation, therefore, it is recommended to run the mkdocs server and view your pages in a browser.
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- [Get Task](https://taskfile.dev/installation/)
|
2024-01-15 04:24:30 +02:00
|
|
|
- [Get MkDocs](https://www.mkdocs.org/user-guide/installation/)
|
|
|
|
- [Get MkDocs Material](https://squidfunk.github.io/mkdocs-material/getting-started/#installation)
|
|
|
|
- [Get MkDocs Redirect](https://github.com/mkdocs/mkdocs-redirects#installing)
|
|
|
|
- [Get MkDocs Minify](https://github.com/byrnereese/mkdocs-minify-plugin#setup)
|
|
|
|
- [Get MkDocs Include Markdown](https://github.com/mondeja/mkdocs-include-markdown-plugin#installation)
|
|
|
|
- [Get MkDocs RSS](https://github.com/guts/mkdocs-rss-plugin#installation)
|
2022-08-12 14:44:54 +02:00
|
|
|
|
2024-01-15 15:40:44 +02:00
|
|
|
### With nix
|
2022-08-12 14:44:54 +02:00
|
|
|
|
2024-01-15 15:40:44 +02:00
|
|
|
If you have nix installed, you can:
|
2022-08-12 14:44:54 +02:00
|
|
|
|
|
|
|
```bash
|
2024-01-15 15:40:44 +02:00
|
|
|
nix develop .#docs
|
2022-08-12 14:44:54 +02:00
|
|
|
```
|
2024-01-15 04:25:04 +02:00
|
|
|
|
2024-01-15 15:40:44 +02:00
|
|
|
To drop into a shell with all the needed dependencies.
|
|
|
|
|
2024-01-15 04:25:04 +02:00
|
|
|
## Edit the docs
|
|
|
|
|
|
|
|
After installing mkdocs and extensions, build and run the documentation locally:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task docs:serve
|
|
|
|
```
|
|
|
|
|
2024-01-15 15:40:44 +02:00
|
|
|
The site will soon be available at http://localhost:8000 and
|
|
|
|
auto-update after changes.
|