diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6de34e1..7f58085 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,5 +10,4 @@ sphinx: python: install: - - path: . - requirements: docs/requirements.txt diff --git a/docs/conf.py b/docs/conf.py index dc5dd51..2e3a0e5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -8,7 +8,8 @@ import sys import tomllib sys.path.insert(0, os.path.abspath(".")) -sys.path.insert(0, os.path.abspath("../.")) +sys.path.insert(0, os.path.abspath("..")) +sys.path.insert(0, os.path.abspath("../src")) # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -31,6 +32,17 @@ extensions = [ templates_path = ["_templates"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +autodoc_mock_imports = [ + "objc", + "AppKit", + "Cocoa", + "Foundation", + "Quartz", + "PyObjCTools", + "PySide6", + "PyQt6", +] + autodoc_default_options = { "members": True, "member-order": "bysource",