2023-02-03 08:05:18 +00:00
|
|
|
# Extended Documentation
|
|
|
|
|
|
|
|
This is where the extended documentation resides, hosted on GitHub Pages. We use [MkDocs](https://www.mkdocs.org/),
|
|
|
|
[Material for MkDocs](https://squidfunk.github.io/mkdocs-material/), and [mike](https://github.com/jimporter/mike).
|
|
|
|
|
2023-02-03 08:25:25 +00:00
|
|
|
Documentation is currently built using Python 3.11, though it should work fine with older versions.
|
|
|
|
|
2023-02-03 08:05:18 +00:00
|
|
|
## Running locally
|
|
|
|
|
2024-08-14 02:44:32 +00:00
|
|
|
One way is to just run `serve.sh`. Alternatively, the manual steps are, assuming your current working directory
|
|
|
|
is the bottom repo:
|
2023-02-04 09:58:12 +00:00
|
|
|
|
2023-02-03 08:05:18 +00:00
|
|
|
```bash
|
|
|
|
# Change directories to the documentation.
|
|
|
|
cd docs/
|
|
|
|
|
|
|
|
# Create and activate venv.
|
|
|
|
python -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
# Install requirements
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
|
|
# Run mkdocs
|
|
|
|
venv/bin/mkdocs serve
|
|
|
|
```
|
|
|
|
|
|
|
|
## Deploying
|
|
|
|
|
2024-08-14 02:44:32 +00:00
|
|
|
Deploying is done via [mike](https://github.com/jimporter/mike) in order to get versioning. Typically,
|
|
|
|
this is done through CI, but can be done manually if needed.
|
2023-02-03 08:05:18 +00:00
|
|
|
|
2024-08-14 02:44:32 +00:00
|
|
|
### Nightly docs
|
2023-02-03 08:05:18 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cd docs
|
|
|
|
mike deploy nightly --push
|
|
|
|
```
|
|
|
|
|
2024-08-14 02:44:32 +00:00
|
|
|
### Stable docs
|
2023-02-03 08:05:18 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cd docs
|
|
|
|
|
|
|
|
# Rename the previous stable version
|
|
|
|
mike retitle --push stable $OLD_STABLE_VERSION
|
|
|
|
|
|
|
|
# Set the newest version as the most recent stable version
|
|
|
|
mike deploy --push --update-aliases $RELEASE_VERSION stable
|
|
|
|
|
|
|
|
# Append a "(stable)" string to the end.
|
|
|
|
mike retitle --push $RELEASE_VERSION "$RELEASE_VERSION (stable)"
|
|
|
|
```
|