Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Update Read the Docs (RTD) configuration. Refactor Sphinx dependencies. #565

Merged
merged 2 commits into from
Oct 30, 2024
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -31,7 +31,7 @@ jobs:

- name: Install package and documentation dependencies
run: |
uv pip install --system '.[develop]' --requirement=docs/requirements.txt
uv pip install --system '.[develop,docs]'

- name: Run link checker
run: |
Expand Down
33 changes: 33 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# .readthedocs.yml
# Read the Docs configuration file

# Details
# - https://docs.readthedocs.io/en/stable/config-file/v2.html

# Required
version: 2

build:
os: "ubuntu-24.04"
tools:
python: "3.12"

python:
install:
- method: pip
path: .
extra_requirements:
- docs

sphinx:
configuration: docs/source/conf.py

# Use standard HTML builder.
builder: html

# Fail on all warnings to avoid broken references.
fail_on_warning: true

# Optionally build your docs in additional formats such as PDF
#formats:
# - pdf
7 changes: 6 additions & 1 deletion DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git clone https://github.com/kennethreitz/responder
cd responder
python3 -m venv .venv
source .venv/bin/activate
pip install --editable '.[graphql,develop,release,test]'
pip install --editable '.[graphql,develop,docs,release,test]'
```

Invoke linter and software tests.
Expand All @@ -20,3 +20,8 @@ Format code.
```shell
poe format
```

Documentation authoring.
```shell
poe docs-autobuild
```
6 changes: 0 additions & 6 deletions docs/requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions readthedocs.yml

This file was deleted.

4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def run(self):
"ruff; python_version>='3.7'",
"validate-pyproject",
],
"docs": [
"alabaster<1.1",
"sphinx>=5,<9",
],
"graphql": ["graphene"],
"release": ["build", "twine"],
"test": ["pytest", "pytest-cov", "pytest-mock", "flask"],
Expand Down
Loading