From d3d3b206d3093ebcad92b4afdf3c3172ad26c114 Mon Sep 17 00:00:00 2001 From: JoelKanyi Date: Fri, 7 Jun 2024 07:14:21 +0300 Subject: [PATCH] update publish-docs.yml --- .github/workflows/publish-docs.yml | 8 ++------ build.gradle.kts | 6 +++++- 2 files changed, 7 insertions(+), 7 deletions(-) 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")) +}