SNRK-89: better gitignore file and better path for build document
This commit is contained in:
parent
98e713c909
commit
1276275853
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
|||||||
build/
|
build/
|
||||||
.idea/
|
.idea/
|
||||||
/logs/
|
/logs/
|
||||||
|
rundata/
|
||||||
|
|
||||||
!gradle/wrapper/gradle-wrapper.jar
|
!gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
@ -24,10 +24,9 @@ private val DEFAULT_DOCUMENT_ROOT = "main.md"
|
|||||||
public suspend fun buildDocument(documentDirectory: Directory): String {
|
public suspend fun buildDocument(documentDirectory: Directory): String {
|
||||||
val dependencyGraph = buildDependencyGraph(documentDirectory)
|
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 getHtml(jacksonObjectMapper().writeValueAsString(root))
|
||||||
// return jacksonObjectMapper().writeValueAsString(root)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
||||||
|
Loading…
Reference in New Issue
Block a user