mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 06:10:40 +01:00
How to generate stdlib documentation? #347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sin-ack on GitHub (Oct 1, 2025).
I'm trying to use
pkl-docto generate documentation from a local branch I have of pkl, but when trying to pointpkl-docatstdlib/, I get:How can I generate a local copy of the stdlib docs?
DEVELOPMENT.adocdoesn't mention it either.@bioball commented on GitHub (Oct 17, 2025):
You need to use the lower-level API to do this; i.e. call into
org.pkl.doc.DocGeneratorwith the standard library as one of thepackagesarguments. You'd collect the schemas with the Pkl evaluator'sevaluateSchemamethod, passing in each of the stdlib modules.But: the stdlib documentation already exists here: https://pkl-lang.org/package-docs/pkl/current/index.html. Why are you looking to generate docs for the stdlib?
@sin-ack commented on GitHub (Oct 19, 2025):
The package-docs currently doesn't contain documentation built regularly from
main, and we're currently internally using a branch on top ofmain(binary parser/renderer + some Pkldoc fixes) which makes Pkldoc output links to "0.30.0-dev". I wanted to include stdlib documentation in our internal docs site as well to make cross-links to stdlib types work.