SNRK-89: better gitignore file and better path for build document

This commit is contained in:
Leonid Pereverzin 2023-05-18 14:42:59 +03:00
parent 98e713c909
commit 1276275853
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
build/
.idea/
/logs/
rundata/
!gradle/wrapper/gradle-wrapper.jar

View File

@ -24,10 +24,9 @@ private val DEFAULT_DOCUMENT_ROOT = "main.md"
public suspend fun buildDocument(documentDirectory: Directory): String {
val dependencyGraph = buildDependencyGraph(documentDirectory)
val root: MdAstRoot = dependencyGraph.nodes[""]!!.mdAst
val root: MdAstRoot = dependencyGraph.nodes[documentDirectory.path.toString()]!!.mdAst
return getHtml(jacksonObjectMapper().writeValueAsString(root))
// return jacksonObjectMapper().writeValueAsString(root)
}
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {