SNRK-86: Runs without fails

This commit is contained in:
Kirill Grachev 2023-05-06 19:25:38 +03:00
parent a99e71d1b1
commit 14c1e650b9
2 changed files with 6 additions and 4 deletions

View File

@ -9,10 +9,12 @@ import kotlinx.html.dom.createHTMLDocument
private val DEFAULT_DOCUMENT_ROOT = "main.md"
public suspend fun buildDocument(documentDirectory: Directory): HTML {
public suspend fun buildDocument(documentDirectory: Directory): String {
val dependencyGraph = buildDependencyGraph(documentDirectory)
TODO() /*resolving of dependencies*/
// TODO() /*resolving of dependencies*/
return "Not implemented"
}
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {

View File

@ -4,8 +4,8 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import java.nio.file.Path
private val MARKDOWN_PARSER = "../nodejs/MarkdownParser.js"
private val SNARK_PARSER = "../python/SnarkParse.py"
private val MARKDOWN_PARSER = "snark-document-builder/src/main/nodejs/MarkdownParser.js"
private val SNARK_PARSER = "snark-document-builder/src/main/python/SnarkParser.py"
public suspend fun parseMd(mdFile: ByteArray): MdAstRoot {
return jacksonObjectMapper()