Skip to content

Commit 0ee3c9d

Browse files
authored
Merge pull request #182 from NordicSemiconductor/documentation
Documentation regenerated using Dokka 2
2 parents a6db7c5 + ba9864e commit 0ee3c9d

File tree

3,160 files changed

+153532
-339097
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,160 files changed

+153532
-339097
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ Current status:
4141
- [ ] GATT operations
4242
- [ ] Mock implementation
4343

44-
## Usage
44+
## Documentation
45+
46+
Dokka documentation can be found [here](https://nordicsemiconductor.github.io/Kotlin-BLE-Library/html/index.html).
4547

4648
### Scanning
4749

@@ -143,7 +145,7 @@ remoteService.characteristics.forEach { remoteCharacteristic ->
143145
}
144146
```
145147

146-
#### Subscibing to value changes
148+
#### Subscribing to value changes
147149

148150
```kotlin
149151
remoteService.characteristics.forEach { remoteCharacteristic ->

advertiser-android-mock/Module.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Module advertiser-android-mock
2+
3+
A mock implementation for the Bluetooth Low Energy advertiser on Android.
4+
5+
This module provides a mock version of the Bluetooth LE advertiser, which can be used for testing
6+
purposes without requiring actual Bluetooth hardware.
7+
8+
# Package no.nordicsemi.kotlin.ble.advertiser.android.mock
9+
10+
This package contains a Factory method to create a mock Android implementation for the Bluetooth LE Advertiser.

advertiser-android-mock/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ plugins {
3737
group = "no.nordicsemi.kotlin.ble"
3838

3939
nordicNexusPublishing {
40-
POM_ARTIFACT_ID = "advertiser-mock"
40+
POM_ARTIFACT_ID = "advertiser-android-mock"
4141
POM_NAME = "Nordic Kotlin BLE library"
4242
POM_DESCRIPTION = "Nordic Kotlin BLE library"
4343
POM_URL = "https://github.com/NordicSemiconductor/Kotlin-BLE-Library"
@@ -52,3 +52,9 @@ dependencies {
5252

5353
implementation(libs.slf4j)
5454
}
55+
56+
dokka {
57+
dokkaSourceSets.named("main") {
58+
includes.from("Module.md")
59+
}
60+
}

advertiser-android/Module.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Module advertiser-android
2+
3+
Android implementation for the Bluetooth Low Energy advertiser.
4+
5+
# Package no.nordicsemi.kotlin.ble.advertiser.android
6+
7+
This package contains a Factory method to create an Android implementation for the Bluetooth LE Advertiser.

advertiser-android/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,10 @@ dependencies {
5959
api(libs.kotlinx.coroutines.android)
6060

6161
implementation(libs.slf4j)
62+
}
63+
64+
dokka {
65+
dokkaSourceSets.named("main") {
66+
includes.from("Module.md")
67+
}
6268
}

advertiser-core-android/Module.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Module advertiser-core-android
2+
3+
Set of core classes providing the common functionality for Bluetooth Low Energy advertising on Android.
4+
5+
# Package no.nordicsemi.kotlin.ble.advertiser.android
6+
7+
This package contains the common Android implementation for the Bluetooth LE Advertiser functionality,
8+
used by the Android native and mock implementations.

advertiser-core-android/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ dependencies {
5050
api(project(":advertiser-core"))
5151
api(project(":core-android"))
5252
}
53+
54+
dokka {
55+
dokkaSourceSets.named("main") {
56+
includes.from("Module.md")
57+
perPackageOption {
58+
matchingRegex.set("no.nordicsemi.kotlin.ble.advertiser.android.internal")
59+
suppress.set(true)
60+
}
61+
}
62+
}

advertiser-core/Module.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Module advertiser-core
2+
3+
Platform independent classes providing the core functionality for Bluetooth Low Energy advertising.
4+
5+
# Package no.nordicsemi.kotlin.ble.advertiser
6+
7+
This package contains the common interface for the Bluetooth LE Advertiser.
8+
9+
# Package no.nordicsemi.kotlin.ble.advertiser.exception
10+
11+
A package containing exceptions related to Bluetooth LE advertising operations.

advertiser-core/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ nordicNexusPublishing {
4949
dependencies {
5050
api(project(":core"))
5151
}
52+
53+
dokka {
54+
dokkaSourceSets.named("main") {
55+
includes.from("Module.md")
56+
}
57+
}

build.gradle.kts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ plugins {
3838
alias(libs.plugins.kotlin.serialization) apply false
3939
alias(libs.plugins.kotlin.parcelize) apply false
4040
alias(libs.plugins.kotlin.android) apply false
41-
alias(libs.plugins.kotlin.dokka)
4241
alias(libs.plugins.compose.compiler) apply false
4342

43+
// This plugin is used to generate Dokka documentation.
44+
alias(libs.plugins.kotlin.dokka) apply false
45+
// This applies Nordic look & feel to generated Dokka documentation.
46+
// https://github.com/NordicSemiconductor/Android-Gradle-Plugins/blob/main/plugins/src/main/kotlin/NordicDokkaPlugin.kt
47+
alias(libs.plugins.nordic.dokka) apply true
48+
4449
// Nordic plugins are defined in https://github.com/NordicSemiconductor/Android-Gradle-Plugins
4550
alias(libs.plugins.nordic.application) apply false
4651
alias(libs.plugins.nordic.application.compose) apply false
@@ -54,10 +59,9 @@ plugins {
5459
alias(libs.plugins.nordic.nexus.jvm) apply false
5560
}
5661

57-
subprojects {
58-
apply(plugin = "org.jetbrains.dokka")
59-
}
60-
61-
tasks.dokkaHtmlMultiModule.configure {
62-
outputDirectory.set(rootDir.resolve("docs"))
63-
}
62+
// Configure main Dokka page
63+
dokka {
64+
pluginsConfiguration.html {
65+
homepageLink.set("https://github.com/NordicSemiconductor/Kotlin-BLE-Library")
66+
}
67+
}

0 commit comments

Comments
 (0)