Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
835f53a
Use dokka v2 to generate html vs markdown documentation.
mrudatsprint Nov 26, 2025
ebce0c1
Reference the html documentation.
mrudatsprint Nov 26, 2025
e9e33fd
Use a relative path.
mrudatsprint Nov 26, 2025
250b231
correct filename spelling
mrudatsprint Nov 26, 2025
cc8af13
correct filename spelling
mrudatsprint Nov 26, 2025
66bf497
correct location
mrudatsprint Nov 26, 2025
88451a9
Deploy the library html documentation to GitHub Pages.
mrudatsprint Nov 26, 2025
5fe8c3e
Build the documentation dynamically vs statically.
mrudatsprint Dec 1, 2025
aa387e1
Remove permissions as they were already set.
mrudatsprint Dec 1, 2025
66f4d08
Set to run on pull_request so the workflow can be tested. As it does…
mrudatsprint Dec 1, 2025
dc176f4
Deploy to library/docs.
mrudatsprint Dec 1, 2025
f054d23
Deploy to the base URL.
mrudatsprint Dec 1, 2025
d7c768f
Let's try the action peaceiris/actions-gh-pages as it can deploy to s…
mrudatsprint Dec 2, 2025
f5063cb
Lets reference the commit hash.
mrudatsprint Dec 2, 2025
b5fa718
Allow workflow to be manually invoked.
mrudatsprint Dec 2, 2025
8b644df
peaceiris/actions-gh-pages is not finding the build output.
mrudatsprint Dec 2, 2025
174bc87
Dokka should generate html only.
mrudatsprint Dec 2, 2025
f8f5b7b
Logging if dokka generated anything?
mrudatsprint Dec 2, 2025
d16217e
Debug the build directory.
mrudatsprint Dec 2, 2025
3070195
Locate the documentation
mrudatsprint Dec 2, 2025
6983e0b
Find the generated documentation.
mrudatsprint Dec 2, 2025
8f66e5b
The docs are in ./build/library/docs
mrudatsprint Dec 2, 2025
06c9fb5
More debugging
mrudatsprint Dec 2, 2025
a315201
More debugging
mrudatsprint Dec 2, 2025
0b73b0b
Debugging and the doc has been deployed.
mrudatsprint Dec 2, 2025
62fb17e
Debugging information can be removed.
mrudatsprint Dec 2, 2025
4563cec
Debugging can be removed as the doc has been deployed.
mrudatsprint Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy Dokka Docs

on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0

- name: Build Dokka HTML
run: ./gradlew dokkaGenerateHtml

- name: Determine deployment path
id: deploy-path
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "path=." >> $GITHUB_OUTPUT
else
BRANCH_NAME=$(echo ${{ github.ref }} | sed 's/refs\/heads\///' | sed 's/\//-/g')
echo "path=$BRANCH_NAME" >> $GITHUB_OUTPUT
fi

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/library/docs
destination_dir: ${{ steps.deploy-path.outputs.path }}
keep_files: true # Important! Prevents deleting other directories

1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ The pre-release process is as follows:
- Compare the gradlew version `./gradlew -v` with the latest [gradle release](https://gradle.org/releases/) and update if necessary.
- Review, test and merge any open [Dependency Pull Requests](https://github.com/FusionAuth/fusionauth-android-sdk/pulls).
- Update the version in the `library/build.gradle.kts` file with a pre-release version according to the [Semantic Versioning](https://semver.org/) guidelines.
- Update the documentation with `./gradlew dokkaGfm`.
- Commit the changes with the commit message `chore(release): <pre-release-version> 🎉`.
- Create a new tag `v<pre-release-version>`.
- Make sure all Workflows where successful in [Actions](https://github.com/FusionAuth/fusionauth-android-sdk/actions).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ end::forDocSiteQuickstart[]
<!--
tag::forDocSiteDocumentation[]
-->
See the latest [Full library documentation](https://github.com/FusionAuth/fusionauth-android-sdk/blob/main/library/docs/index.md) for the complete documentation of the SDK.
See the latest [Full library documentation](https://fusionauth.github.io/fusionauth-android-sdk/index.html) for the complete documentation of the SDK.
<!--
end::forDocSiteDocumentation[]
-->
Expand Down
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
id("com.android.library") version "8.13.0" apply false
id("io.gitlab.arturbosch.detekt") version "1.23.8"
id("org.jetbrains.dokka") version "2.0.0"
id("org.jetbrains.dokka") version "2.1.0"
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"

kotlin("jvm") version "2.2.0"
Expand Down Expand Up @@ -48,4 +48,14 @@ nexusPublishing {
password.set("your-password") // defaults to project.properties["myNexusPassword"]
}
}
}

dokka {
dokkaPublications.html {
outputDirectory.set(rootDir.resolve("build/library/docs"))

dokkaSourceSets.named("main") {
sourceRoots.from(file("library/src/main/java"))
}
}
}
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
# activates the DGP v2 plugin with migration helpers
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
4 changes: 0 additions & 4 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,3 @@ dependencies {
androidTestImplementation("androidx.test.ext:junit:1.3.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0")
}

tasks.dokkaGfm {
outputDirectory.set(layout.projectDirectory.dir("docs"))
}
12 changes: 0 additions & 12 deletions library/docs/index.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions library/docs/library/io.fusionauth.mobilesdk.exceptions/index.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading