File tree Expand file tree Collapse file tree 5 files changed +59
-26
lines changed Expand file tree Collapse file tree 5 files changed +59
-26
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ formats :
4
+ - htmlzip
5
+
6
+ # build with latest available ubuntu version
7
+ build :
8
+ os : ubuntu-lts-latest
9
+ tools :
10
+ python : " 3.12"
11
+ # need to install playwright deps via apt (lack of sudo means we can't use
12
+ # `playwright install-deps`). NB: Graphviz is a separate dep urelated to playwright
13
+ apt_packages :
14
+ - graphviz
15
+ - libasound2
16
+ - libdbus-glib-1-2
17
+ jobs :
18
+ # build the gallery of themes before building the doc
19
+ post_install :
20
+ - pip install playwright
21
+ - playwright install chromium
22
+ - python ./docs/scripts/generate_gallery_images.py
23
+
24
+ sphinx :
25
+ configuration : docs/conf.py
26
+ # builder: "dirhtml"
27
+ fail_on_warning : false # we have some unavoidable warnings, and a separate warnings checker
28
+
29
+ python :
30
+ install :
31
+ - method : pip
32
+ path : .
33
+ extra_requirements :
34
+ - doc
Original file line number Diff line number Diff line change 292
292
autoapi_root = "api"
293
293
autoapi_member_order = "groupwise"
294
294
295
+ # -- Warnings / Nitpicky -------------------------------------------------------
296
+
297
+ nitpicky = True
298
+ bad_classes = (
299
+ r".*abc def.*" , # urllib.parse.unquote_to_bytes
300
+ r"api_sample\.RandomNumberGenerator" ,
301
+ r"bs4\.BeautifulSoup" ,
302
+ r"docutils\.nodes\.Node" ,
303
+ r"matplotlib\.artist\.Artist" , # matplotlib xrefs are in the class diagram demo
304
+ r"matplotlib\.figure\.Figure" ,
305
+ r"matplotlib\.figure\.FigureBase" ,
306
+ r"pygments\.formatters\.HtmlFormatter" ,
307
+ )
308
+ nitpick_ignore_regex = [
309
+ * [("py:class" , target ) for target in bad_classes ],
310
+ # we demo some `urllib` docs on our site; don't care that its xrefs fail to resolve
311
+ ("py:obj" , r"urllib\.parse\.(Defrag|Parse|Split)Result(Bytes)?\.(count|index)" ),
312
+ # the kitchen sink pages include some intentional errors
313
+ ("token" , r"(suite|expression|target)" ),
314
+ ]
315
+
295
316
# -- application setup -------------------------------------------------------
296
317
297
318
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ def check_warnings(file: Path) -> bool:
30
30
print ("\n === Sphinx Warnings test ===\n " )
31
31
32
32
# find the file where all the known warnings are stored
33
- warning_file = Path (__file__ ).parent . parent / "warning_list.txt"
34
- extra_warning_file = Path (__file__ ).parent . parent / "intermittent_warning_list.txt"
33
+ warning_file = Path (__file__ ).parents [ 1 ] / "warning_list.txt"
34
+ extra_warning_file = Path (__file__ ).parents [ 1 ] / "intermittent_warning_list.txt"
35
35
36
36
received_warnings = escape_ansi (file .read_text ()).strip ().split ("\n " )
37
37
expected_warnings = warning_file .read_text ().strip ().split ("\n " )
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ extras = {[testenv:docs-no-checks]extras}
108
108
deps =
109
109
py39-sphinx61-docs: sphinx~=6.1.0
110
110
commands =
111
- sphinx-build -b html docs/ docs/_build/html -v -w warnings.txt {posargs}
111
+ sphinx-build -b html docs/ docs/_build/html -nTv -w warnings.txt {posargs}
112
112
python tests/utils/check_warnings.py
113
113
114
114
# recommended for local development, this command will build the PST documentation
@@ -122,7 +122,7 @@ set_env = PYDEVD_DISABLE_FILE_VALIDATION=1
122
122
extras = {[testenv:docs-no-checks]extras}
123
123
package = editable
124
124
commands =
125
- sphinx-build -b html docs/ docs/_build/html -v -w warnings.txt {posargs}
125
+ sphinx-build -b html docs/ docs/_build/html -nTv -w warnings.txt {posargs}
126
126
python tests/utils/check_warnings.py
127
127
128
128
# build the docs with live-reload, if you are working on the docs only (no theme changes) the best option is to call
You can’t perform that action at this time.
0 commit comments