(value: object, pages_dir: str)
| 147 | |
| 148 | |
| 149 | def prefix_navigation_paths(value: object, pages_dir: str) -> object: |
| 150 | if isinstance(value, dict): |
| 151 | mapping = cast("YamlMapping", value) |
| 152 | for key in ("path", "folder"): |
| 153 | if key in mapping: |
| 154 | mapping[key] = prefix_path(mapping[key], pages_dir) |
| 155 | for child in mapping.values(): |
| 156 | prefix_navigation_paths(child, pages_dir) |
| 157 | elif isinstance(value, list): |
| 158 | for child in cast("list[object]", value): |
| 159 | prefix_navigation_paths(child, pages_dir) |
| 160 | return value |
| 161 | |
| 162 | |
| 163 | def version_navigation(source_index: Path, pages_dir: str) -> YamlMapping: |
no test coverage detected