Replies: 3 comments 8 replies
-
I also recently investigated publishing. I haven't setup docs yet, but for a shorter URL you'll need an actual redirect from the URL. This is how
|
Beta Was this translation helpful? Give feedback.
-
If you publish your packages as GitHub releases, you can use For example, if your release is published to repo For this to work, the release tag needs to match the metadata of the package ( In your case, you can use |
Beta Was this translation helpful? Give feedback.
-
For generating pkldoc: You only need a To publish documentation, just specify the package URI in your For example, this generates pkldoc for our TOML package: pkl {
pkldocGenerators {
register("pkldoc") {
sourceModules.set(listOf(uri("package://pkg.pkl-lang.org/pkl-pantry/pkl.toml@1.0.0")))
}
}
} Note that when generating documentation, every module of a package must have a correct module name. The module name should be |
Beta Was this translation helpful? Give feedback.
-
I'm working trying to publish a very small Pkl project: https://github.com/jamesward/pklamper
I got the release with the metadata and zip published: https://github.com/jamesward/pklamper/releases/tag/v0.0.3
I'm using it: https://github.com/jamesward/grapkl/blob/main/build.gradle.pkl
But I'm not sure how to:
doc-package-info.pkl
file. Or what should go in thepkldocGenerators
gradle config.package://jamesward.github.com/pklamper@0.0.3#/project.pkl
instead of the GitHub release URL likepackage://github.com/jamesward/pklamper/releases/download/v0.0.3/pklamper@0.0.3#/project.pkl
Thanks for any pointers / examples!
Beta Was this translation helpful? Give feedback.
All reactions