Lines Matching +full:app +full:- +full:path
4 SPDX-License-Identifier: Apache-2.0
65 def run(self, **kwargs: Any) -> None:
76 entry = self.app.env.doxybridge_cache.get(reftype)
85 id = self.app.env.doxybridge_cache.get("macro").get(reftarget)
95 doxygen_target = f"{'_'.join(split[:-1])}.html#{split[-1][1:]}"
97 doxygen_target = str(self.app.config.doxybridge_dir) + "/html/" + doxygen_target
99 doc_dir = os.path.dirname(self.document.get("source"))
100 doc_dest = os.path.join(
101 self.app.outdir,
102 os.path.relpath(doc_dir, self.app.srcdir),
104 rel_uri = os.path.relpath(doxygen_target, doc_dest)
112 title = self.app.env.doxybridge_group_titles.get(reftarget, "group")
154 def parse_compound(inDirName, baseName) -> dict:
181 def parse_index(app: Sphinx, inDirName):
193 app.env.doxybridge_cache.setdefault(kind, {}).update(data)
194 app.env.doxybridge_group_titles.update(group_titles)
197 def doxygen_parse(app: Sphinx) -> None:
198 if not app.env.doxygen_input_changed:
201 app.env.doxybridge_cache = {
213 app.env.doxybridge_group_titles = {}
215 parse_index(app, str(app.config.doxybridge_dir / "xml"))
218 def setup(app: Sphinx) -> dict[str, Any]:
219 app.add_config_value("doxybridge_dir", None, "env")
221 app.add_directive("doxygengroup", DoxygenGroupDirective)
223 app.add_role_to_domain("c", "group", CXRefRole())
225 app.add_post_transform(DoxygenReferencer)
226 app.connect("builder-inited", doxygen_parse)