diff options
author | Susan Wright <swright573@icloud.com> | 2021-04-30 08:04:22 -0400 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-04-30 14:09:59 +0200 |
commit | 8e1900d4f37c85dfec35fbc785d891dc775fc15f (patch) | |
tree | bb2df13e757ca5f03b59c3cbb96d9ee1bf583d44 | |
parent | ce130749d51302006f76e33b9987eaec20589837 (diff) | |
download | django-8e1900d4f37c85dfec35fbc785d891dc775fc15f.tar.gz |
[3.2.x] Added spelling option to make.bat.
Backport of 7582d913e7db7f32e4cdcfafc177aa77cbbf4332 from main
-rw-r--r-- | docs/make.bat | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/make.bat b/docs/make.bat index 65602aa160..4743692ca3 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -34,6 +34,7 @@ if "%1" == "help" ( echo. changes to make an overview over all changed/added/deprecated items echo. linkcheck to check all external links for integrity echo. doctest to run all doctests embedded in the documentation if enabled + echo. spelling to check for typos in documentation goto end ) @@ -186,4 +187,13 @@ results in %BUILDDIR%/doctest/output.txt. goto end ) +if "%1" == "spelling" ( + %SPHINXBUILD% -b spelling %ALLSPHINXOPTS% %BUILDDIR%/spelling + if errorlevel 1 exit /b 1 + echo. + echo.Check finished. Wrong words can be found in %BUILDDIR%/^ +spelling/output.txt. + goto end +) + :end |