How docs are built
docs.pkgs.ml serves generated API documentation for packages published on
pkgs.ml. Search, package pages, stats, and accounts stay on
pkgs.ml.
Routes
Section titled “Routes”Every published version gets its own docs:
https://docs.pkgs.ml/p/<package>/<version>/Module pages live below that root, for example
/p/std/<version>/Std/List/index.html.
Publishing pipeline
Section titled “Publishing pipeline”- You publish a release with
riot publish. - The docs worker records the release and queues it for processing.
- A sandboxed runner installs Riot, runs
riot buildto verify the package, and runsriot docto generate the HTML. - The generated files are stored in the package CDN and served from this domain.
If you open a version before its docs are ready, the page reports the current pipeline status instead.
Related services
Section titled “Related services”- pkgs.ml: search, package pages, stats, and accounts.
api.pkgs.ml: the registry API used by the Riot CLI.cdn.pkgs.ml: the sparse index and package artifacts.