feat(glossy): add 0.1.2 with ability to customize term output

This commit is contained in:
swaits committed 2024-10-31 08:24:05 -06:00
1 parent 0cf01366eb
commit cc0fceaf2e
12 files changed
+845

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
#let theme-2col = (
section: (title, body) => {
set par.line(numbering: none)
heading(level: 1, title)
columns(2, body)
},
group: (name, i, n, body) => {
if name != "" and n > 1 {
heading(level: 2, name)
}
body
},
entry: (entry, i, n) => {
// build our title, etc
let short-display = text(weight: "regular", entry.short)
let long-display = if entry.long == none {
[]
} else {
[#h(0.25em) -- #entry.long]
}
// build our description
let description = if entry.description == none {
[]
} else {
[: #entry.description]
}
text(
size: 0.75em,
weight: "light",
grid(
columns: (auto,auto,auto,1fr,1em,auto),
align: (left, left, left, center, center, right),
[#short-display#entry.label],
[#long-display],
[#description],
[#repeat(h(0.25em) + "." + h(0.25em))],
[ . ],
[#entry.pages]
)
)
},
)