aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/gh-pages-examples.yml36
-rw-r--r--docs/src/doc/docs/user_guide/versioning/versioning.md4
2 files changed, 38 insertions, 2 deletions
diff --git a/.github/workflows/gh-pages-examples.yml b/.github/workflows/gh-pages-examples.yml
index e0fbb8be..7d0dacce 100644
--- a/.github/workflows/gh-pages-examples.yml
+++ b/.github/workflows/gh-pages-examples.yml
@@ -44,10 +44,44 @@ jobs:
name: ${{ matrix.projects }}
path: examples/gradle/${{ matrix.projects }}/build/dokka
+ build-multimodule-examples:
+ runs-on: ubuntu-latest
+ if: github.repository == 'Kotlin/dokka'
+ strategy:
+ matrix:
+ projects: [
+ dokka-versioning-multimodule-example
+ ]
+ steps:
+ - name: Checkout dokka
+ uses: actions/checkout@v2
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ filters: |
+ examples_changed:
+ - 'examples/gradle/${{ matrix.projects }}/**'
+
+ - uses: actions/setup-java@v2
+ with:
+ distribution: 'zulu'
+ java-version: 11
+
+ - name: Build html
+ run: ./gradlew dokkaHtmlMultiModule --no-daemon --stacktrace
+ working-directory: examples/gradle/${{ matrix.projects }}
+ if: steps.filter.outputs.examples_changed == 'true'
+
+ - name: Upload artifact
+ uses: actions/upload-artifact@v2
+ if: steps.filter.outputs.examples_changed == 'true'
+ with:
+ name: ${{ matrix.projects }}
+ path: examples/gradle/${{ matrix.projects }}/build/dokka
deploy-examples:
runs-on: ubuntu-latest
- needs: build-examples
+ needs: [build-examples, build-multimodule-examples]
steps:
- uses: actions/download-artifact@v2
with:
diff --git a/docs/src/doc/docs/user_guide/versioning/versioning.md b/docs/src/doc/docs/user_guide/versioning/versioning.md
index d1f4513d..aadccb45 100644
--- a/docs/src/doc/docs/user_guide/versioning/versioning.md
+++ b/docs/src/doc/docs/user_guide/versioning/versioning.md
@@ -81,4 +81,6 @@ pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.versioning.VersioningPlug
Please consult the [Gradle documentation](../gradle/usage.md#applying-plugins) for more information about configuring Dokka with this build tool.
-Please see the [Dokka Gradle versioning multi modules example project](https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-versioning-multimodule-example). \ No newline at end of file
+Please see the [Dokka Gradle versioning multi modules example project](https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-versioning-multimodule-example).
+
+Also see the [generated documentation](https://Kotlin.github.io/dokka/examples/dokka-versioning-multimodule-example/html). \ No newline at end of file