SNRK-84: better
This commit is contained in:
parent
ffaa932127
commit
046bbda23a
@ -53,14 +53,12 @@ public data class IncludeDependency(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// parent - List<MdAstElement> --------------------------------------
|
// parent - List<MdAstElement> -------------------------------------
|
||||||
// | \
|
// | \
|
||||||
// | \
|
// \ \
|
||||||
// \ \
|
// | \
|
||||||
// | \
|
// dependentNode - MdAstElement \
|
||||||
// | \
|
// |
|
||||||
// dependentNode - MdAstElement \
|
|
||||||
// |
|
|
||||||
// List<FileName> -> List<MdAstRoot> --> List<List<MdAstElement>> ===> List<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 java.nio.file.Paths
|
||||||
import kotlinx.html.*
|
import kotlinx.html.*
|
||||||
import kotlinx.html.dom.createHTMLDocument
|
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"
|
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)
|
||||||
|
println(1)
|
||||||
// TODO() /*resolving of dependencies*/
|
val roooot: MdAstRoot = dependencyGraph.nodes[""]!!.mdAst
|
||||||
|
println(2)
|
||||||
return "Not implemented"
|
return jacksonObjectMapper().writeValueAsString(roooot)
|
||||||
|
// TODO прикрутить html
|
||||||
}
|
}
|
||||||
|
|
||||||
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
public suspend fun buildDependencyGraph(root: Directory): DependencyGraph {
|
||||||
|
Loading…
Reference in New Issue
Block a user