-
Notifications
You must be signed in to change notification settings - Fork 160
Add module documentation and enhance Dokka configuration #261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bb4f51b
to
9da7aa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some questions about this pr, could you please take a look at them?
Also, have you explored documentation versioning? And how could it work with gh actions?
settings.gradle.kts
Outdated
":kotlin-sdk-server", | ||
":kotlin-sdk", | ||
":kotlin-sdk-test", | ||
":docs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why make a separate docs module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it has to define dependencies for dokka to compile site for multimodule project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do this in :kotlin-sdk
without creating a new module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a separate docs module to have a place for assets and custom docs in the future
with: | ||
path: docs/build/dokka/html | ||
|
||
- name: Deploy to GitHub Pages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that the deploy will be from github actions instead of main/docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. But I can test it only once workflow is merged to default branch
.idea/icon.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How and where is this icon used? Why add it to .idea
if it’s already in docs/icon
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includes.from("Module.md") | ||
|
||
pluginsConfiguration.html { | ||
footerMessage = "Copyright © 2024-2025 Anthropic, PBC" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should change the copyright, for example like in C#?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a question, but not to me :) I took it from here for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I understand
it's a general question, mb we should change it in License as well
docs/icon.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This icon is not used in any way.
I also don’t understand why it’s necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to include it as a logo in apidocs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need, it should be kotlin or jb+kotlin logo
14ae8cd
to
d59877a
Compare
I did not explore document versioning yet. Thank you for the link, but let's implement it in another PR |
sure |
d59877a
to
0117233
Compare
d027469
to
12160b9
Compare
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3 | ||
uses: gradle/actions/setup-gradle@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker image pinning is actually recommended for security reasons.
We can skip it today since the Renovate is not configured.
https://docs.renovatebot.com/docker/#digest-pinning
https://docs.renovatebot.com/modules/manager/github-actions/#digest-pinning-and-updating
.github/workflows/apidocs.yaml
Outdated
push: | ||
branches: [ "main" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, documentation is never built automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it will build automatically by release or manually
If the documentation is published on push, it means it will not match sdk from maven central
- Add workflow to build and publish API documentation with Dokka - Introduce `.github/workflows/apidocs.yaml` to build and deploy API docs on `main` and release events. - Configure Gradle for Dokka builds and update project dependencies. - Include `:docs` module in project settings. - Introduce `Module.md` for `kotlin-sdk-server`, `kotlin-sdk-client`, and `kotlin-sdk-core` modules. - Update `.gitignore` to include `.idea/icon.png` and add placeholder icon files - Remove outdated documentation HTML files
- remove docs gradle module - remove trigger docs on push - add main page for dokka documentation
12160b9
to
b7e551a
Compare
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [io.modelcontextprotocol:kotlin-sdk-server](https://github.com/modelcontextprotocol/kotlin-sdk) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `0.7.0` -> `0.7.1` | | [io.modelcontextprotocol:kotlin-sdk-core](https://github.com/modelcontextprotocol/kotlin-sdk) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `0.7.0` -> `0.7.1` | | [com.autonomousapps.dependency-analysis](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin) | plugin | misk/gradle/libs.versions.toml | gradle | patch | `3.0.2` -> `3.0.3` | | [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:s3](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:regions](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | | [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.33.9` -> `2.33.10` | --- ### Release Notes <details> <summary>modelcontextprotocol/kotlin-sdk (io.modelcontextprotocol:kotlin-sdk-server)</summary> ### [`v0.7.1`](https://github.com/modelcontextprotocol/kotlin-sdk/releases/tag/0.7.1) [Compare Source](modelcontextprotocol/kotlin-sdk@0.7.0...0.7.1) ##### What's Changed - Bump io.github.oshai:kotlin-logging from 7.0.7 to 7.0.11 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​211](modelcontextprotocol/kotlin-sdk#211) - Bump org.jlleitschuh.gradle.ktlint from 13.0.0 to 13.1.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​241](modelcontextprotocol/kotlin-sdk#241) - Bump com.anthropic:anthropic-java from 0.8.0 to 2.6.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​246](modelcontextprotocol/kotlin-sdk#246) - Fix upload reports in GitHub actions by [@​skarpovdev](https://github.com/skarpovdev) in [#​264](modelcontextprotocol/kotlin-sdk#264) - Bump ktor from 3.2.3 to 3.3.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​265](modelcontextprotocol/kotlin-sdk#265) - fix hang caused by StreamableHttpClientTransport ([#​226](modelcontextprotocol/kotlin-sdk#226)) by [@​AdrianMiska](https://github.com/AdrianMiska) in [#​227](modelcontextprotocol/kotlin-sdk#227) - Bump kotlin from 2.2.0 to 2.2.10 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​230](modelcontextprotocol/kotlin-sdk#230) - Add module documentation and enhance Dokka configuration by [@​kpavlov](https://github.com/kpavlov) in [#​261](modelcontextprotocol/kotlin-sdk#261) - Mark `testMultipleClientParallel` as ignored due to flakiness by [@​devcrocod](https://github.com/devcrocod) in [#​267](modelcontextprotocol/kotlin-sdk#267) ##### New Contributors - [@​AdrianMiska](https://github.com/AdrianMiska) made their first contribution in [#​227](modelcontextprotocol/kotlin-sdk#227) **Full Changelog**: <modelcontextprotocol/kotlin-sdk@0.7.0...0.7.1> </details> <details> <summary>autonomousapps/dependency-analysis-android-gradle-plugin (com.autonomousapps.dependency-analysis)</summary> ### [`v3.0.3`](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/blob/HEAD/CHANGELOG.md#Version-303) - \[Fix]: compare versions via `VersionNumber`, not raw strings. - \[Fix] Forcibly downgrade kotlin-stdlib to 2.0.21 for Gradle 8.11 support. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). GitOrigin-RevId: 5f728b0acc73a9742f56946b97f85ad1e3355442
…tprotocol#261) ## modelcontextprotocol#252 Add module documentation and enhance Dokka configuration ## How Has This Been Tested? `./gradlew :docs:dokkaGenerate` ## Changes - Add workflow to build and publish API documentation with Dokka - Introduce `.github/workflows/apidocs.yaml` to build and deploy API docs on `main` and release events. - Configure Gradle for Dokka builds and update project dependencies. - Include `:docs` module in project settings. - Introduce `Module.md` for `kotlin-sdk-server`, `kotlin-sdk-client`, and `kotlin-sdk-core` modules. - Update `.gitignore` to include `.idea/icon.png` and add placeholder icon files - Remove outdated documentation HTML files ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ ] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [x] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions --> --------- Co-authored-by: devcrocod <devcrocod@gmail.com>
#252 Add module documentation and enhance Dokka configuration
How Has This Been Tested?
./gradlew :docs:dokkaGenerate
Changes
.github/workflows/apidocs.yaml
to build and deploy API docs onmain
and release events.:docs
module in project settings.Module.md
forkotlin-sdk-server
,kotlin-sdk-client
, andkotlin-sdk-core
modules..gitignore
to include.idea/icon.png
and add placeholder icon filesTypes of changes
Checklist
Additional context