mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
Pkldoc: Landing page is empty #311
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 @StefMa on GitHub (Jun 3, 2025).
Given my pkl-gha project.
I want to gernate the pkldocs for the current code.
For this, because the
pkl-docfat jar package fais with an exception, I use the Gradle plugin like the following:The
doc-package-info.pkllooks like this:The rest of the code is untouched from this tree:
dd7b604956If I runing
./gradlew pkldocand open thebuild/pkldoc/pkldoc/index.htmlI see a blank site:However, the sub-package
com.github.actionexists:http://localhost:63342/pkl-github/build/pkldoc/pkldoc/com.github.action/0.0.4-SNAPSHOT/index.html
If I change the
build.gradleusing my already published package:then the landing page is generated correctly 🫠
Looking at the generated files, there is a slighly difference.
I observe the the "host" is missing in the local files version... 🤔
The first image displays the "lokal files" version, the second one the
uri(remote) file versionI'm not sure if this is an bug in pkldoc or if I holding it wrong.
Maybe, for some strange reasions, this might be even the expected behavior 🤷
I appreciate any help here 🙂
@bioball commented on GitHub (Jun 3, 2025):
This is because versions with pre-release identifiers aren't indexed. They don't show up on the package index page, and they also don't show up in search.
Try publishing an initial version without a pre-release. That package will then show up on the index page. After that, you can publish a new version with a pre-release identifier, and that pre-release version will show up on the list of versions when you're browsing the package page.
By the way,
SNAPSHOTis a maven-ism, and uncommon in semver. For semver, I'd recommendalpha,beta, etc.@StefMa commented on GitHub (Jun 3, 2025):
Thanks for the answer. But... I am not sure if I understand it correctly. I do need to publish a version so that I can create the pkldoc for my current code? 🤔 I don't want to create the docs based on a public version. I want to create the docs based on the current "dev setup"... 🤔 Isn't this what we should do? 🤔
Is pkl more designed to create docs based on a published version?
Thanks for the semver hint! Will change that 🙃
@bioball commented on GitHub (Jun 3, 2025):
Basically, try changing version
0.0.4-SNAPSHOTto0.0.4, and you should see your package in the landing page.@StefMa commented on GitHub (Jun 4, 2025):
🤦 Thanks. That indeed solves it.