MCPcopy
hub / github.com/sphinx-doc/sphinx / _load_theme_toml

Function _load_theme_toml

sphinx/theming.py:358–360  ·  view source on GitHub ↗
(config_file_path: Path, /)

Source from the content-addressed store, hash-verified

356
357
358def _load_theme_toml(config_file_path: Path, /) -> _ThemeToml:
359 c = tomllib.loads(config_file_path.read_text(encoding='utf-8'))
360 return {s: c[s] for s in ('theme', 'options') if s in c} # type: ignore[return-value]
361
362
363def _validate_theme_toml(cfg: _ThemeToml, name: str) -> str:

Callers 2

test_config_file_tomlFunction · 0.90
_load_themeFunction · 0.85

Calls 1

loadsMethod · 0.45

Tested by 1

test_config_file_tomlFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…