Skip to content

Commit adc4150

Browse files
kpavlovdevcrocodCopilot
authored
docs: Update readme, enable Knit (#162) (#510)
#162 ## Motivation and Context - update readme - add more snippets - add knit ## How Has This Been Tested? knit on CI ## Breaking Changes None ## Types of changes - [ ] 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 - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [x] I have added or updated documentation as needed --------- Co-authored-by: devcrocod <devcrocod@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7eb2a93 commit adc4150

12 files changed

Lines changed: 1093 additions & 195 deletions

File tree

.github/workflows/apidocs.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
# Allow running this workflow manually from the Actions tab
88
workflow_dispatch:
99

10+
env:
11+
JAVA_VERSION: 21
12+
JAVA_DISTRIBUTION: temurin
13+
1014
jobs:
1115
deploy:
1216

@@ -25,19 +29,19 @@ jobs:
2529
submodules: true # Fetch Hugo themes (true OR recursive)
2630
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2731

28-
- name: Set up JDK 21
32+
- name: Set up JDK ${{ env.JAVA_VERSION }}
2933
uses: actions/setup-java@v5
3034
with:
31-
java-version: '21'
32-
distribution: 'temurin'
35+
java-version: ${{ env.JAVA_VERSION }}
36+
distribution: ${{ env.JAVA_DISTRIBUTION }}
3337
cache: gradle
3438

3539
- name: Setup Gradle
3640
uses: gradle/actions/setup-gradle@v5
3741

3842
- name: Generate Dokka Site
3943
run: |-
40-
./gradlew clean dokkaGenerate
44+
./gradlew clean knit docs:classes docs:knitCheck dokkaGenerate
4145
4246
- name: Upload artifact
4347
uses: actions/upload-pages-artifact@v4

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,40 @@ jobs:
120120
path: local-maven-repository.zip
121121
retention-days: 1
122122

123+
knit:
124+
runs-on: ubuntu-latest
125+
name: Knit
126+
timeout-minutes: 10
127+
permissions:
128+
contents: read
129+
130+
steps:
131+
- uses: actions/checkout@v6
132+
133+
- name: Set up JDK ${{ env.JAVA_VERSION }}
134+
uses: actions/setup-java@v5
135+
with:
136+
java-version: ${{ env.JAVA_VERSION }}
137+
distribution: ${{ env.JAVA_DISTRIBUTION }}
138+
139+
- name: Setup Gradle
140+
uses: gradle/actions/setup-gradle@v5
141+
with:
142+
validate-wrappers: true
143+
add-job-summary: 'always'
144+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
145+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
146+
gradle-home-cache-includes: |
147+
caches
148+
notifications
149+
sdks
150+
../.konan/**
151+
152+
- name: Run Knit
153+
run: |-
154+
./gradlew knit docs:classes docs:knitCheck -x :conformance-test:test --max-workers 3 --continue --rerun-tasks --configure-on-demand --parallel
155+
156+
123157
samples:
124158
needs: [ build ]
125159
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)