Skip to content

Commit

Permalink
Improve docs (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden authored Jun 3, 2024
1 parent 418cac2 commit 172e8c7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/src/404.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

sphinx-codeautolink
===================

Expand Down
8 changes: 8 additions & 0 deletions docs/src/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ Caveats

Sphinx semantics
----------------
Warnings
********
For an easier time with debugging, we recommend enabling all warnings,
treating them as errors with ``-W`` and only ignoring specific warning types
with :confval:`suppress_warnings`. This is also easier if
:confval:`show_warning_types` is set.

Clean build
***********
For correct partial builds, code reference information is saved to a file
Expand All @@ -64,6 +71,7 @@ Sphinx cache
A function specified in :confval:`codeautolink_custom_blocks` prevents Sphinx
from caching documentation results. Consider using an importable instead.
For more information, see the discussion in :issue:`76`.
You can also suppress the warning.

Parallel build and custom parsers
*********************************
Expand Down
1 change: 1 addition & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# Builtin options
html_theme = "sphinx_rtd_theme"
python_use_unqualified_type_names = True
show_warning_types = True

# Extension options
codeautolink_autodoc_inject = True
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ commands = pydocstyle src
description = Build Sphinx documentation
allowlist_externals = sphinx-build
change_dir = docs
commands = sphinx-build -M html src build
commands = sphinx-build -M html src build -W

[testenv:black-check]
description = Check code formatting
Expand Down

0 comments on commit 172e8c7

Please sign in to comment.