(docs_yml: Path, updated: VersionEntry, fern_dir: Path)
| 236 | |
| 237 | |
| 238 | def 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 | |
| 249 | def remove_docs_yml_entry(docs_yml: Path, slug: str, fern_dir: Path) -> None: |
no test coverage detected