From 54bf6d6369274e8ec0e040d5287038b1cc92329c Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 8 Dec 2017 21:20:12 -0500 Subject: Fix spellchecking test. * Install deps. * Ensure test fails if deps are missing. * Update dictionary for recent docs changes. --- .spell-dict | 16 ++++++++++++---- checkspelling.sh | 8 +++++++- docs/index.md | 2 +- 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__ diff --git a/tox.ini b/tox.ini index 33e0f57..89cc397 100644 --- a/tox.ini +++ b/tox.ini @@ -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] -- cgit v1.2.3