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

Function update_docs_yml

tasks/scripts/sync_docs_website.py:238–246  ·  view source on GitHub ↗
(docs_yml: Path, updated: VersionEntry, fern_dir: Path)

Source from the content-addressed store, hash-verified

236
237
238def update_docs_yml(docs_yml: Path, updated: VersionEntry, fern_dir: Path) -> None:
239 data = read_yaml(docs_yml)
240 data["experimental"] = {
241 "mdx-components": component_dirs(fern_dir),
242 }
243 data["versions"] = render_versions(
244 ordered_entries(parse_versions(data.get("versions")), updated)
245 )
246 write_yaml(docs_yml, data)
247
248
249def remove_docs_yml_entry(docs_yml: Path, slug: str, fern_dir: Path) -> None:

Callers 1

sync_docsFunction · 0.85

Calls 7

component_dirsFunction · 0.85
render_versionsFunction · 0.85
ordered_entriesFunction · 0.85
parse_versionsFunction · 0.85
write_yamlFunction · 0.85
read_yamlFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected