Serve the docs using Python's http server arguments: directory -- Directory to serve from
(directory: str = "_docs")
| 321 | |
| 322 | |
| 323 | def serve_docs(directory: str = "_docs") -> None: |
| 324 | """ |
| 325 | Serve the docs using Python's http server |
| 326 | |
| 327 | arguments: |
| 328 | directory -- Directory to serve from |
| 329 | """ |
| 330 | directory_path = Path(directory) |
| 331 | if not directory_path.exists(): |
| 332 | clean_exit("Docs have not been built, run 'ci.py docs' first") |
| 333 | cmd([sys.executable, "-m", "http.server"], cwd=directory_path) |
| 334 | |
| 335 | |
| 336 | def lint(interactive: bool = False, fix: bool = False, docker_image: str | None = None) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…