diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index fda1ddcd..e23a6454 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -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: diff --git a/build.gradle.kts b/build.gradle.kts index 812aa65c..a148fa45 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -50,4 +50,8 @@ subprojects { endWithNewline() } } -} \ No newline at end of file +} + +tasks.withType().configureEach { + outputDirectory.set(file("$rootDir/docs/kdoc")) +}