docs: place strategic pagebreaks automatically

This commit is contained in:
multisn8 2024-01-10 21:54:29 +01:00
parent ef7ab3e239
commit 5f95f36214
Signed by untrusted user: multisamplednight
GPG key ID: C81EF9B053977241
2 changed files with 13 additions and 3 deletions

View file

@ -19,8 +19,6 @@
- algebraic enums
- traits (`Numeric`...)
#pagebreak()
= Execution stages
#graphics.stages-overview

View file

@ -73,8 +73,10 @@
set text(..fonts.main)
set heading(numbering: "A.1")
show link: text.with(fill: blue)
show heading: it => text(..fonts.heading, it)
// color links
show link: text.with(fill: blue)
// prettify codeblocks
show raw.where(block: true): box.with(
fill: luma(95%),
inset: 1.25em,
@ -93,6 +95,16 @@
it
}
// semi-strategically place pagebreaks for better orientation
let pagebreak-before(it) = pagebreak() + it
show heading.where(outlined: true): it => {
if it.level <= 2 {
pagebreak()
}
it
}
// highlight important terms in bold
show raw: it => {
// avoid making terms in codeblocks bold