Skip to content

Commit 5285a47

Browse files
committed
doc: Exclude tests from docs
1 parent d975670 commit 5285a47

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/schemacode/docs/_templates/module.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
:template: module.rst
1212
:recursive:
1313
{% for item in modules %}
14+
{% if item != 'tests' %}
1415
{{ item }}
16+
{% endif %}
1517
{%- endfor %}
1618
{% endif %}
1719
{% endblock %}

tools/schemacode/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# List of patterns, relative to source directory, that match files and
4949
# directories to ignore when looking for source files.
5050
# This pattern also affects html_static_path and html_extra_path.
51-
exclude_patterns = ["_build", "tests"]
51+
exclude_patterns = ["_build"]
5252

5353

5454
autosummary_mock_imports = [

0 commit comments

Comments
 (0)