52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
// Project variables
|
|
#import "variables.typ": ravenous, colors
|
|
#import "../data/gen/build_info.typ": build_info
|
|
// #import "class_model.typ": class_model
|
|
#import "model.typ": model, class_model
|
|
|
|
// Re exposing internals
|
|
#let ravenous = ravenous
|
|
#let colors = colors
|
|
#let build_info = build_info
|
|
|
|
// Template for classes
|
|
#let class_model = class_model
|
|
|
|
// // Document setup
|
|
// #import "./config.typ": conf
|
|
|
|
// Inner modules and functions
|
|
|
|
#let memo_box(title: "À retenir", content) = {
|
|
block(
|
|
fill: rgb("#EDE1C8"),
|
|
stroke: 0.8pt + colors.gold,
|
|
inset: 12pt,
|
|
radius: 3pt,
|
|
)[
|
|
#strong[#title]
|
|
|
|
#content
|
|
]
|
|
|
|
}
|
|
|
|
// TODO: Have all be either admonish or whatever
|
|
#let ravhelp = memo_box
|
|
|
|
// WIP warnings
|
|
#import "@preview/uniwarn:0.1.1" as uwarn
|
|
#let ns = "transfer_warnings"
|
|
#uwarn.register-namespace(ns) // will panic if already registered by another package
|
|
#let nogls = uwarn.warning.with(namespace: ns, prefix: "[glos] ")
|
|
// #let ravhelp = uwarn.warning.with(namespace: ns, prefix: "[hlpb] ")
|
|
#let warn = uwarn.warning.with(namespace: ns, prefix: "[warn] ")
|
|
#let comment = uwarn.warning.with(namespace: ns, prefix: "[info] ")
|
|
#let disable-warnings = uwarn.disable-warnings.with(ns)
|
|
#let enable-warnings = uwarn.enable-warnings.with(ns)
|
|
|
|
// Create a main document config for the ravenous project
|
|
#let config_main(variables: ravenous, document) = {
|
|
show: model(ravenous, document, colors)
|
|
}
|