feat: make supervisor signature optional (#112)
Create Release Commit / prepare (push) Has been cancelled Details

Release-As: v0.5.4
Reviewed-on: #112
This commit is contained in:
Sven Vogel 2024-11-25 16:03:42 +00:00
parent 1d6a900fca
commit bdbf641fd4
4 changed files with 46 additions and 31 deletions

View File

@ -2,11 +2,12 @@ name: Build'n check
run-name: Performing Typst compilation run-name: Performing Typst compilation
on: on:
pull_request: pull_request:
types:
- opened
- synchronize
branches: branches:
- main - main
push:
branches-ignore:
- main
jobs: jobs:
run-ci-linux: run-ci-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -14,7 +15,8 @@ jobs:
# push with commit containing "Run-Checks" # push with commit containing "Run-Checks"
if: > if: >
(contains(github.event.head_commit.message, 'Run-Checks') && (contains(github.event.head_commit.message, 'Run-Checks') &&
github.event_name == 'push') github.event_name == 'push') ||
github.event_name == 'pull_request'
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3

View File

@ -24,6 +24,7 @@
name: "dualen Hochschule Baden-Württemberg", name: "dualen Hochschule Baden-Württemberg",
campus: "Eppelheim" campus: "Eppelheim"
), ),
supervisor-signature: false,
authors: ( authors: (
( (
name: "Sven Vogel", name: "Sven Vogel",

View File

@ -122,17 +122,27 @@
#metadata("content terminate") <end-of-content> #metadata("content terminate") <end-of-content>
#end_styled(config)[ #end_styled(
// add bibliography if set config,
#if "bibliography" in config.thesis and config.thesis.bibliography != none { context [
pagebreak(weak: true) // add bibliography if set
counter(page).update(1) #if "bibliography" in config.thesis and config.thesis.bibliography != none {
set bibliography(style: "ieee") pagebreak(weak: true)
config.thesis.bibliography counter(page).update(1)
} set bibliography(
style: "ieee",
title: if (text.lang == "de") {
"Literaturverzeichnis"
} else if text.lang == "en" {
"Bibliography"
},
)
config.thesis.bibliography
}
// appendix // appendix
#show-appendix(config: config) #show-appendix(config: config)
] ],
)
] ]
] ]

View File

@ -147,22 +147,24 @@
#context panic("no translation for language: ", text.lang) #context panic("no translation for language: ", text.lang)
] ]
#align( #if config.supervisor-signature {
bottom, align(
grid( bottom,
// set width of columns grid(
// we need two, so make both half the page width // set width of columns
columns: (60%, 40%), // we need two, so make both half the page width
align(left, if text.lang == "de" [ columns: (60%, 40%),
Unterschrift des betrieblichen Betreuers align(left, if text.lang == "de" [
] else if text.lang == "en" [ Unterschrift des betrieblichen Betreuers
Signature of the company supervisor ] else if text.lang == "en" [
] else [ Signature of the company supervisor
#context panic("no translation for language: ", text.lang) ] else [
] #context panic("no translation for language: ", text.lang)
), ]
align(right, {line(length: 6cm)})), ),
) align(right, {line(length: 6cm)})),
)
}
#counter(page).update(0) #counter(page).update(0)
] ]