Add TOCs everywhere
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
10a39bf0c9
commit
0b7eaa516d
2
build.sh
2
build.sh
|
@ -17,6 +17,7 @@ function convert {
|
|||
--read markdown \
|
||||
--write html \
|
||||
--standalone \
|
||||
--table-of-contents \
|
||||
--template template.html \
|
||||
--highlight-style zenburn \
|
||||
--css "/~$USER/theme.css" \
|
||||
|
@ -28,6 +29,7 @@ function convert {
|
|||
pandoc \
|
||||
--read markdown \
|
||||
--write "$3" \
|
||||
--table-of-contents \
|
||||
-o "$2" \
|
||||
"$1"
|
||||
fi
|
||||
|
|
|
@ -61,8 +61,11 @@ $if(toc)$
|
|||
<nav id="$idprefix$TOC" role="doc-toc">
|
||||
$if(toc-title)$
|
||||
<h2 id="$idprefix$toc-title">$toc-title$</h2>
|
||||
$endif$
|
||||
$table-of-contents$
|
||||
$else$
|
||||
$table-of-contents$
|
||||
<hr />
|
||||
$endif$
|
||||
</nav>
|
||||
$endif$
|
||||
$body$
|
||||
|
|
Loading…
Reference in New Issue