(value: object, pages_dir: str)
| 139 | |
| 140 | |
| 141 | def prefix_path(value: object, pages_dir: str) -> object: |
| 142 | if not isinstance(value, str): |
| 143 | return value |
| 144 | if value.startswith(("../", "/", "http://", "https://")): |
| 145 | return value |
| 146 | return f"../{pages_dir}/{value}" |
| 147 | |
| 148 | |
| 149 | def prefix_navigation_paths(value: object, pages_dir: str) -> object: |
no outgoing calls
no test coverage detected