Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,23 @@ jobs:
${{ runner.os }}-uv-

- name: Install Python Dependencies
run: uv sync --group ci --no-dev
run: uv sync --locked --group ci --no-dev

- name: Add .venv to PATH
run: echo "${GITHUB_WORKSPACE}/.venv/bin" >> "$GITHUB_PATH"

- name: Build Docs
run: tox -e docs

- name: Install PDF build dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
latexmk texlive-latex-recommended texlive-latex-extra \
texlive-fonts-recommended tex-gyre xindy

- name: Build PDF and EPUB
run: tox -e docs-formats

- name: Trigger ReadTheDocs build
if: ${{ github.ref_name == 'trunk' }}
env:
Expand Down
5 changes: 1 addition & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build:
create_environment:
- python -m uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
install:
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" python -m uv sync --frozen --group docs --no-dev
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" python -m uv sync --locked --group docs --no-dev

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand All @@ -24,6 +24,3 @@ sphinx:
formats:
- pdf
- epub

# NOTE: We need to use older version of sphinx otherwise bullet points won't be rendered correctly
# on RTD using rtd theme.
Comment on lines -28 to -29

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChihweiLHBird Do you verify this note is no longer relevant? If so, may you provide a screenshot or recording as evidence.

@ChihweiLHBird ChihweiLHBird Sep 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I verified this is no longer an issue. And double checked today for the bullet points thing:

Image

2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2655,7 +2655,7 @@ Compute
~~~~~~~

- [ARM] Support OS disk size definition on node creation (#1196)
[Vojta Bartoš]
[Vojta Bartoš]

- [Digital Ocean] Support floating IPs (#1177)
[Rick van de Loo]
Expand Down
12 changes: 0 additions & 12 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
from sphinx.ext import apidoc
from sphinx.domains.python import PythonDomain

try:
import sphinx_rtd_theme
except ImportError:
sphinx_rtd_theme = None

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.abspath(BASE_DIR)

Expand Down Expand Up @@ -121,13 +116,6 @@
# a list of builtin themes.
html_theme = "sphinx_rtd_theme"

if sphinx_rtd_theme:
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
html_theme = "default"


# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down
10 changes: 10 additions & 0 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ If you also work on documentation, add the docs group:

Commit ``uv.lock`` whenever dependency versions change.

Build the HTML documentation with ``uv run tox -e docs``. To also validate the
PDF and EPUB formats published on Read the Docs, run ``uv run tox -e docs-formats``.
PDF builds require ``make``, ``latexmk``, ``xindy``, the recommended and extra
LaTeX packages, and the recommended and TeX Gyre fonts. On Ubuntu, install these with:

.. sourcecode:: bash

sudo apt-get install make latexmk xindy texlive-latex-recommended \
texlive-latex-extra texlive-fonts-recommended tex-gyre

General contribution guidelines
-------------------------------

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ lint = [
docs = [
"rstcheck==6.2.5; python_version >= '3.10'",
"fasteners",
"sphinx_rtd_theme==2.0.0",
"sphinx==6.2.1",
"sphinx_rtd_theme==3.1.0",
"sphinx==8.1.3",
"pygments>=2.20.0,<3.0.0",
]
mypy = [
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ commands = rstcheck --report-level warning ../README.rst
# TODO: Add -W back when we fix all the warnings in docstrings
sphinx-build -j auto -b html -d {envtmpdir}/doctrees . _build/html

[testenv:docs-formats]
basepython = python3.12
dependency_groups =
docs
changedir = docs
commands = python ../contrib/generate_provider_feature_matrix_table.py
sphinx-build -j auto -b epub -d {envtmpdir}/doctrees-epub . _build/epub
sphinx-build -M latexpdf . _build -j auto

[testenv:provider-tables]
basepython: python3.12
commands = python ./contrib/generate_provider_feature_matrix_table.py
Expand Down
43 changes: 17 additions & 26 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading