Skip to content

Commit

Permalink
Rollback sphinxcontrib-spelling for Sphinx (#263)
Browse files Browse the repository at this point in the history
This reverts commit bab0e61.
This change breaks in deployment due to using an older version of python
and sphinx, so rolling this change back temporarily until those are
upgraded.
  • Loading branch information
anvit committed Mar 6, 2024
1 parent 317e72e commit cf6cf6d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 488 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- name: "Install requirements"
run: |
pip install -r requirements.txt
sudo apt-get install -y hunspell-en-ca hyphen-en-ca
- name: "Run build test"
run: |
make test
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,9 @@ pseudoxml:
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

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

dos2unix:
find . -name "*.txt" | grep -v _build | xargs -IF fromdos F

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

# spelling

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
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sphinx
sphinx_rtd_theme
sphinx_version_ref
sphinxcontrib-spelling
sphinx_version_ref
Loading

0 comments on commit cf6cf6d

Please sign in to comment.