diff --git a/docs/conf.py b/docs/conf.py index 579e3f0..157a63c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,8 +1,12 @@ import os import sys +from unittest.mock import MagicMock sys.path.insert(0, os.path.abspath("..")) +# Mock sounddevice so Sphinx can import pytheory.play without PortAudio +sys.modules["sounddevice"] = MagicMock() + project = "PyTheory" copyright = "2024, Kenneth Reitz" author = "Kenneth Reitz"