Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Sphinx Theme. Switch to the latest stable version.
Use the command-line interface to run the following commands.
Note
Make sure you meet the necessary prerequisites before running these commands. For details, see Prerequisites.
Installs system dependencies required to build the docs, such as Poetry.
make setupenv
Installs the required Python dependencies to build the documentation.
make setup
Note
make setup
is called automatically before running build commands.
Updates Python dependencies to the latest version.
make update
As a result, updates the poetry.lock
file.
Builds a local instance of the docs site so you can view the rendering in a sandbox environment on your local browser.
To preview the docs:
Build the docs.
cd docs make preview
Open http://127.0.0.1:5500/ with your preferred browser.
Tip
You can pass custom options to increase or decrease verbosity. For a list with all the available options, refer to the Sphinx documentation.
To increase verbosity, use the option -v
:
make preview SPHINXOPTS=-v
To decrease verbosity, use the option -Q
:
make preview SPHINXOPTS=-Q
To fix the error pyproject.toml changed significantly since poetry.lock was last generated.
, run the following command:
poetry lock --no-update
Then, run the preview command again.
Generates a local instance of the docs site with all specified versions available for navigation. You can view the rendering in a sandbox environment on your local browser.
To preview multiple versions:
Build the docs.
cd docs make multiversionpreview
Open http://0.0.0.0:5500/ with your preferred browser.
For further guidance on using the multiversionpreview command
, see Multiversion configuration.
Generates the documentation in HTML format.
Note
The command make dirhtml
is aimed to be used by GitHub Actions CI. While documenting new features, it is not advised to run make dirhtml
, but make preview
instead.
cd docs
make multiversion
Docs are generated under the docs/_build/dirhtml
directory.
Generates multiple versions of the docs with all specified versions available for navigation.
Note
The command make multiversion
is aimed to be used by GitHub Actions CI. While documenting new features, it is not advised to run make multiversion
, but make preview
instead.
cd docs
make multiversion
Docs are generated under the docs/_build/dirhtml
directory.
Generates HTML redirects from the _utils/redirects.yaml
file.
Note
The command make multiversion
is aimed to be used by GitHub Actions CI.
cd docs
make multiversion
Redirects are generated under the docs/_build/dirhtml
directory.
Before making changes to the docs, it’s helpful to clear the previous build by deleting the contents of the build
directory.
This ensures that the changes you make are reflected correctly.
cd docs
make clean
Checks the documentation site for broken links.
cd docs
make dirhtml
make linkcheck
Was this page helpful?