Skip to content

Generate and publish KDoc via Dokka + GitHub Pages - #116

Merged
mzielu merged 3 commits into
AVSystem:masterfrom
halotukozak:docs/dokka-github-pages
Oct 14, 2026
Merged

mzielu merged 3 commits into
AVSystem:masterfrom
halotukozak:docs/dokka-github-pages

Conversation

@halotukozak

Copy link
Copy Markdown
Contributor

Summary

  • Adds the Dokka Gradle plugin (v2.2.0) to core and plugin, aggregated at the root so ./gradlew :dokkaGenerate produces a single HTML site under build/dokka covering both modules, with source links back to GitHub.
  • Adds .github/workflows/docs.yml, which builds the docs and deploys them to GitHub Pages on every push to master (also runnable manually via workflow_dispatch).
  • core's Maven Central javadoc jar is now auto-derived from Dokka instead of being empty (plugin keeps JavadocJar.Empty(), which is standard for Gradle plugins).
  • Adds an API docs link to the README.

Post-merge setup (one-time, needs repo admin)

GitHub Pages must be enabled before the workflow can actually publish anything:

  1. Go to Settings → Pages on this repo.
  2. Under Build and deployment → Source, select GitHub Actions.
  3. Re-run the Docs workflow (or push to master) if it already ran and failed on the deploy step before Pages was enabled.

Once enabled, docs will be live at https://avsystem.github.io/justworks/ and stay up to date automatically on every merge to master.

Test plan

  • ./gradlew :dokkaGenerate succeeds locally, produces build/dokka/index.html aggregating both modules
  • ./gradlew ktlintCheck passes
  • docs.yml workflow succeeds on GitHub Actions (needs Pages enabled first, see above)

Aggregates KDoc from core and plugin into a single Dokka HTML site,
built and deployed to GitHub Pages on every push to master. Also lets
core's javadoc jar be auto-derived from Dokka instead of staying empty.
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@mfabisiak
mfabisiak requested a review from mzielu October 13, 2026 10:14
Copilot AI balanced review requested due to automatic review settings October 13, 2026 10:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mzielu mzielu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 small things

Comment thread .github/workflows/docs.yml
Comment thread core/build.gradle.kts Outdated
Co-authored-by: Junie <junie@jetbrains.com>
@halotukozak
halotukozak requested a review from mzielu October 14, 2026 12:07

@mzielu mzielu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@halotukozak

Copy link
Copy Markdown
Contributor Author

(I don't have perms to merge it)

@mzielu
mzielu merged commit 2d76b8c into AVSystem:master Oct 14, 2026
3 checks passed
@halotukozak
halotukozak deleted the docs/dokka-github-pages branch October 14, 2026 14:35
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.

5 participants