Skip to content

Commit

Permalink
Add .readthedocs.yml, align python version in ci to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Mar 6, 2023
1 parent 2d258b9 commit 83ffbcd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
python -m pip install -r requirements/common.pip
- run: coverage run --source=django_tables2 manage.py test

build_docs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4.5.0
with:
python-version: 3.9
python-version: "3.11"
cache: 'pip'
cache-dependency-path: |
docs/requirements.txt
Expand Down
21 changes: 21 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt

0 comments on commit 83ffbcd

Please sign in to comment.