Skip to content

Commit 9736c31

Browse files
authored
Fix doc (#85)
* fix: fail on warning * fix: typo * Suppress duplicate symbol warnings
1 parent 8baa8f6 commit 9736c31

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

dissect/hypervisor/disk/vdi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class VDI:
1919
"""VirtualBox Virtual Disk Image (VDI) implementation.
2020
21-
Use :method:`open` to get a stream for reading from the VDI file. The stream will handle reading
21+
Use :meth:`open` to get a stream for reading from the VDI file. The stream will handle reading
2222
from the parent disk if necessary (and provided).
2323
2424
If provided with a file-like object, the caller is responsible for closing it.

tests/_docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?= -jauto
6+
SPHINXOPTS ?= -jauto -w $(BUILDDIR)/warnings.log --fail-on-warning
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = build

tests/_docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"show-inheritance",
2828
"show-module-summary",
2929
"special-members",
30-
"imported-members",
3130
]
3231
autoapi_keep_files = True
3332
autoapi_template_dir = "_templates/autoapi"
@@ -36,3 +35,8 @@
3635
autodoc_member_order = "groupwise"
3736

3837
autosectionlabel_prefix_document = True
38+
39+
suppress_warnings = [
40+
# https://github.com/readthedocs/sphinx-autoapi/issues/285
41+
"autoapi.python_import_resolution",
42+
]

0 commit comments

Comments
 (0)