-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added `ktorJvmEngine` parameter to plugin with option to choose ktor engine. * Added `onHandlerException` for spring starter bot configuration, to cover exceptions thrown by update handler. * Added extension for `String` for escaping formatting, `escapeFormatting(parseMode)`, `escapeMarkdown`, `escapeMarkdownV2`, `escapeHTML`.
- Loading branch information
Showing
54 changed files
with
543 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
internal object CommonResources { | ||
const val REPO_URL = "https://github.com/vendelieu/telegram-bot" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import CommonResources.REPO_URL | ||
import java.time.LocalDate | ||
|
||
plugins { | ||
id("org.jetbrains.dokka") | ||
} | ||
|
||
dokka { | ||
moduleName = if (project.name != "docs") project.name else "KtGram" | ||
dokkaSourceSets.configureEach { | ||
sourceRoots.setFrom(project.projectDir.resolve("src/$name/kotlin")) | ||
sourceLink { | ||
localDirectory.set(file("src/$name/kotlin")) | ||
remoteUrl("$REPO_URL/blob/master/${project.name}/src/$name/kotlin") | ||
remoteLineSuffix.set("#L") | ||
} | ||
} | ||
|
||
pluginsConfiguration.html { | ||
customAssets.from(rootDir.resolve("assets/logo-icon.svg")) | ||
footerMessage.set("© ${LocalDate.now().year} Vendelieu") | ||
homepageLink.set(REPO_URL) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
plugins { | ||
kotlin("jvm") apply false | ||
dokka | ||
} | ||
|
||
dependencies { | ||
rootProject.subprojects.filter { it.name !in listOf("helper", "ksp", "ktgram-gradle-plugin", "docs") }.forEach { | ||
dokka(project(":" + it.name)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 | ||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
kotlin.incremental=true | ||
kotlin.incremental=true | ||
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled | ||
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true | ||
#org.jetbrains.dokka.experimental.tryK2=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
plugins { | ||
id("publish") | ||
dokka | ||
publish | ||
} | ||
|
||
onlyJvmConfiguredKotlin { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
plugins { | ||
id("publish") | ||
dokka | ||
publish | ||
} | ||
|
||
configuredKotlin { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
plugins { | ||
id("publish") | ||
dokka | ||
publish | ||
} | ||
|
||
onlyJvmConfiguredKotlin { | ||
|
Oops, something went wrong.