set_title_from_environment#
- technote.ext.metadata.set_title_from_environment(app, env)#
Set the technote title from the root document’s H1 once the read phase is complete.
This function is hooked into the Sphinx
env-updatedevent, which fires for every builder. It reads the root document’s doctree from the environment, so it also works for incremental builds where the root document was not re-read. The title intechnote.tomlis never overridden.- Parameters:
app (
Sphinx)env (
BuildEnvironment)
- Return type: