MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / write_yaml

Function write_yaml

tasks/scripts/sync_docs_website.py:134–138  ·  view source on GitHub ↗
(path: Path, data: YamlMapping)

Source from the content-addressed store, hash-verified

132
133
134def write_yaml(path: Path, data: YamlMapping) -> None:
135 path.write_text(
136 yaml.safe_dump(data, sort_keys=False, allow_unicode=True),
137 encoding="utf-8",
138 )
139
140
141def prefix_path(value: object, pages_dir: str) -> object:

Callers 3

update_docs_ymlFunction · 0.85
remove_docs_yml_entryFunction · 0.85
sync_docsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected