Skip to content

Commit 6570e5f

Browse files
committed
Add check to detect reCommonMark version mismatches without a bunch of unhelpful Sphinx output
1 parent 1808e2c commit 6570e5f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ def section_property_attrgetter(object, name, default=None):
417417

418418
# app setup hook for reCommonMark's AutoStructify and our own extension
419419
def setup(app):
420+
# Ensure we are building with reCommonMark 0.5+
421+
import recommonmark
422+
assert tuple(int(v) for v in recommonmark.__version__.split(".", 2)[0:2]) >= (0, 5)
423+
420424
from recommonmark.transform import AutoStructify
421425
app.add_config_value("recommonmark_config", {
422426
"auto_toc_tree_section": "Contents",

docs/http_client_ref.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All commands are accessed through the ``ipfshttpclient.Client`` class.
77

88
```eval_rst
99
.. automodule:: ipfshttpclient.exceptions
10-
:members:
10+
:members:
1111
```
1212

1313

0 commit comments

Comments
 (0)