Skip to content

Commit 433e7c2

Browse files
authored
Merge pull request #2 from manriif/dev
fix(readme): broken links
2 parents 2a6a955 + e69bfa7 commit 433e7c2

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[example]: https://github.com/manriif/supabase-edge-functions-kt-example
2+
[website]: https://manriif.github.io/supabase-edge-functions-kt
23

34
# Supabase Edge Functions Kotlin
45

@@ -10,7 +11,7 @@ as primary programming language.
1011
[![](https://img.shields.io/badge/Stability-experimental-orange)](#project-stability)
1112
[![Kotlin](https://img.shields.io/badge/kotlin-2.0.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
1213
[![IR](https://img.shields.io/badge/Kotlin%2FJS-IR_only-yellow)](https://kotl.in/jsirsupported)
13-
[![API](https://img.shields.io/badge/API-dokka-green)]()
14+
[![API](https://img.shields.io/badge/API-dokka-green)][website]
1415
[![Maven Central](https://img.shields.io/maven-central/v/io.github.manriif.supabase-functions/github-plugin?label=MavenCentral&logo=apache-maven)](https://search.maven.org/artifact/org.jetbrains.dokka/io.github.manriif.supabase-functions)
1516
[![Gradle Plugin](https://img.shields.io/gradle-plugin-portal/v/io.github.manriif.supabase-functions?label=Gradle&logo=gradle)](https://plugins.gradle.org/plugin/io.github.manriif.supabase-functions)
1617
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
@@ -102,9 +103,9 @@ suspend fun serve(request: Request): Response {
102103
After a successful gradle sync and if you are using an IntelliJ based IDE, you will see new run configurations for your function.
103104

104105
<picture>
105-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/manriif/supabase-edge-functions-kt/dev/docs/run_config_dark.png">
106-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/manriif/supabase-edge-functions-kt/dev/docs/run_config_light.png">
107-
<img alt="Run configurations" src="https://raw.githubusercontent.com/manriif/supabase-edge-functions-kt/dev/docs/run_config_light.png">
106+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/manriif/supabase-edge-functions-kt/main/readme/run_config_dark.png">
107+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/manriif/supabase-edge-functions-kt/main/readme/run_config_light.png">
108+
<img alt="Run configurations" src="https://raw.githubusercontent.com/manriif/supabase-edge-functions-kt/main/readme/run_config_light.png">
108109
</picture>
109110

110111
Run:

build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Use of this source code is governed by the MIT license.
44
*/
55

6+
import org.jetbrains.dokka.gradle.AbstractDokkaTask
67
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
78

89
plugins {
@@ -17,6 +18,14 @@ allprojects {
1718
group = property("project.group").toString()
1819
version = rootProject.libs.versions.supabase.functions.get()
1920
extra["isModule"] = path.startsWith(":modules")
21+
22+
val dokkaBase = """{
23+
"footerMessage": "© 2024 <a href=\"https://github.com/manriif\">Maanrifa Bacar Ali</a>."
24+
}"""
25+
26+
tasks.withType<AbstractDokkaTask>().configureEach {
27+
pluginsMapConfiguration = mapOf("org.jetbrains.dokka.base.DokkaBase" to dokkaBase)
28+
}
2029
}
2130

2231
tasks.withType<DokkaMultiModuleTask> {
@@ -25,10 +34,4 @@ tasks.withType<DokkaMultiModuleTask> {
2534
includes = dokkaDir.files("README.md")
2635
moduleName = rootProject.property("project.name").toString()
2736
outputDirectory = dokkaDir.dir("documentation")
28-
29-
pluginsMapConfiguration = mapOf(
30-
"org.jetbrains.dokka.base.DokkaBase" to """{
31-
"footerMessage": "© 2024 <a href=\"https://github.com/manriif\">Maanrifa Bacar Ali</a>."
32-
}"""
33-
)
3437
}

0 commit comments

Comments
 (0)