This website requires JavaScript.
Explore
Help
Sign In
luciano
/
d2
Watch
1
Star
0
Fork
You've already forked d2
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
f76e151991
d2
/
ci
/
fmt.sh
7 lines
97 B
Bash
Raw
Normal View
History
Unescape
Escape
Add markdown TOC generation using pandoc and shell See https://github.com/terrastruct/ci/blob/a875763eccbb51298807901be68c31e5b150dceb/lib/misc.sh#L28 The TOC is generated via pandoc and inserted via shell. `<!-- toc -->` marks the insertion point, the TOC is inserted right below. I'm using this in utils-go too. We should use it anywhere else we need TOCs. I'm sure pandoc can handle the frontmatter in d2-docs too.
2022-12-01 16:25:05 +00:00
#!/bin/sh
set
-eu
.
"
$(
dirname
"
$0
"
)
/sub/lib.sh
"
cd
--
"
$(
dirname
"
$0
"
)
/..
"
ci: Update
2022-12-08 04:59:24 +00:00
./ci/sub/bin/fmt.sh
Reference in a new issue
Copy permalink