python-rdflib/sphinx8.patch

14 lines
561 B
Diff
Raw Normal View History

Index: rdflib-7.1.1/docs/conf.py
===================================================================
--- rdflib-7.1.1.orig/docs/conf.py
+++ rdflib-7.1.1/docs/conf.py
@@ -300,7 +300,7 @@ def autodoc_skip_member_handler(
"""
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#event-autodoc-skip-member
if (
- app.env.docname == "apidocs/rdflib"
+ app.env.docname in ["apidocs/rdflib", "apidocs/rdflib.namespace"]
and what == "module"
and type(obj).__name__.endswith("DefinedNamespaceMeta")
):