Buckets:

download
raw
980 Bytes
"""
Central entrypoint for all docs generation.
This is the script executed by the mkdocs-gen-files plugin.
It runs all other generator scripts (Python API, AI index, OpenAPI page, etc.)
inside the MkDocs/mkdocs-gen-files environment.
"""
from __future__ import annotations
from pathlib import Path
import runpy
def run_if_exists(path: Path) -> None:
"""Run a Python script at `path` if it exists."""
if path.is_file():
print(f"[docs] Running generator: {path}")
runpy.run_path(path)
def main() -> None:
# /tooling
root = Path(__file__).resolve().parent
# Core Python API docs (your generate_docs.py)
run_if_exists(root / "generate_docs.py")
# Optional: AI index generator (if you add it)
run_if_exists(root / "generate_ai_index.py")
# Optional: OpenAPI or REST docs generator
run_if_exists(root / "generate_openapi_page.py")
# IMPORTANT: run main() on import so mkdocs-gen-files actually does something.
main()

Xet Storage Details

Size:
980 Bytes
·
Xet hash:
398d2a4e55047080c5e7359cc8f375a645f1d5f43ec5f54030e4e6db4014695a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.