Skip to content

Commit

Permalink
setting up spellchecking as a test in github
Browse files Browse the repository at this point in the history
  • Loading branch information
eviau-artefactual committed Aug 8, 2024
1 parent 4b37049 commit 6291215
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get install -y hunspell-en-ca hyphen-en-ca
- name: "Run build test"
run: |
make test
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ dummy:
@echo
@echo "Build finished. Dummy builder generates no files."

spelling:
$(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
@echo
@echo "Build finished. The spelling files are in $(BUILDDIR)/spelling."

.PHONY: test
test:
$(MAKE) html ALLSPHINXOPTS="-W --keep-going -n ."
10 changes: 10 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,18 @@
extensions = [
'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
'sphinxcontrib.spelling',
]

# Spellchecking

spelling_lang="en_CA"
tokenizer_lang="en_CA"

spelling_word_list_filename = ['spelling_wordlist.txt']

spelling_show_suggestions=True

# Obtain intersphinx_mapping
inventory = 'https://gist.githubusercontent.com/qubot/2dd2f7f96e51121061d4/raw/sphinxdoc-inventory.json'
response = urlopen(inventory)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx
sphinxcontrib-spelling

0 comments on commit 6291215

Please sign in to comment.