PDF Preparations
All checks were successful
gl/check check status: success (daedb286e98b8aea93cd89296030af674c879efb)
gl/gate gate status: success (daedb286e98b8aea93cd89296030af674c879efb)

This commit is contained in:
2024-10-17 12:19:42 +00:00
parent e39b2f1a2c
commit daedb286e9
2 changed files with 14 additions and 0 deletions

View File

@ -120,6 +120,7 @@ html_title = "{{ title }}"
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
templates_path = ['_templates']
# Do not include sources into the rendered results
html_copy_source = False
@ -139,3 +140,11 @@ repo = Repo(search_parent_directories=True)
commit = repo.head.commit
current_commit_hash = commit.hexsha
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
latex_elements = {
'papersize': 'a4paper',
'pointsize': '12pt',
'figure_align': 'H',
'preamble': r'\newcommand{\githash}{' + current_commit_hash + '}',
'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm'
}