Skip to content

Add a docs website with an API reference and docs workflows - #127

Draft
Mr3zee wants to merge 2 commits into
mainfrom
docs-website
Draft

Mr3zee wants to merge 2 commits into
mainfrom
docs-website

Conversation

@Mr3zee

@Mr3zee Mr3zee commented Nov 25, 2026

Copy link
Copy Markdown
Member

The DevKit has no user documentation except the README, the migration guide, and the spec. This pull request adds a draft of a docs website for GitHub Pages, with the Dokka API reference at /api. The structure and the engine follow Library-API-Watchdog.

What changes

  • Website: a Docusaurus project in docs/, with its pages in docs/pages/. It has seven new pages and the migration guide. docs/spec.md isn't a page.
  • Moved files: docs/migration/ and docs/multiversioning/ are now in docs/pages/. The multiversioning stub has content.
  • API reference: a devkit.dokka convention plugin, applied to seven modules. The root build has one Dokka publication of all three builds. The two -compat modules have no API reference.
  • Pull request check: Docs checks builds the website and the API reference. A broken link or a Dokka warning fails it. It runs only when a pull request changes docs, Kotlin sources, or build scripts, so it must not be a required check.
  • Deploy: Deploy docs website is workflow_dispatch only, with a required version input. It builds the tag v<version> and deploys only from main.
  • Version: DEVKIT_PUBLISH_VERSION sets the version that the website and the API reference show. With the variable set, the source links of the API reference go to the tag v<version>.
  • Root settings: the root build includes plugins a second time, outside pluginManagement. The root project can't resolve the modules of plugins without it.
  • KDoc: four links that didn't resolve are now code spans or point to the type parameter.

What to check

  • Publishing runs Dokka. With Dokka applied, the javadoc jars of the root build and version-resolution have the Dokka output instead of no content. So a Dokka warning now fails the Publish workflow. checkArtifacts still passes.
  • The workflows have not run on GitHub. The website build, the typecheck, and ./gradlew :dokkaGenerate pass on a local machine, with and without DEVKIT_PUBLISH_VERSION.
  • The first deploy needs a new release. The tags that exist don't have the website. GitHub Pages must also use GitHub Actions as its source.
  • Multi-version modules document one version. compiler-plugin-runtime and compiler-plugin-test show the API of the newest CLI version. A cold run compiles their dependencies for every version.
  • The logo is a placeholder, and the theme colors are a proposal: the magenta of the Kotlin gradient.

🤖 Generated with Claude Code

Mr3zee and others added 2 commits November 25, 2026 10:54
The website is a Docusaurus project in docs/, with seven new pages and the
migration guide. Dokka builds one API reference for all three builds, and the
docs workflows put it at /api of the website.

A pull request builds the website and the API reference. Only a manual run
with a version input deploys the website, from the tag of that version.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016reAyBkiYYhHkbBUFQj4Qb
Add four pages and fill the gaps in three existing pages:

- Publishing: the published modules, the Gradle support plugin, and use
  with `-Xplugin`.
- IDE support: setup, the declared range of IDE builds, and what an IDE
  version gets.
- CI: one job, one job for each version, and a job for new compiler
  builds.
- Properties reference: every Gradle property and `pluginDevKit { }`
  setting.
- Versions: `forIde` for a `-dev-` version.
- Compiler plugin tests: the generator source sets, the skipped JS
  tests, dumps as diffs, and custom dump classifiers.
- Gradle support plugin: multiplatform tests, `kmpTarget`, and
  `addRuntimeDependency`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016reAyBkiYYhHkbBUFQj4Qb
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