Skip to content

Commit 1e9a586

Browse files
authored
add codeautolink (#250)
1 parent eff3987 commit 1e9a586

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ build:
1919
# Build documentation in the "docs/" directory with Sphinx
2020
sphinx:
2121
configuration: docs/conf.py
22+
fail_on_warning: true
2223

2324
# Optionally build your docs in additional formats such as PDF and ePub
2425
# formats:

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
extensions: list[str] = [
2929
"sphinx.ext.intersphinx",
30+
"sphinx_codeautolink",
3031
]
3132

3233
intersphinx_mapping = {
@@ -38,6 +39,11 @@
3839
# see https://github.com/encode/httpx/discussions/1220
3940
# we only have a few references to httpx though, so can just link manually.
4041
}
42+
43+
# these are disabled by default, might re-disable them if they turn out to be noisy
44+
codeautolink_warn_on_missing_inventory = True
45+
codeautolink_warn_on_failed_resolve = True
46+
4147
templates_path = ["_templates"]
4248
exclude_patterns: list[str] = ["_build", "Thumbs.db", ".DS_Store"]
4349

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
libcst
2+
sphinx-codeautolink

0 commit comments

Comments
 (0)