MCPcopy Index your code
hub / github.com/mkdocs/mkdocs / initialize

Method initialize

hatch_build.py:7–14  ·  view source on GitHub ↗
(self, version, build_data)

Source from the content-addressed store, hash-verified

5
6class CustomBuildHook(BuildHookInterface):
7 def initialize(self, version, build_data):
8 from babel.messages.frontend import compile_catalog
9
10 for theme in 'mkdocs', 'readthedocs':
11 cmd = compile_catalog()
12 cmd.directory = os.path.join('mkdocs', 'themes', theme, 'locales')
13 cmd.finalize_options()
14 cmd.run()

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected