added: auto grouping for glossary
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 24s
Details
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 24s
Details
This commit is contained in:
parent
c06fecec4c
commit
dfb2cdbebe
|
@ -46,7 +46,21 @@
|
||||||
type(v.group) == str,
|
type(v.group) == str,
|
||||||
message: "The optional group of glossary entry `" + k + "` is not a string")
|
message: "The optional group of glossary entry `" + k + "` is not a string")
|
||||||
} else {
|
} else {
|
||||||
panic("Missing group for glossary entry: `" + k + "`")
|
let group = if "long" in v {
|
||||||
|
if (context text.lang) == "de" {
|
||||||
|
"Akronym"
|
||||||
|
} else {
|
||||||
|
"Acronym"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (context text.lang) == "de" {
|
||||||
|
"Begriff"
|
||||||
|
} else {
|
||||||
|
"Term"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
entries.at(k).group = group
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,7 @@ oidc:
|
||||||
short: OIDC
|
short: OIDC
|
||||||
long: OpenID Connect
|
long: OpenID Connect
|
||||||
desc: "OpenID is an open standard and decentralized authentication protocol promoted by the non-profit #link(\"https://en.wikipedia.org/wiki/OpenID#OpenID_Foundation\")[OpenID Foundation]."
|
desc: "OpenID is an open standard and decentralized authentication protocol promoted by the non-profit #link(\"https://en.wikipedia.org/wiki/OpenID#OpenID_Foundation\")[OpenID Foundation]."
|
||||||
group: Acronym
|
|
||||||
|
|
||||||
potato:
|
potato:
|
||||||
short: potato
|
short: potato
|
||||||
desc: "#lorem(50)"
|
desc: "#lorem(50)"
|
||||||
group: Acronym
|
|
Loading…
Reference in New Issue