SNRK-70: better arguments in buildDocument
This commit is contained in:
parent
6c9a08a14a
commit
5458bd3677
@ -2,13 +2,11 @@ package documentBuilder
|
|||||||
|
|
||||||
import com.fasterxml.jackson.core.io.BigDecimalParser
|
import com.fasterxml.jackson.core.io.BigDecimalParser
|
||||||
import space.kscience.snark.storage.*
|
import space.kscience.snark.storage.*
|
||||||
import space.kscience.snark.storage.local.LocalDirectory
|
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
|
||||||
val DEFAULT_DOCUMENT_ROOT = "main.md"
|
val DEFAULT_DOCUMENT_ROOT = "main.md"
|
||||||
|
|
||||||
public suspend fun buildDocument(documentPath: String) {
|
public suspend fun buildDocument(documentDirectory: Directory) {
|
||||||
val documentDirectory: Directory = LocalDirectory(documentPath)
|
|
||||||
val documentRoot = documentDirectory.get(DEFAULT_DOCUMENT_ROOT)
|
val documentRoot = documentDirectory.get(DEFAULT_DOCUMENT_ROOT)
|
||||||
|
|
||||||
TODO()
|
TODO()
|
||||||
|
@ -6,6 +6,6 @@ import kotlinx.coroutines.runBlocking
|
|||||||
class SomeTest {
|
class SomeTest {
|
||||||
@Test
|
@Test
|
||||||
fun justWorks() = runBlocking {
|
fun justWorks() = runBlocking {
|
||||||
buildDocument("../example")
|
// buildDocument(Directory("../example"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user