Lines Matching +full:app +full:- +full:path
3 # SPDX-License-Identifier: Apache-2.0
5 # based on http://protips.readthedocs.io/link-roles.html
10 from pathlib import Path
16 ZEPHYR_BASE: Final[str] = Path(__file__).parents[3]
35 "git describe --exact-match", shell=True, stderr=subprocess.DEVNULL
40 return output.strip().decode("utf-8")
43 def setup(app): argument
44 app.add_role("zephyr_file", modulelink("zephyr"))
45 app.add_role("zephyr_raw", modulelink("zephyr", format="raw"))
46 app.add_role("module_file", modulelink())
48 app.add_config_value("link_roles_manifest_baseurl", None, "env")
49 app.add_config_value("link_roles_manifest_project", None, "env")
50 app.add_config_value("link_roles_manifest_project_broken_links_ignore_globs", [], "env")
74 config = inliner.document.settings.env.app.config
94 # This allows e.g. building the docs in downstream Zephyr-based
118 p = Path(source).relative_to(inliner.document.settings.env.srcdir)
122 ) and not Path(ZEPHYR_BASE, link).exists():