Debian Codegraph @

docs/README.md

raw symbols SCIP
1 # Extended Documentation
2
3 This is where the extended documentation resides, hosted on GitHub Pages. We use [MkDocs](https://www.mkdocs.org/),
4 [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/), and [mike](https://github.com/jimporter/mike).
5
6 Documentation is currently built using Python 3.11, though it should work fine with older versions.
7
8 ## Running locally
9
10 One way is to just run `serve.sh`. Alternatively, the manual steps are, assuming your current working directory
11 is the bottom repo:
12
13 ```bash
14 # Change directories to the documentation.
15 cd docs/
16
17 # Create and activate venv.
18 python -m venv venv
19 source venv/bin/activate
20
21 # Install requirements
22 pip install -r requirements.txt
23
24 # Run mkdocs
25 venv/bin/mkdocs serve
26 ```
27
28 ## Deploying
29
30 Deploying is done via [mike](https://github.com/jimporter/mike) in order to get versioning. Typically,
31 this is done through CI, but can be done manually if needed.
32
33 ### Nightly docs
34
35 ```bash
36 cd docs
37 mike deploy nightly --push
38 ```
39
40 ### Stable docs
41
42 ```bash
43 cd docs
44
45 # Rename the previous stable version
46 mike retitle --push stable $OLD_STABLE_VERSION
47
48 # Set the newest version as the most recent stable version
49 mike deploy --push --update-aliases $RELEASE_VERSION stable
50
51 # Append a "(stable)" string to the end.
52 mike retitle --push $RELEASE_VERSION "$RELEASE_VERSION (stable)"
53 ```