Skip to content

Commit

Permalink
Fix spellchecking test.
Browse files Browse the repository at this point in the history
* Install deps.
* Ensure test fails if deps are missing.
* Update dictionary for recent docs changes.
  • Loading branch information
waylan committed Dec 9, 2017
1 parent 193c509 commit 54bf6d6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .spell-dict
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ Chodarev
CLI
CodeHilite
Cogumbreiro
convertFile
CSS
deliminators
Dmitry
docdata
ElementTree
extendMarkdown
Fauske
Expand All @@ -29,6 +32,7 @@ GSoC
hacky
HeaderId
HTTPS
html
implementers
InlineProcessor
Jiryu
Expand All @@ -43,6 +47,7 @@ makeExtension
Manfed
markdownFromFile
Maruku
MkDocs
multi
MultiMarkdown
munge
Expand All @@ -53,12 +58,13 @@ nosetests
OrderedDict
OrderedDicts
OSX
ol
Ph
PHP
Postprocessor
Postprocessors
Preprocessor
Preprocessors
postprocessor
postprocessors
preprocessor
preprocessors
Pygments
PyPI
PyPy
Expand All @@ -82,6 +88,7 @@ Sergej
serializer
serializers
Shachnev
sitemap
slugify
SmartyPants
Sourceforge
Expand Down Expand Up @@ -111,6 +118,7 @@ UTF
uTidylib
versa
Waylan
whitelist
WikiLink
WikiLinks
Wolever
Expand Down
8 changes: 7 additions & 1 deletion checkspelling.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/bin/bash

echo "Building docs..."
mkdocs build --clean
mkdocs build
if [ $? -ne 0 ]; then
exit 1
fi
echo "Compiling Dictionary..."
aspell --lang=en create master ./tmp <.spell-dict
if [ $? -ne 0 ]; then
exit 1
fi
echo "Checking spelling..."

let "fails=0"
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ features:

* __Output Formats__

Python-Markdown can output documents with either HTML or XHTML styel tags.
Python-Markdown can output documents with either HTML or XHTML style tags.
See the [Library Reference](reference.md#output_format) for details.

* __Command Line Interface__
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ commands = flake8 {toxinidir}/markdown {toxinidir}/tests {toxinidir}/setup.py {t

[testenv:checkspelling]
deps =
mkdocs
mkdocs_nature
commands = {toxinidir}/checkspelling.sh

[flake8]
Expand Down

0 comments on commit 54bf6d6

Please sign in to comment.