From 7c5e2b7dbb9ab3d667d3bacb6fe0ad32dbfe4a0a Mon Sep 17 00:00:00 2001 From: Leonid Pereverzin Date: Thu, 18 May 2023 15:56:17 +0300 Subject: [PATCH] SNRK-89: first buld document --- .../src/main/kotlin/DocumentBuilder.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/snark-document-builder/src/main/kotlin/DocumentBuilder.kt b/snark-document-builder/src/main/kotlin/DocumentBuilder.kt index 7c04acf..bc4658c 100644 --- a/snark-document-builder/src/main/kotlin/DocumentBuilder.kt +++ b/snark-document-builder/src/main/kotlin/DocumentBuilder.kt @@ -25,7 +25,15 @@ private val DEFAULT_DOCUMENT_ROOT = "main.md" public suspend fun buildDocument(root: Directory, path: Path): String { val dependencyGraph = buildDependencyGraph(root, path) - println("dependency graph nodes (size: ${dependencyGraph.nodes.size}):\n${dependencyGraph.nodes}") + val graphManage = GraphManager(dependencyGraph) + + graphManage.buildDocument(path.toString()) + +// for ((key, value) in dependencyGraph.nodes) { +// println("Key ${key}") +// println("Value.mdAst ${value.mdAst}") +// println("Value.dependencies ${value.dependencies}") +// } val root: MdAstRoot = dependencyGraph.nodes[path.toString()]!!.mdAst