Skip to content

Commit

Permalink
Update sphinx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Jan 15, 2023
1 parent cc36025 commit a2d1756
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# html_static_path = ['_static']
html_static_path = [''] # Remove static path since we have no files
htmlhelp_basename = 'prefixed'

intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ source-dir = doc
build-dir = build/doc
all_files = True
fresh-env = True
warning-is-error = 1
keep-going = 1

[aliases]
spelling=build_sphinx --builder spelling
Expand Down
3 changes: 3 additions & 0 deletions setup_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def print_all_spelling_errors(path):
"""

rtn = 0
if not os.path.isdir(path):
return rtn

for filename in os.listdir(path):
if print_spelling_errors(os.path.join(path, filename)):
rtn = 1
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ deps =

commands=
{envpython} setup_helpers.py spelling-clean
{envpython} setup.py spelling
sphinx-build -vWEa --keep-going -b spelling doc build/doc
{envpython} setup_helpers.py spelling
{envpython} setup.py html
sphinx-build -vWEa --keep-going -b html doc build/doc

0 comments on commit a2d1756

Please sign in to comment.