Simpler changelog
Build Successful The Ravenous rulebook, changelog, player books, master handbook, and balance reports were built successfully.
Ravenous/ravenous_typst/pipeline/head This commit looks good
Details
Build Successful The Ravenous rulebook, changelog, player books, master handbook, and balance reports were built successfully.
Ravenous/ravenous_typst/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4aa2126c09
commit
9e180b0fc0
|
|
@ -114,7 +114,9 @@ pipeline {
|
|||
typst compile "${SOURCE_FILE}" "${OUTPUT_FILE}"
|
||||
|
||||
echo "Building ${CHANGELOG_SOURCE_FILE} -> ${CHANGELOG_OUTPUT_FILE}"
|
||||
typst compile "${CHANGELOG_SOURCE_FILE}" "${CHANGELOG_OUTPUT_FILE}"
|
||||
typst compile \
|
||||
--input changelog-hidden-categories=formatting,reporting \
|
||||
"${CHANGELOG_SOURCE_FILE}" "${CHANGELOG_OUTPUT_FILE}"
|
||||
|
||||
echo "Building ${BALANCE_SOURCE_FILE} -> ${BALANCE_OUTPUT_FILE}"
|
||||
typst compile "${BALANCE_SOURCE_FILE}" "${BALANCE_OUTPUT_FILE}"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,19 @@
|
|||
// A deliberately compact, data-driven overview of notable content changes.
|
||||
#import "/setup/setup.typ": theme, theme-var
|
||||
|
||||
#let entries = yaml("/data/config/changelog.yaml").filter(
|
||||
entry => entry.at("display", default: true),
|
||||
#let hidden-categories = (
|
||||
sys.inputs.at(
|
||||
"changelog-hidden-categories",
|
||||
default: "",
|
||||
)
|
||||
.split(",")
|
||||
.map(category => category.trim())
|
||||
.filter(category => category != "")
|
||||
)
|
||||
#let entries = yaml("/data/config/changelog.yaml").filter(entry => (
|
||||
entry.at("display", default: true)
|
||||
and not hidden-categories.contains(entry.category)
|
||||
))
|
||||
#let category-order = (
|
||||
"new rule",
|
||||
"rework",
|
||||
|
|
|
|||
|
|
@ -16,3 +16,11 @@ typst compile --input theme=steel changelog.typ changelog-steel.pdf
|
|||
|
||||
The changelog content is stored in `data/config/changelog.yaml` and rendered by
|
||||
`chapters/changelog.typ`.
|
||||
|
||||
Categories can be omitted from a build with a comma-separated input. For example,
|
||||
the CI publication excludes formatting and reporting entries with:
|
||||
|
||||
```sh
|
||||
typst compile --input changelog-hidden-categories=formatting,reporting \
|
||||
changelog.typ changelog.pdf
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue