From d1c6b89ca61ba65f811d67de2edef009ba04af40 Mon Sep 17 00:00:00 2001 From: Sebastian Gode Date: Wed, 13 Nov 2024 11:11:12 +0000 Subject: [PATCH] Update PDF startpage confpy variables Reviewed-by: tischrei Co-authored-by: Sebastian Gode Co-committed-by: Sebastian Gode --- otc_metadata/templates/conf.py.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/otc_metadata/templates/conf.py.j2 b/otc_metadata/templates/conf.py.j2 index af9aeab..460acc3 100644 --- a/otc_metadata/templates/conf.py.j2 +++ b/otc_metadata/templates/conf.py.j2 @@ -145,6 +145,11 @@ latex_elements = { 'papersize': 'a4paper', 'pointsize': '12pt', 'figure_align': 'H', - 'preamble': r'\newcommand{\githash}{' + current_commit_hash + '}', + 'preamble': rf''' + \newcommand{{\githash}}{{{current_commit_hash}}} + \newcommand{{\gitcommittime}}{{{current_commit_time}}} + \newcommand{{\doctitle}}{{{otcdocs_doc_title}}} + \newcommand{{\servicetitle}}{{{otcdocs_service_title}}} + ''', 'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm' }