Files
easy-tdx/docs/conf.py
T
GitHubandClaude Opus 4.8 b44636207b release: v1.8.1 - single-source version, batch backtest detail output
- Consolidate version to pyproject.toml as single source of truth
- __init__.py, cli/__init__.py, docs/conf.py all read dynamically
- run_all_strategies.py now shows best strategy full trade details
- Update README changelog for 1.8.1

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 22:12:27 +08:00

42 lines
1.1 KiB
Python

# -- Sphinx configuration for easy-tdx ---------------------------------------
project = "easy-tdx"
copyright = "2025, Justin Gu"
author = "Justin Gu"
# The full version, including alpha/beta/rc tags
# Read from package metadata to keep single source of truth (pyproject.toml)
def _get_version() -> str:
from importlib.metadata import version
return version("easy-tdx")
release = _get_version()
# -- Extensions ---------------------------------------------------------------
extensions = [
"myst_parser",
]
# -- MyST parser config -------------------------------------------------------
myst_enable_extensions = [
"colon_fence",
"deflist",
]
# Suppress cross-reference warnings for relative links (e.g. docs/*.md, LICENSE)
suppress_warnings = ["myst.xref_missing"]
# -- HTML output --------------------------------------------------------------
html_theme = "sphinx_rtd_theme"
html_theme_options = {
"navigation_depth": 3,
}
# -- Source suffix -------------------------------------------------------------
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}