Skip to content

Commit

Permalink
Used GitHub actions for docs tests.
Browse files Browse the repository at this point in the history
Co-Authored-By: Tom Forbes <[email protected]>
  • Loading branch information
felixxm and orf committed Feb 26, 2021
1 parent acddbc5 commit 9f125fc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Docs

on:
pull_request:
paths:
- 'docs/**'
push:
branches:
- master
paths:
- 'docs/**'

jobs:
docs:
runs-on: ubuntu-latest
name: docs
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: python -m pip install -r docs/requirements.txt
- name: Build docs
run: |
cd docs
sphinx-build -b spelling -n -q -W --keep-going -d _build/doctrees -D language=en_US -j auto . _build/spelling
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
# Location of word list.
spelling_word_list_filename = 'spelling_wordlist'

spelling_warning = True

# Add any paths that contain templates here, relative to this directory.
# templates_path = []

Expand Down Expand Up @@ -125,7 +127,7 @@ def django_release():

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build', '_theme']
exclude_patterns = ['_build', '_theme', 'requirements.txt']

# The reST default role (used for this markup: `text`) to use for all documents.
default_role = "default-role-error"
Expand Down
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pyenchant
sphinx
sphinxcontrib-spelling

0 comments on commit 9f125fc

Please sign in to comment.