-
Notifications
You must be signed in to change notification settings - Fork 2
Use dokka v2 to generate html vs markdown documentation. #253
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
Changes from all commits
835f53a
ebce0c1
e9e33fd
250b231
cc8af13
66bf497
88451a9
5fe8c3e
aa387e1
66f4d08
dc176f4
f054d23
d7c768f
f5063cb
b5fa718
8b644df
174bc87
f8f5b7b
d16217e
3070195
6983e0b
8f66e5b
06c9fb5
a315201
0b73b0b
62fb17e
4563cec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Deploy Dokka Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| deploy-docs: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup Java | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '21' | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 | ||
|
|
||
| - name: Build Dokka HTML | ||
| run: ./gradlew dokkaGenerateHtml | ||
|
|
||
| - name: Determine deployment path | ||
| id: deploy-path | ||
| run: | | ||
| if [ "${{ github.ref }}" == "refs/heads/main" ]; then | ||
| echo "path=." >> $GITHUB_OUTPUT | ||
| else | ||
| BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///' | sed 's/\//-/g') | ||
| echo "path=$BRANCH_NAME" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_dir: ./build/library/docs | ||
| destination_dir: ${{ steps.deploy-path.outputs.path }} | ||
| keep_files: true # Important! Prevents deleting other directories | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.