mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 18:28:02 +00:00
docs: use themed nodes
This commit is contained in:
parent
dc4e43c5d8
commit
cec7019b1a
1 changed files with 5 additions and 6 deletions
|
@ -11,22 +11,21 @@
|
|||
|
||||
typlite's goal is to convert docstrings in typst packages to LSP docs (Markdown format). To achieve this, it runs HTML export and extracts semantic information from the HTML document for markup conversion.
|
||||
|
||||
#let pg-node = node.with(corner-radius: 2pt, shape: "rect");
|
||||
#let out-format = box.with(width: 5em)
|
||||
#let typlite-convert-graph(theme) = {
|
||||
let (colors, node, edge) = fletcher-ctx(theme)
|
||||
diagram(
|
||||
node-stroke: 1pt,
|
||||
edge-stroke: 1pt,
|
||||
pg-node((0.5, 0), [Typst Source Code]),
|
||||
node((0.5, 0), [Typst Source Code]),
|
||||
edge("-|>", link("https://typst.app/docs/reference/html/")[HTML Export]),
|
||||
pg-node((3, 0), [```xml <xml:typlite/>```]),
|
||||
node((3, 0), [```xml <xml:typlite/>```]),
|
||||
edge("-|>"),
|
||||
pg-node((5, 0), out-format[LaTeX]),
|
||||
node((5, 0), out-format[LaTeX]),
|
||||
edge((3, 0), (5, -0.7), "-|>"),
|
||||
pg-node((5, -0.7), out-format[Markdown]),
|
||||
node((5, -0.7), out-format[Markdown]),
|
||||
edge((3, 0), (5, 0.7), "-|>"),
|
||||
pg-node((5, 0.7), out-format[DocX]),
|
||||
node((5, 0.7), out-format[DocX]),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue