Skip to content

Commit

Permalink
update publish-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joelkanyi committed Jun 7, 2024
1 parent cd6c088 commit d3d3b20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,12 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v3

- name: Generate KDocs
run: ./gradlew dokkaHtml
- name: Generate Dokka documentation
run: ./gradlew dokkaHtmlMultiModule

- name: Build MkDocs
run: mkdocs build

- name: Copy Dokka output to site
# run: cp -r build/dokka/htmlMultiModule/ site/api/
run: cp -r sain/build/dokka/html/ site/api/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ subprojects {
endWithNewline()
}
}
}
}

tasks.withType<org.jetbrains.dokka.gradle.DokkaMultiModuleTask>().configureEach {
outputDirectory.set(file("$rootDir/docs/kdoc"))
}

0 comments on commit d3d3b20

Please sign in to comment.