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 space.kscience.snark.storage.*
|
||||
import space.kscience.snark.storage.local.LocalDirectory
|
||||
import java.nio.file.Path
|
||||
|
||||
val DEFAULT_DOCUMENT_ROOT = "main.md"
|
||||
|
||||
public suspend fun buildDocument(documentPath: String) {
|
||||
val documentDirectory: Directory = LocalDirectory(documentPath)
|
||||
public suspend fun buildDocument(documentDirectory: Directory) {
|
||||
val documentRoot = documentDirectory.get(DEFAULT_DOCUMENT_ROOT)
|
||||
|
||||
TODO()
|
||||
|
@ -6,6 +6,6 @@ import kotlinx.coroutines.runBlocking
|
||||
class SomeTest {
|
||||
@Test
|
||||
fun justWorks() = runBlocking {
|
||||
buildDocument("../example")
|
||||
// buildDocument(Directory("../example"))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user