mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-05 23:00:20 +00:00
245a8a1257
- Link key music theory terms to Wikipedia across all guide pages - Physics of Consonance section now demos .harmony, .dissonance, .tension, and .beat_frequencies with code examples - Copyright updated to 2026 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
810 B
Python
39 lines
810 B
Python
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 = "2026, Kenneth Reitz"
|
|
author = "Kenneth Reitz"
|
|
release = "0.2.0"
|
|
|
|
extensions = [
|
|
"sphinx.ext.autodoc",
|
|
"sphinx.ext.napoleon",
|
|
"sphinx.ext.viewcode",
|
|
"sphinx.ext.intersphinx",
|
|
]
|
|
|
|
autodoc_member_order = "bysource"
|
|
autodoc_default_options = {
|
|
"members": True,
|
|
"undoc-members": True,
|
|
"show-inheritance": True,
|
|
}
|
|
|
|
intersphinx_mapping = {
|
|
"python": ("https://docs.python.org/3", None),
|
|
}
|
|
|
|
templates_path = ["_templates"]
|
|
exclude_patterns = ["_build"]
|
|
|
|
html_theme = "alabaster"
|
|
html_static_path = ["_static"]
|
|
html_extra_path = ["CNAME"]
|