Skip to content

Commit

Permalink
Merge pull request #247 from icerockdev/dokka
Browse files Browse the repository at this point in the history
Dokka
  • Loading branch information
Alex009 authored Jun 25, 2023
2 parents e8d6655 + a2a58cb commit 1680c94
Show file tree
Hide file tree
Showing 611 changed files with 44 additions and 146,670 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dokka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and publish dokka

on:
push:
branches: ["master"]

jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build dokka
run: ./gradlew dokkaHtmlMultiModule
shell: bash
- name: Move dokka results
run: mv build/dokka/htmlMultiModule public
shell: bash
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
13 changes: 8 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

import org.jetbrains.dokka.gradle.DokkaTaskPartial

buildscript {
repositories {
mavenCentral()
Expand All @@ -13,6 +15,7 @@ buildscript {
classpath(":mvvm-build-logic")
classpath(libs.kswiftGradlePlugin)
classpath(libs.composeJetBrainsGradlePlugin)
classpath(libs.dokkaGradlePlugin)
}
}

Expand Down Expand Up @@ -40,10 +43,10 @@ allprojects {
force(rootProject.libs.coroutines)
}
}
}

// temporary fix for Apple Silicon (remove after 1.6.20 update)
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeVersion =
"16.0.0"
apply(plugin = "org.jetbrains.dokka")

tasks.withType<DokkaTaskPartial>().configureEach {
this.enabled = name.startsWith("mvvm-")
}
}
4 changes: 0 additions & 4 deletions docs/images/anchor-copy-button.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/images/arrow_down.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/images/copy-icon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/images/copy-successful-icon.svg

This file was deleted.

7 changes: 0 additions & 7 deletions docs/images/docs_logo.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/images/footer-go-to-link.svg

This file was deleted.

4 changes: 0 additions & 4 deletions docs/images/go-to-top-icon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/images/logo-icon.svg

This file was deleted.

134 changes: 0 additions & 134 deletions docs/index.html

This file was deleted.

4 changes: 0 additions & 4 deletions docs/mvvm-core/images/anchor-copy-button.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mvvm-core/images/arrow_down.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mvvm-core/images/copy-icon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mvvm-core/images/copy-successful-icon.svg

This file was deleted.

7 changes: 0 additions & 7 deletions docs/mvvm-core/images/docs_logo.svg

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mvvm-core/images/footer-go-to-link.svg

This file was deleted.

4 changes: 0 additions & 4 deletions docs/mvvm-core/images/go-to-top-icon.svg

This file was deleted.

Loading

0 comments on commit 1680c94

Please sign in to comment.