Skip to content

Commit 172e8c7

Browse files
authored
Improve docs (#143)
1 parent 418cac2 commit 172e8c7

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

docs/src/404.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
sphinx-codeautolink
24
===================
35

docs/src/about.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ Caveats
5151

5252
Sphinx semantics
5353
----------------
54+
Warnings
55+
********
56+
For an easier time with debugging, we recommend enabling all warnings,
57+
treating them as errors with ``-W`` and only ignoring specific warning types
58+
with :confval:`suppress_warnings`. This is also easier if
59+
:confval:`show_warning_types` is set.
60+
5461
Clean build
5562
***********
5663
For correct partial builds, code reference information is saved to a file
@@ -64,6 +71,7 @@ Sphinx cache
6471
A function specified in :confval:`codeautolink_custom_blocks` prevents Sphinx
6572
from caching documentation results. Consider using an importable instead.
6673
For more information, see the discussion in :issue:`76`.
74+
You can also suppress the warning.
6775

6876
Parallel build and custom parsers
6977
*********************************

docs/src/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
# Builtin options
3333
html_theme = "sphinx_rtd_theme"
3434
python_use_unqualified_type_names = True
35+
show_warning_types = True
3536

3637
# Extension options
3738
codeautolink_autodoc_inject = True

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ commands = pydocstyle src
6060
description = Build Sphinx documentation
6161
allowlist_externals = sphinx-build
6262
change_dir = docs
63-
commands = sphinx-build -M html src build
63+
commands = sphinx-build -M html src build -W
6464

6565
[testenv:black-check]
6666
description = Check code formatting

0 commit comments

Comments
 (0)