Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 2fbdd56

Browse files
authored
Merge pull request #26 from 05nelsonm/mn/documentation/mkdocs-multi-module-links
Fix Mkdocs multi module links generated by Dokka plugin
2 parents 9799ef3 + edc6696 commit 2fbdd56

40 files changed

Lines changed: 121 additions & 70 deletions

File tree

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ allprojects {
2525
}
2626
}
2727

28+
// Dokka's configuration.externalDocumentationLink.url setting for connecting methods/variables
29+
// in each module is quarky, especially when relying on Mkdocs to generate a website using the
30+
// Markdown files that are created. the `externalDocumentationLink.url` setting requires a
31+
// protocol (http, https, etc.) such that we cannot just input what we want (../../../module-name)
32+
// and are required to go back over all files within the `docs` directory, search for our string
33+
// constant, and replace it with what we want after Dokka Docs are all generated.
34+
task fixDokkaDocLinks(type: Exec) {
35+
workingDir "$rootDir"
36+
commandLine "scripts/fix_dokka_doc_external_links.sh"
37+
}
38+
2839
task clean(type: Delete) {
2940
delete rootProject.buildDir
3041
}

docs/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#API Documentation
22

3-
## [topl-service](./topl-service/io.matthewnelson.topl_service/index.md)
3+
## [topl-service](./topl-service/index.md)
44

5-
## [topl-core-base](./topl-core-base/io.matthewnelson.topl_core_base/index.md)
5+
## [topl-core-base](./topl-core-base/index.md)
66

77
<!-- Hold off linking to docs until release -->
88
<!-- ## [topl-core](./topl-core/io.matthewnelson.topl_core/index.md) -->

docs/releasing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extra:
2727
```
2828
rm -rf docs/topl-core docs/topl-core-base docs/topl-service
2929
./gradlew topl-core-base:dokka topl-core:dokka topl-service:dokka
30+
./gradlew fixDokkaDocLinks
3031
```
3132

3233
- Update `docs/changelog.md` after checking out all changes:
@@ -108,6 +109,7 @@ git push
108109
- `pipenv shell`
109110
- `mkdocs serve` to check locally
110111
- `mkdocs gh-deploy` to deploy
112+
- Ensure docs are served <a href="https://topl-android.matthewnelson.io" target="_blank">Here</a>
111113
- `exit`
112114
- Go to the <a href="https://github.com/05nelsonm/TorOnionProxyLibrary-Android/releases/new" target="_blank">Draft a new release</a> page,
113115
enter the release name ({{ topl_android.next_release }}) as tag and title, and have the description

docs/topl-core/io.matthewnelson.topl_core.broadcaster/-broadcast-logger/event-broadcaster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# eventBroadcaster
44

5-
`val eventBroadcaster: `[`EventBroadcaster`](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-event-broadcaster/index.md) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/broadcaster/BroadcastLogger.kt#L50)
5+
`val eventBroadcaster: `[`EventBroadcaster`](../../../topl-core-base/io.matthewnelson.topl_core_base/-event-broadcaster/index.md) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/broadcaster/BroadcastLogger.kt#L50)
66

77
For broadcasting the info
88

docs/topl-core/io.matthewnelson.topl_core.broadcaster/-broadcast-logger/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ should **never** make it to a release build.
1010

1111
To enable Logcat messages, [buildConfigDebug](#) must be `true` (w/e you have sent
1212
[io.matthewnelson.topl_core.OnionProxyManager](../../io.matthewnelson.topl_core/-onion-proxy-manager/index.md) upon instantiation), and
13-
[TorSettings.hasDebugLogs](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-settings/has-debug-logs.md) must also be `true`. This way if your implementation of the
14-
Library is causing problems in your App you need only set [TorSettings.hasDebugLogs](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-settings/has-debug-logs.md) to
13+
[TorSettings.hasDebugLogs](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-settings/has-debug-logs.md) must also be `true`. This way if your implementation of the
14+
Library is causing problems in your App you need only set [TorSettings.hasDebugLogs](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-settings/has-debug-logs.md) to
1515
`true` for a Debug build of your App.
1616

1717
See helper method [io.matthewnelson.topl_core.OnionProxyManager.getBroadcastLogger](../../io.matthewnelson.topl_core/-onion-proxy-manager/get-broadcast-logger.md) to
@@ -31,7 +31,7 @@ instantiate.
3131

3232
| Name | Summary |
3333
|---|---|
34-
| [eventBroadcaster](event-broadcaster.md) | For broadcasting the info`val eventBroadcaster: `[`EventBroadcaster`](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-event-broadcaster/index.md) |
34+
| [eventBroadcaster](event-broadcaster.md) | For broadcasting the info`val eventBroadcaster: `[`EventBroadcaster`](../../../topl-core-base/io.matthewnelson.topl_core_base/-event-broadcaster/index.md) |
3535
| [TAG](-t-a-g.md) | Typically, the class name, but able to be set to whatever you wish`val TAG: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
3636

3737
### Functions

docs/topl-core/io.matthewnelson.topl_core.settings/-tor-settings-builder/control-port-write-to-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# controlPortWriteToFile
44

5-
`fun controlPortWriteToFile(torConfigFiles: `[`TorConfigFiles`](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/index.md)`): `[`TorSettingsBuilder`](index.md) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/settings/TorSettingsBuilder.kt#L240)
5+
`fun controlPortWriteToFile(torConfigFiles: `[`TorConfigFiles`](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/index.md)`): `[`TorSettingsBuilder`](index.md) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/settings/TorSettingsBuilder.kt#L240)

docs/topl-core/io.matthewnelson.topl_core.settings/-tor-settings-builder/finish-and-return-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66

77
This returns what's in the [buffer](#) as a String and then clears it.
88
You still need to write the String to the
9-
[io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).
9+
[io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).
1010

docs/topl-core/io.matthewnelson.topl_core.settings/-tor-settings-builder/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ file however you wish.
1515

1616
Calling [finishAndReturnString](finish-and-return-string.md) will return to you the String that has been
1717
built for you to write to the
18-
[io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).
18+
[io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).
1919

2020
Calling [finishAndWriteToTorrcFile](finish-and-write-to-torrc-file.md) will do just that.
2121

@@ -46,7 +46,7 @@ onionProxyManager.getNewSettingsBuilder()
4646
| [configurePluggableTransportsFromSettings](configure-pluggable-transports-from-settings.md) | `fun configurePluggableTransportsFromSettings(pluggableTransportClient: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`?): `[`TorSettingsBuilder`](./index.md) |
4747
| [connectionPadding](connection-padding.md) | `fun connectionPadding(setting: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`TorSettingsBuilder`](./index.md) |
4848
| [connectionPaddingFromSettings](connection-padding-from-settings.md) | `fun connectionPaddingFromSettings(): `[`TorSettingsBuilder`](./index.md) |
49-
| [controlPortWriteToFile](control-port-write-to-file.md) | `fun controlPortWriteToFile(torConfigFiles: `[`TorConfigFiles`](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/index.md)`): `[`TorSettingsBuilder`](./index.md) |
49+
| [controlPortWriteToFile](control-port-write-to-file.md) | `fun controlPortWriteToFile(torConfigFiles: `[`TorConfigFiles`](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/index.md)`): `[`TorSettingsBuilder`](./index.md) |
5050
| [controlPortWriteToFileFromConfig](control-port-write-to-file-from-config.md) | `fun controlPortWriteToFileFromConfig(): `[`TorSettingsBuilder`](./index.md) |
5151
| [cookieAuthentication](cookie-authentication.md) | `fun cookieAuthentication(): `[`TorSettingsBuilder`](./index.md) |
5252
| [cookieAuthenticationFromSettings](cookie-authentication-from-settings.md) | `fun cookieAuthenticationFromSettings(): `[`TorSettingsBuilder`](./index.md) |
@@ -61,7 +61,7 @@ onionProxyManager.getNewSettingsBuilder()
6161
| [entryNodes](entry-nodes.md) | `fun entryNodes(entryNodes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`TorSettingsBuilder`](./index.md) |
6262
| [excludeNodes](exclude-nodes.md) | `fun excludeNodes(excludeNodes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`TorSettingsBuilder`](./index.md) |
6363
| [exitNodes](exit-nodes.md) | `fun exitNodes(exitNodes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`TorSettingsBuilder`](./index.md) |
64-
| [finishAndReturnString](finish-and-return-string.md) | This returns what's in the [buffer](#) as a String and then clears it. You still need to write the String to the [io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).`fun finishAndReturnString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
64+
| [finishAndReturnString](finish-and-return-string.md) | This returns what's in the [buffer](#) as a String and then clears it. You still need to write the String to the [io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).`fun finishAndReturnString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
6565
| [finishAndWriteToTorrcFile](finish-and-write-to-torrc-file.md) | A convenience method for after populating the [buffer](#) by calling [updateTorSettings](update-tor-settings.md). It will overwrite your current torrc file (or create a new one if it doesn't exist) with the new settings.`fun finishAndWriteToTorrcFile(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |
6666
| [geoIpFile](geo-ip-file.md) | `fun geoIpFile(path: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`TorSettingsBuilder`](./index.md) |
6767
| [geoIpV6File](geo-ip-v6-file.md) | `fun geoIpV6File(path: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`TorSettingsBuilder`](./index.md) |
@@ -96,7 +96,7 @@ onionProxyManager.getNewSettingsBuilder()
9696
| [transPort](trans-port.md) | `fun transPort(transPort: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`TorSettingsBuilder`](./index.md) |
9797
| [transPortFromSettings](trans-port-from-settings.md) | `fun transPortFromSettings(): `[`TorSettingsBuilder`](./index.md) |
9898
| [transportPlugin](transport-plugin.md) | `fun transportPlugin(clientPath: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`TorSettingsBuilder`](./index.md) |
99-
| [updateTorSettings](update-tor-settings.md) | Updates the buffer for all methods annotated with [SettingsConfig](#). You still need to call [finishAndReturnString](finish-and-return-string.md) and then write the returned String to your [io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).`fun updateTorSettings(): `[`TorSettingsBuilder`](./index.md) |
99+
| [updateTorSettings](update-tor-settings.md) | Updates the buffer for all methods annotated with [SettingsConfig](#). You still need to call [finishAndReturnString](finish-and-return-string.md) and then write the returned String to your [io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).`fun updateTorSettings(): `[`TorSettingsBuilder`](./index.md) |
100100
| [useBridges](use-bridges.md) | `fun useBridges(useThem: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`TorSettingsBuilder`](./index.md) |
101101
| [useBridgesFromSettings](use-bridges-from-settings.md) | `fun useBridgesFromSettings(): `[`TorSettingsBuilder`](./index.md) |
102102
| [virtualAddressNetwork](virtual-address-network.md) | `fun virtualAddressNetwork(address: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`TorSettingsBuilder`](./index.md) |

docs/topl-core/io.matthewnelson.topl_core.settings/-tor-settings-builder/update-tor-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Updates the buffer for all methods annotated with [SettingsConfig](#). You still need
88
to call [finishAndReturnString](finish-and-return-string.md) and then write the returned String to your
9-
[io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).
9+
[io.matthewnelson.topl_core_base.TorConfigFiles.torrcFile](../../../topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/torrc-file.md).
1010

1111
Alternatively, call [finishAndWriteToTorrcFile](finish-and-write-to-torrc-file.md), it's up to you.
1212

docs/topl-core/io.matthewnelson.topl_core.util/-core-consts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# CoreConsts
44

5-
`abstract class CoreConsts : `[`BaseConsts`](file:/home/matthew/AndroidStudioProjects/personal_projects/TorOnionProxyLibrary-Android/docs/topl-core-base/io.matthewnelson.topl_core_base/-base-consts/index.md) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/CoreConsts.kt#L27)
5+
`abstract class CoreConsts : `[`BaseConsts`](../../../topl-core-base/io.matthewnelson.topl_core_base/-base-consts/index.md) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/CoreConsts.kt#L27)
66

77
### Constructors
88

0 commit comments

Comments
 (0)