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

Function component_dirs

tasks/scripts/sync_docs_website.py:223–235  ·  view source on GitHub ↗
(fern_dir: Path)

Source from the content-addressed store, hash-verified

221
222
223def component_dirs(fern_dir: Path) -> list[str]:
224 dirs: list[str] = []
225 preferred = ["pages-latest", "pages-dev"]
226 all_page_dirs = sorted(
227 path.name for path in fern_dir.glob("pages-*") if path.is_dir()
228 )
229 for name in preferred + all_page_dirs:
230 path = fern_dir / name / "_components"
231 component = f"./{name}/_components"
232 if path.is_dir() and component not in dirs:
233 dirs.append(component)
234 dirs.append("./components")
235 return dirs
236
237
238def update_docs_yml(docs_yml: Path, updated: VersionEntry, fern_dir: Path) -> None:

Callers 2

update_docs_ymlFunction · 0.85
remove_docs_yml_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected