mystx.configs#

1.  Attributes#

2.  Functions#

_resolve_html_baseurl(→ str | None)

从环境变量 / 项目参数中推断 ``html_baseurl``(sitemap + ogp 需要)。

build_base_config(→ dict[str, Any])

基于默认字典 + 项目覆盖,组装出 Sphinx 所需的核心配置。

3.  Module Contents#

mystx.configs.DEFAULT_MYST_CONFIG: dict[str, Any][源代码]#
mystx.configs.DEFAULT_BUILD_CONFIG: dict[str, Any][源代码]#
mystx.configs.DEFAULT_EXT_CONFIG: dict[str, Any][源代码]#
mystx.configs.DEFAULT_HTML_CONFIG: dict[str, Any][源代码]#
mystx.configs._resolve_html_baseurl(params: dict[str, Any]) → str | None[源代码]#

从环境变量 / 项目参数中推断 ``html_baseurl``(sitemap + ogp 需要)。

mystx.configs.build_base_config(params: dict[str, Any] | None = None) → dict[str, Any][源代码]#

基于默认字典 + 项目覆盖,组装出 Sphinx 所需的核心配置。

不包含 extensions / html_theme / hooks(这些在各自模块中处理)。