Skip to content

Commit 39b1437

Browse files
authored
Merge pull request #34 from snabble/simplify_docs
Use dokka html documentation
2 parents 7578ee8 + 15585bb commit 39b1437

File tree

16 files changed

+35
-727
lines changed

16 files changed

+35
-727
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ jobs:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository
2828
- name: Generate documentation
29-
run: ./gradlew dokkaGfmMultiModule && sed -E 's/^## \[([^[]+)\]$/## \1/g' CHANGELOG.md | sed -E 's/^### (.+)$/**\1**\n/g' | sed -E 's/All notable changes to this project will be documented in this file./All notable changes of the Android SDK are noted in this document./' > docs/docs/changelog.md
29+
run: ./gradlew dokkaHtmlMultiModule && sed -E 's/^## \[([^[]+)\]$/## \1/g' CHANGELOG.md | sed -E 's/^### (.+)$/**\1**\n/g' | sed -E 's/All notable changes to this project will be documented in this file./All notable changes of the Android SDK are noted in this document./' > docs/docs/changelog.md
3030
- name: Deploy documentation
31-
uses: mhausenblas/mkdocs-deploy-gh-pages@nomaterial
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
CONFIG_FILE: docs/mkdocs.yml
35-
REQUIREMENTS: docs/requirements.txt
31+
uses: JamesIves/[email protected]
32+
with:
33+
branch: gh-pages
34+
folder: docs

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ tasks.named("dokkaHtml").configure {
7575
}
7676
}
7777
}
78+
7879
tasks.withType(org.jetbrains.dokka.gradle.AbstractDokkaTask).configureEach {
79-
outputDirectory.set(rootDir.toPath().resolve("docs/docs/api").toFile())
80+
outputDirectory.set(rootDir.toPath().resolve("docs").toFile())
81+
suppressObviousFunctions.set(true)
8082
}
8183

8284
task printVersion() {

docs/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/docs/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/docs/android-api.md

Lines changed: 0 additions & 117 deletions
This file was deleted.

docs/docs/index.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

docs/docs/logo.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/docs/sample-apps.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/docs/snabble.css

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)