Remove outdated toc_pages.txt, add new Go modules for IHK Chemnitz PDF rendering including diagrams, tables, and TOC functionality.

This commit is contained in:
Sebastian Unterschütz
2026-05-04 22:06:28 +02:00
parent e98f7efa52
commit 81745b5f48
23 changed files with 1532 additions and 809 deletions
+38
View File
@@ -1,5 +1,24 @@
package main
// Config holds all document metadata from the Markdown YAML front matter.
// It drives the title page, abbreviation list, and glossary.
//
// Example front matter:
//
// student:
// name: "Max Mustermann"
// profession: "Fachinformatiker Fachrichtung Anwendungsentwicklung"
// company: "Musterfirma GmbH"
// supervisor: "Sabine Supervisor"
// project:
// title: "Thema der Projektarbeit"
// period: "Sommer 2026"
// abbreviations:
// - abbr: "API"
// meaning: "Application Programming Interface"
// glossary:
// - term: "Agile"
// definition: "Iteratives Vorgehensmodell der Softwareentwicklung"
type Config struct {
Student struct {
Name string `yaml:"name"`
@@ -7,9 +26,28 @@ type Config struct {
Company string `yaml:"company"`
Supervisor string `yaml:"supervisor"`
} `yaml:"student"`
Project struct {
Title string `yaml:"title"`
Period string `yaml:"period"`
Subtitle string `yaml:"subtitle"`
} `yaml:"project"`
// Abbreviations populates the list of abbreviations placed after the TOC.
Abbreviations []Abbreviation `yaml:"abbreviations"`
// Glossary populates the Glossar section placed before the declaration page.
Glossary []GlossaryEntry `yaml:"glossary"`
}
// Abbreviation is one entry in the list of abbreviations.
type Abbreviation struct {
Abbr string `yaml:"abbr"`
Meaning string `yaml:"meaning"`
}
// GlossaryEntry is one entry in the Glossar section.
type GlossaryEntry struct {
Term string `yaml:"term"`
Definition string `yaml:"definition"`
}