diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index 76dd88d..90ac41c 100755 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -129,6 +129,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' } \ No newline at end of file diff --git a/doc/best-practice/source/conf.py b/doc/best-practice/source/conf.py index 89ab4a4..41a713c 100644 --- a/doc/best-practice/source/conf.py +++ b/doc/best-practice/source/conf.py @@ -129,6 +129,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' } \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index 8f859be..0357e8a 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -125,6 +125,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' } \ No newline at end of file diff --git a/umn/source/conf.py b/umn/source/conf.py index 7a3fc97..230285f 100644 --- a/umn/source/conf.py +++ b/umn/source/conf.py @@ -129,6 +129,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' } \ No newline at end of file