diff --git a/templates/conf.py b/templates/conf.py index d7d040e6..632bb34b 100644 --- a/templates/conf.py +++ b/templates/conf.py @@ -106,6 +106,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 @@ -125,3 +126,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' +}