Skip to content
Closed
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
9 changes: 8 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest spellcheck gettext

help:
@echo "Please use \`make <target>' where <target> is one of"
Expand All @@ -45,6 +45,7 @@ help:
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " spellcheck to spell check all files"

clean:
rm -rf $(BUILDDIR)/*
Expand Down Expand Up @@ -166,6 +167,12 @@ doctest:
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."

spellcheck:
$(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spellcheck
@echo
@echo "Spell check complete; look for any errors in the above output," \
"or in $(BUILDDIR)/spellcheck/output.txt."

xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
Expand Down
78 changes: 78 additions & 0 deletions docs/dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Async
CPython
Cobertura
Cython
Dataclasses
Docstring
Enums
Indices
JUnit
Metaclass
Metaclasses
Posix
Pythonic
Typeshed
Unfollowed
Zulip
api
arity
async
attr
attrs
builtin
bytecode
cdef
codebase
config
contravariant
contravariantly
covariantly
cpdef
deserialization
devs
dict
dmypy
downloadable
fallback
genericity
indices
ing
Copy link
Contributor Author

@ceh ceh Jul 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for ”await-ing” in

expect to get back when ``await``-ing the coroutine.

Which is a bit weird, and showcases the downside that the dictionary file would be need to be continuously maintained and updated.

inline
ints
iterable
iterables
linters
macOS
metaclass
metaclasses
metaprogramming
mypy
namespace
py
rebased
redownloading
repo
runtimes
stdlib
subclassable
subclassed
subclassing
subpackages
subprotocols
subtyping
superclasses
supertype
tarball
toplevel
tradeoff
typecheck
typechecks
typeshed
unfollowed
unicode
webcrawler
wiki
wildcard
wildcards
workflow
workflows
10 changes: 10 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ if "%1" == "help" (
echo. pseudoxml to make pseudoxml-XML files for display purposes
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
echo. spellcheck to spell check all files
goto end
)

Expand Down Expand Up @@ -223,6 +224,15 @@ results in %BUILDDIR%/doctest/output.txt.
goto end
)

if "%1" == "spellcheck" (
%SPHINXBUILD% -b spelling %ALLSPHINXOPTS% %BUILDDIR%/spellcheck
if errorlevel 1 exit /b 1
echo.
echo.Spell check complete; look for any errors in the above output ^
or in %BUILDDIR%/spellcheck/output.txt.
goto end
)

if "%1" == "xml" (
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
if errorlevel 1 exit /b 1
Expand Down
1 change: 1 addition & 0 deletions docs/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Sphinx >= 1.4.4
sphinx-rtd-theme >= 0.1.9
sphinxcontrib-spelling >= 4.2.0
15 changes: 14 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
extensions = [ 'sphinxcontrib.spelling' ]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -266,3 +266,16 @@
#texinfo_no_detailmenu = False

rst_prolog = '.. |...| unicode:: U+2026 .. ellipsis\n'


# -- Options for spelling extension ----------------------------------------------

spelling_lang='en_US'

# String specifying a file containing a list of words known to be spelled
# correctly but that do not appear in the language dictionary selected by
# spelling_lang. The file should contain one word per line.
spelling_word_list_filename='../dictionary.txt'

# Boolean controlling whether suggestions for misspelled words are printed.
spelling_show_suggestions=True
2 changes: 1 addition & 1 deletion docs/source/revision_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ detailed release notes):
Split the HTML documentation into
multiple pages.

- Sep 2014
- Sept 2014
Migrated docs to Sphinx.

- Aug 2014
Expand Down