Publishing Projects with Docs & Shorter URLs #85
-
|
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 But I'm not sure how to:
Thanks for any pointers / examples! |
Beta Was this translation helpful? Give feedback.
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.
If you publish your packages as GitHub releases, you can use
pkg.pkl-lang.orgto reference them.For example, if your release is published to repo
github.com/foo/bar, you can usepackage://pkg.pkl-lang.org/github.com/foo/baras your base path.For this to work, the release tag needs to match the metadata of the package (
pklamper@0.0.3in your case).In your case, you can use
https://pkg.pkl-lang.org/github.com/jamesward/pklamper/pklamper@0.3.0Which will redirect to
https://github.com/jamesward/pklamper/releases/download/pklamper@0.3.0/pklamper@0.3.0