Documentation sites and API sources
Documentation sites and API sources
Section titled “Documentation sites and API sources”PySparky uses static Astro and Starlight sites hosted on GitHub Pages. The
Starlight Pydocs plugin asks pinned Griffe to read Python source and creates
API pages, symbol search data, objects.inv, llms.txt, and Markdown page
representations. Pagefind indexes the static output. There is no runtime
service.
Site inventory
Section titled “Site inventory”| Repository | Published URL | Site content |
|---|---|---|
pysparky.github.io |
https://pysparky.github.io/ | Handbook, learning guides, cookbook, library catalogue, and generated API references for AI, Config, Data Quality, Pipeline, and Iceberg Maintenance. |
pysparky-pyspark-helper |
https://pysparky.github.io/pysparky-pyspark-helper/ | Legacy pysparky guides and generated API reference; preserves its existing project Pages base path. |
pysparky-vector |
https://pysparky.github.io/pysparky-vector/ | Vector package README content and generated API reference; preserves its existing project Pages base path. |
Other repositories keep their source README and guide files. They did not have a separate documentation build or published site in the migration inventory. Their package APIs are documented from Python source in the central portal.
Central API source pins
Section titled “Central API source pins”api-sources.json records each package’s distribution
name, import name, source repository, package version,
exact source commit, and Griffe version. GitHub source links use the checked-out
commit SHA. CI checks out those public revisions explicitly; a workstation’s
sibling-directory layout is not used by CI. Update the source pin in a reviewed
change when a package API revision should appear in the central reference.
Pydocs uses its verified Python standard-library inventory. The candidate
PySpark 3.5.8 inventory endpoint responded with a Sphinx inventory labeled
master, so it is not configured; unresolved Spark type names remain plain
text rather than linking to a potentially mismatched API version.
The initial central site uses source-based extraction. It does not consume
mutable latest URLs or generated release dumps. Add release-attached Griffe
dumps only if a concrete aggregation need makes source checkout unsuitable;
any such artifact must identify the package version, source commit, and pinned
Griffe version.
URL compatibility
Section titled “URL compatibility”The old central Zensical pages retain their file paths in the Starlight content tree:
| Previous route | Current route |
|---|---|
/ |
/ |
/learn/ and /learn/<page>/ |
unchanged |
/handbook/ |
unchanged |
/cookbook/ |
unchanged |
/libraries/ |
unchanged |
/contribute/ |
unchanged |
/about/licensing/ |
unchanged |
/about/third-party-notices/ |
unchanged |
/assets/javascripts/LICENSE |
preserved as a static file |
The helper site’s existing Markdown paths remain in its content tree, with
Pydocs Autodoc components in the same route pages. Its generated API pages
are additional routes under /api/pysparky/. The vector site’s current Pages
homepage remains /pysparky-vector/; its generated API pages are additional
routes under that repository base path.
The central source repositories use generated API pages under
/api/<distribution>/. Their old GitHub README links remain available in each
source repository.
Local validation
Section titled “Local validation”From the repository root:
mise installmise run docs:sourcesmise run docs:installmise run docs:checkmise run docs:previewThe same build can run without mise when Python 3.11, uv, Node.js, and pnpm
are installed independently: run python scripts/fetch_api_sources.py,
pnpm install --frozen-lockfile, pnpm build, and
python scripts/validate_docs.py.