Note: The docs build instructions have been tested with Sphinx 2.4.4 and Fedora 32.
To build and preview the docs locally, you will need to install the following software:
- Git
- Python 3.7
- pip
- Java JDK 6 or above
- Maven
Run the following command to build the docs.
cd docs
make preview
Once the command completes processing, open http://127.0.0.1:5500/ with your preferred browser.
Build Sphinx docs for all the versions defined in docs/conf.py
.
cd docs
make multiversion
Then, open docs/_build/dirhtml/<version>/index.html
with your preferred browser.
NOTE: If you only can see docs generated for the master branch, try to run git fetch --tags
to download the latest tags from remote.
Let's say you want to generate docs for the new version scylla-3.x.y
.
- The file
.github/workflows
defines the branch from where all the documentation versions will be build.
on:
push:
branches:
- scylla-3.x
In our case, this branch currently is``scylla-3.x``.
In practice, this means that the file docs/source/conf.py
of `scylla-3.x
defines which documentation versions are supported.
2. In the file docs/source/conf.py
(scylla-3.x
branch), list the new target version support inside the BRANCHES
array.
For example, listing scylla-3.x.y
should look like in your code:
BRANCHES = ['scylla-3.x.y']
smv_branch_whitelist = multiversion_regex_builder(BRANCHES)
- (optional) If the new version is the latest stable version, update as well the variable
smv_latest_version
indocs/source/conf.py
.
smv_latest_version = 'scylla-3.x.y'
- Commit & push the changes to the
scylla-3.x
branch.