(pythonPath?: string)
| 209 | * Check if a path to Python exists, otherwise raise DocutilsError |
| 210 | */ |
| 211 | export async function requirePython(pythonPath?: string): Promise<string> { |
| 212 | const foundPythonPath = pythonPath ?? (await findPython()); |
| 213 | if (!foundPythonPath) { |
| 214 | throw new DocutilsError(MESSAGE_PYTHON_MISSING); |
| 215 | } |
| 216 | return foundPythonPath; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Reads an `mkdocs.yml` file, merges inherited configs, and returns the result. The result is cached. |
no outgoing calls
no test coverage detected