diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2017-12-08 21:20:12 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2017-12-08 22:18:39 -0500 |
commit | 54bf6d6369274e8ec0e040d5287038b1cc92329c (patch) | |
tree | a26f8d44a8767c4c13bad553d22078b69549ae3d | |
parent | 193c5092b130a2e961e476982dc2d2d9c95623d2 (diff) | |
download | markdown-54bf6d6369274e8ec0e040d5287038b1cc92329c.tar.gz markdown-54bf6d6369274e8ec0e040d5287038b1cc92329c.tar.bz2 markdown-54bf6d6369274e8ec0e040d5287038b1cc92329c.zip |
Fix spellchecking test.
* Install deps.
* Ensure test fails if deps are missing.
* Update dictionary for recent docs changes.
-rw-r--r-- | .spell-dict | 16 | ||||
-rwxr-xr-x | checkspelling.sh | 8 | ||||
-rw-r--r-- | docs/index.md | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
4 files changed, 22 insertions, 6 deletions
diff --git a/.spell-dict b/.spell-dict index fb9ea28..13a9439 100644 --- a/.spell-dict +++ b/.spell-dict @@ -16,8 +16,11 @@ Chodarev CLI CodeHilite Cogumbreiro +convertFile CSS +deliminators Dmitry +docdata ElementTree extendMarkdown Fauske @@ -29,6 +32,7 @@ GSoC hacky HeaderId HTTPS +html implementers InlineProcessor Jiryu @@ -43,6 +47,7 @@ makeExtension Manfed markdownFromFile Maruku +MkDocs multi MultiMarkdown munge @@ -53,12 +58,13 @@ nosetests OrderedDict OrderedDicts OSX +ol Ph PHP -Postprocessor -Postprocessors -Preprocessor -Preprocessors +postprocessor +postprocessors +preprocessor +preprocessors Pygments PyPI PyPy @@ -82,6 +88,7 @@ Sergej serializer serializers Shachnev +sitemap slugify SmartyPants Sourceforge @@ -111,6 +118,7 @@ UTF uTidylib versa Waylan +whitelist WikiLink WikiLinks Wolever diff --git a/checkspelling.sh b/checkspelling.sh index 654fef0..ac794f7 100755 --- a/checkspelling.sh +++ b/checkspelling.sh @@ -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" diff --git a/docs/index.md b/docs/index.md index d21b5c5..8c32d51 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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__ @@ -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] |