SNRK-86: Runs without fails
This commit is contained in:
parent
a99e71d1b1
commit
14c1e650b9
@ -9,10 +9,12 @@ import kotlinx.html.dom.createHTMLDocument
|
|||||||
|
|
||||||
private val DEFAULT_DOCUMENT_ROOT = "main.md"
|
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)
|
val dependencyGraph = buildDependencyGraph(documentDirectory)
|
||||||
|
|
||||||
TODO() /*resolving of dependencies*/
|
// TODO() /*resolving of dependencies*/
|
||||||
|
|
||||||
|
return "Not implemented"
|
||||||
}
|
}
|
||||||
|
|
||||||
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
||||||
|
@ -4,8 +4,8 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
|
|||||||
import com.fasterxml.jackson.module.kotlin.readValue
|
import com.fasterxml.jackson.module.kotlin.readValue
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
|
|
||||||
private val MARKDOWN_PARSER = "../nodejs/MarkdownParser.js"
|
private val MARKDOWN_PARSER = "snark-document-builder/src/main/nodejs/MarkdownParser.js"
|
||||||
private val SNARK_PARSER = "../python/SnarkParse.py"
|
private val SNARK_PARSER = "snark-document-builder/src/main/python/SnarkParser.py"
|
||||||
|
|
||||||
public suspend fun parseMd(mdFile: ByteArray): MdAstRoot {
|
public suspend fun parseMd(mdFile: ByteArray): MdAstRoot {
|
||||||
return jacksonObjectMapper()
|
return jacksonObjectMapper()
|
||||||
|
Loading…
Reference in New Issue
Block a user