SNRK-84: better
This commit is contained in:
parent
ffaa932127
commit
046bbda23a
@ -53,12 +53,10 @@ public data class IncludeDependency(
|
||||
}
|
||||
}
|
||||
|
||||
// parent - List<MdAstElement> --------------------------------------
|
||||
// | \
|
||||
// parent - List<MdAstElement> -------------------------------------
|
||||
// | \
|
||||
// \ \
|
||||
// | \
|
||||
// | \
|
||||
// dependentNode - MdAstElement \
|
||||
// |
|
||||
// List<FileName> -> List<MdAstRoot> --> List<List<MdAstElement>> ===> List<MdAstElement>
|
||||
|
@ -6,15 +6,18 @@ import java.nio.file.Path
|
||||
import java.nio.file.Paths
|
||||
import kotlinx.html.*
|
||||
import kotlinx.html.dom.createHTMLDocument
|
||||
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
|
||||
import com.fasterxml.jackson.module.kotlin.readValue
|
||||
|
||||
private val DEFAULT_DOCUMENT_ROOT = "main.md"
|
||||
|
||||
public suspend fun buildDocument(documentDirectory: Directory): String {
|
||||
val dependencyGraph = buildDependencyGraph(documentDirectory)
|
||||
|
||||
// TODO() /*resolving of dependencies*/
|
||||
|
||||
return "Not implemented"
|
||||
println(1)
|
||||
val roooot: MdAstRoot = dependencyGraph.nodes[""]!!.mdAst
|
||||
println(2)
|
||||
return jacksonObjectMapper().writeValueAsString(roooot)
|
||||
// TODO прикрутить html
|
||||
}
|
||||
|
||||
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
||||
|
Loading…
Reference in New Issue
Block a user