Skip to content

fix(docs): show the latest release tag as the API reference version - #144

Merged
soidisant merged 1 commit into
mainfrom
fix/dokka-clean-version
Sep 17, 2026
Merged

soidisant merged 1 commit into
mainfrom
fix/dokka-clean-version

Conversation

@soidisant

Copy link
Copy Markdown
Collaborator

Summary

The Dokka header read Metalastic 1.2.10-11-g3368f3d-SNAPSHOT, the git-describe version used for artifacts. The reference is generated from main and the rest of the docs site shows the released version, so dokka.moduleVersion now resolves to the last v* tag (1.2.10 today), with project.version as fallback when no tag is reachable (shallow checkout). On a tag build both values coincide.

Test plan

  • ./gradlew dokkaGenerate: header shows 1.2.10, no SNAPSHOT string anywhere in docs/public/api
  • ./gradlew spotlessCheck
  • Verify the deployed /Metalastic/api/ header after merge (the deploy workflow uses fetch-depth: 0, so tags are available)

Co-Authored-By: Claude noreply@anthropic.com

Dokka displayed the git-describe artifact version (e.g. 1.2.10-11-g3368f3d-SNAPSHOT)
in the API reference header. The reference is published from main and the rest
of the site advertises the released version, so moduleVersion now resolves to
the last v* tag, falling back to project.version when no tag is reachable.

Co-Authored-By: Claude <noreply@anthropic.com>
@soidisant
soidisant merged commit 8baf391 into main Sep 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant