Skip to content

Commit

Permalink
docs: build docs from requirements-docs.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <[email protected]>
  • Loading branch information
mr-cal committed Aug 26, 2024
1 parent 37d2803 commit 9458688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ build:
- libapt-pkg-dev
jobs:
post_checkout:
- git fetch --unshallow || true # See https://docs.readthedocs.io/en/latest/build-customization.html#unshallow-git-clone
- git fetch --tags --depth 1 # Also fetch tags
- git describe # Useful for debugging

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
builder: html
builder: dirhtml
fail_on_warning: true

python:
install:
- requirements: docs/requirements.txt
- requirements: requirements-docs.txt
- method: pip
path: .
extra_requirements:
- docs
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ no_package = true
env_dir = {work_dir}/docs
runner = ignore_env_name_mismatch
deps =
-r{tox_root}/docs/requirements.txt
-r{tox_root}/requirements-docs.txt

[testenv:build-docs]
description = Build sphinx documentation
Expand Down

0 comments on commit 9458688

Please sign in to comment.