SNRK-70: better arguments in buildDocument

This commit is contained in:
liubar.pa 2023-05-04 02:30:03 +03:00
parent 6c9a08a14a
commit 5458bd3677
2 changed files with 2 additions and 4 deletions

View File

@ -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()

View File

@ -6,6 +6,6 @@ import kotlinx.coroutines.runBlocking
class SomeTest {
@Test
fun justWorks() = runBlocking {
buildDocument("../example")
// buildDocument(Directory("../example"))
}
}