MCPcopy Create free account
hub / github.com/DFHack/dfhack / setup

Function setup

docs/sphinx_extensions/dfhack/tool_docs.py:317–331  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

315 _KEYBINDS.update(scan_all_keybinds(os.path.join(dfhack.util.DFHACK_ROOT, 'data', 'init')))
316
317def setup(app):
318 app.connect('builder-inited', register)
319
320 app.add_domain(TagRepoDomain)
321 register_index(app, 'all', 'Index of DFHack tools')
322 init_tag_indices(app)
323
324 # TODO: re-enable once detection is corrected
325 # app.connect('build-finished', lambda *_: check_missing_keybinds())
326
327 return {
328 'version': '0.1',
329 'parallel_read_safe': True,
330 'parallel_write_safe': True,
331 }

Callers

nothing calls this directly

Calls 3

register_indexFunction · 0.85
init_tag_indicesFunction · 0.85
connectMethod · 0.45

Tested by

no test coverage detected