feat!: change thesis-type to accept short keys (bachelor/course/qualification)

BREAKING CHANGE: thesis-type now requires "bachelor", "course", or
"qualification" instead of full labels like "Bakalaura darbs". Update
existing documents to use the new format.
This commit is contained in:
2026-02-24 16:43:36 +02:00
parent dd681be2da
commit 11d490b101
5 changed files with 112 additions and 76 deletions

View File

@@ -26,7 +26,7 @@ configure the whole document and `attachment` helper function. Important argumen
`code` and may include `location` and `email`.
- `advisors`: Array of advisor dictionaries with `title` and `name`.
- `reviewer`: Reviewer dictionary with `name`.
- `thesis-type`: e.g., `"Bakalaura darbs"`, `"Kvalifikācijas Darbs"`.
- `thesis-type`: Type of thesis - `"bachelor"`, `"course"`, or `"qualification"`. The documentary page adapts its content based on this value.
- `date`: `datetime(...)` value for the thesis date. Defaults to `today`.
- `place`: Place string (e.g., `"Rīga"`).
- `abstract`: A record with `primary` and `secondary` abstracts. Each has
@@ -48,7 +48,7 @@ function in a show rule. If you want to change an existing project to use this
template, you can add a show rule like this at the top of your file:
```typst
#import "@preview/solo-lu-df:1.0.0": *
#import "@preview/solo-lu-df:1.1.0": *
#show: ludf.with(
title: "Darba Nosaukums",
@@ -58,7 +58,7 @@ template, you can add a show rule like this at the top of your file:
advisors: (
(title: "Mg. dat.", name: "Ivars Ozoliņš"),
),
reviewer: (name: "Prof. Anna Liepa"),
reviewer: (title: "", name: "Prof. Anna Liepa"),
date: datetime(year: 2025, month: 1, day: 1),
place: "Rīga",
bibliography: bibliography("bibliography.yml"),