nml/docs/template.nml

33 lines
781 B
Text
Raw Permalink Normal View History

2024-07-30 09:03:10 +02:00
@html.css = ../style.css
2024-07-29 21:28:06 +02:00
@tex.main.fontsize = 9
@tex.main.preamble = \usepackage{xcolor, tikz, pgfplots} \\
\usepgfplotslibrary{patchplots} \\
\definecolor{__color1}{HTML}{d5d5d5} \\
\everymath{\color{__color1}\displaystyle}
@tex.main.block_prepend = \color{__color1}
@<
function make_doc(categories, title, page_title)
-- Navigation
nml.variable.insert("nav.title", title)
if categories[1] ~= nil
then
nml.variable.insert("nav.category", categories[1])
if categories[2] ~= nil
then
nml.variable.insert("nav.subcategory", categories[2])
end
end
-- HTML
nml.variable.insert("html.page_title", "NML | " .. page_title)
nml.variable.insert("compiler.output", page_title .. ".html")
end
>@
2024-08-03 18:43:54 +02:00
@@style.section = {
"link_pos": "Before",
"link": ["", "🔗 ", " "]
}