MCPcopy Create free account
hub / github.com/apache/tvm / serve_docs

Function serve_docs

tests/scripts/ci.py:323–333  ·  view source on GitHub ↗

Serve the docs using Python's http server arguments: directory -- Directory to serve from

(directory: str = "_docs")

Source from the content-addressed store, hash-verified

321
322
323def 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
336def lint(interactive: bool = False, fix: bool = False, docker_image: str | None = None) -> None:

Callers

nothing calls this directly

Calls 2

clean_exitFunction · 0.85
cmdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…