-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sphinx build: catch warnings for style errors (#208)
* See if adding fail_on_warning in a readthedocs yml file does the trick * Change to 4 spaces indent for .readthedocs.yml * Update documentation: remove extraneous md files and change Makefile to fail if warning caught * Intentionally put a mistake in the documentation to try and force error * Get configuration right to ensure we fail on warning * Fix version error (removed) * Add an intentional indentation error (appeared on local make html) to see if readthedocs fails * Fix error when trying to break spatial_analysis.py * Change .readthedocs.yml * Add more configuration * See if changing to version 2 changes anything * Now fix intentional issue and see if readthedocs passes now * This should fix it... * Fix docstring in test_utils and configure conf.py to ignore ark.md * Try out new conf.py settings to see if Sphinx makes the documentation for us * Re-add _static and _templates and update params in conf.py to build documentation in correct locations * Fix regex to ignore testing files * Update .gitignore to ensure people do not try to add the _markdown files generated if testing locally * Configure conf.py to catch docstring errors, and intentionally push a bad build to see if ReadTheDocs actually catches them * Fix argument-list errors caught by autodoc-process-docstring * conf.py now works to catch basic return errors not caught by arglist checking * conf.py now handles argument-less function docstring checks, and fixed bulleted list issue in test_utils.py * Remove TODOs in conf.py * Remove extra arguments checks, leave just 1 all-encompassing one
- Loading branch information
1 parent
e567fef
commit 5f17430
Showing
19 changed files
with
147 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ env | |
/dist | ||
|
||
*/_build | ||
*/_markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
sphinx: | ||
fail_on_warning: true | ||
|
||
python: | ||
version: 3.6 | ||
install: | ||
- requirements: docs/rtd-requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SPHINXOPTS = | ||
SPHINXOPTS = -W --keep-going | ||
SPHINXBUILD = sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.