Was this page helpful?
Caution
You're viewing documentation for a previous version of ScyllaDB Sphinx Theme. Switch to the latest stable version.
Installation¶
This quickstart walks you through the steps required to add the documentation toolchain to a ScyllaDB project hosted on GitHub.
Prerequisites¶
Before adding the documentation toolchain to a project, you will need to have installed:
Python 3.7 or later.
Poetry 1.12 or later.
Step 1: Download the sample project¶
Copy the
docsdirectory from the repository scylladb/sphinx-scylladb-theme to the root directory of the project where you want to set up docs. The project’s directory structure should look like the following:project-name/ ├── docs/ │ ├── _utils/ │ | ├── redirections.yaml │ | ├── deploy.sh │ ├── source/ │ | ├── conf.py │ | ├── index.rst │ ├── Makefile
Note
If you already have docs in the project under an existing
docsdirectory, move the doc files todocs/sourcedirectory.Create the file
docs/pyproject.tomlunder the newdocsfolder. Copy the contents from the pyproject.toml template.
Step 2: Configure the theme¶
Edit the file
docs/source/conf.pyfile to suit the project needs (e.g., edit the project name and site description, install new extensions, …). For more information, see Configuration.If you don’t already have a
.gitignorefile in the project, place one in the root directory and include/docs/_buildand/source/.doctreesin it. If you already have a.gitignorefile, add both paths to the file.
Step 3: Preview the site locally¶
Delete or adapt the sample documentation files under
docs/source.From the command line, run
make previewwithin thedocsfolder. Fix any warnings raised by Sphinx.Tip
If you are on Windows, see How to use the toolchain in Windows.
Once the docs build without errors, open
http://127.0.0.1:5500/to preview the generated site.
Step 4: Deploy to GitHub Pages¶
To deploy the documentation site, see GitHub Pages Configuration.