From 14c1e650b994fac98e871160f6575beafeed5cc5 Mon Sep 17 00:00:00 2001 From: Kirill Grachev Date: Sat, 6 May 2023 19:25:38 +0300 Subject: [PATCH] SNRK-86: Runs without fails --- snark-document-builder/src/main/kotlin/DocumentBuilder.kt | 6 ++++-- snark-document-builder/src/main/kotlin/MdParser.kt | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/snark-document-builder/src/main/kotlin/DocumentBuilder.kt b/snark-document-builder/src/main/kotlin/DocumentBuilder.kt index 17f5582..5f1ff31 100644 --- a/snark-document-builder/src/main/kotlin/DocumentBuilder.kt +++ b/snark-document-builder/src/main/kotlin/DocumentBuilder.kt @@ -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 { diff --git a/snark-document-builder/src/main/kotlin/MdParser.kt b/snark-document-builder/src/main/kotlin/MdParser.kt index d1ffe45..d502d41 100644 --- a/snark-document-builder/src/main/kotlin/MdParser.kt +++ b/snark-document-builder/src/main/kotlin/MdParser.kt @@ -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()