Skip to content

Commit

Permalink
Move to VirtusLab bintray org
Browse files Browse the repository at this point in the history
  • Loading branch information
mkondratek authored and romanowski committed Sep 10, 2020
1 parent 58db7ca commit 4fffcc6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ tasks.whenTaskAdded {
}
}

val bintrayUser: String? by project
val bintrayKey: String? by project

bintray {
user = "kromanowski"
user = project.findProperty("bintray_user") as String? ?: bintrayUser
key = project.findProperty("bintray_api_key") as String? ?: bintrayKey
setPublications("MavenJava")
publish = true
pkg(delegateClosureOf<com.jfrog.bintray.gradle.BintrayExtension.PackageConfig> {
repo = "releases"
userOrg = "romanowski"
repo = "dokka"
userOrg = "virtuslab"
name = project.name
setLicenses("Apache-2.0")
vcsUrl = "https://github.com/VirtusLab/dokka-site.git"
Expand All @@ -84,5 +85,5 @@ publishing {

// Configure dokka
tasks.dokkaHtml {
pluginsConfiguration.put("ExternalDocsTooKey", "documentation")
pluginsConfiguration.put("ExternalDocsTooKey", "documentation")
}
2 changes: 1 addition & 1 deletion documentation/docs/static-page/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Links

## Links

Our side supports stadnard markdown links:
Our side supports standard markdown links:
- TODO Using standard [urls](https://pl.wikipedia.org/wiki/Uniform_Resource_Locator)
- TODO To [other pages](/docs/static-page/random.html) (or [md base file](/docs/static-page/tables.md)) in our documentation that using paths relative to root od documentation e.g. `/docs/static-page/random.html` for this project
- TODO To [other pages](/docs/static-page/samples/random.html) (or [md base file](samples/tables.md)) in our documentation that using paths relative to this file e.g. using `random.html` (or `tables.md`)
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/com/virtuslab/dokka/site/parser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import java.net.URL


// TODO (#24): This is a code taken from dokka, will be removed after PR with fixes is merged into dokka
// The dokka logic was pulled to `externalDir` callback and `linksHandler` was simplyfied
// The dokka logic was pulled to `externalDir` callback and `linksHandler` was simplified
// Bug in imagesHandler was fixed (NullPointer)
open class ExtendableMarkdownParser(private val text: String, private val externalDir: (String) -> DRI?) {
open class ExtendableMarkdownParser(private val text: String, private val externalDri: (String) -> DRI?) {

fun parse(): DocTag {
val flavourDescriptor = GFMFlavourDescriptor()
Expand Down Expand Up @@ -117,7 +117,7 @@ open class ExtendableMarkdownParser(private val text: String, private val extern
URL(link)
null
} catch (e: MalformedURLException) {
externalDir(link)
externalDri(link)
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/test/kotlin/parserTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import org.junit.Test


class ParserTest {
private fun runtest(md: String, expected: DocTag) {
private fun runTest(md: String, expected: DocTag) {
val parser = ExtendableMarkdownParser(md) { null }
val compiled = parser.parse()
assertEquals(expected, compiled)
}


@Test
fun simpleTest() = runtest("ala", P(listOf(Text("ala"))))
fun simpleTest() = runTest("ala", P(listOf(Text("ala"))))

@Test
fun code() = runtest(
fun code() = runTest(
"""
```scala
def ala() = 123
Expand All @@ -28,15 +28,15 @@ class ParserTest {
)

@Test
fun relativeLink() = runtest(
fun relativeLink() = runTest(
"""
[link](ala/maKota.md)
""".trimIndent(),
P(listOf(A(listOf(Text("link")), mapOf("href" to "ala/maKota.md"))))
)

@Test
fun listTest() = runtest(
fun listTest() = runTest(
"""
List:
Expand Down

0 comments on commit 4fffcc6

Please sign in to comment.