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

Method get_options

sphinx/theming.py:131–143  ·  view source on GitHub ↗

Return a dictionary of theme options and their values.

(self, overrides: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

129 return value
130
131 def get_options(self, overrides: dict[str, Any] | None = None) -> dict[str, Any]:
132 """Return a dictionary of theme options and their values."""
133 if overrides is None:
134 overrides = {}
135
136 options = self._options.copy()
137 for option, value in overrides.items():
138 if option not in options:
139 logger.warning(__('unsupported theme option %r given'), option)
140 else:
141 options[option] = value
142
143 return options
144
145 def _cleanup(self) -> None:
146 """Remove temporary directories."""

Callers 3

write_documentsMethod · 0.80
prepare_writingMethod · 0.80
test_theme_apiFunction · 0.80

Calls 3

copyMethod · 0.45
itemsMethod · 0.45
warningMethod · 0.45

Tested by 1

test_theme_apiFunction · 0.64