mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 16:54:20 +08:00
- 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>
42 lines
1.1 KiB
Python
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",
|
|
}
|