Skip to content

Commit e5dbbe6

Browse files
committed
Fix DOI in PDF output
1 parent 8e65496 commit e5dbbe6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def setup(app):
103103

104104

105105
# -- LATEX ---------------------------------------------------------------
106+
# Workaround to add some brackets around the release for PDF output
107+
release = '({})'.format(release)
106108

107109
latex_macros += r'''
108110
\makeatletter
@@ -115,7 +117,7 @@ def setup(app):
115117
\fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}}
116118
\fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}}
117119
\fancyhead[LE,RO]{{\py@HeaderFamily
118-
\href{https://sfs.readthedocs.io/}{\color{black}https://sfs.readthedocs.io/} \hfill (\py@release)}}
120+
\href{https://sfs.readthedocs.io/}{\color{black}https://sfs.readthedocs.io/} \hfill \py@release}}
119121
\renewcommand{\headrulewidth}{0.4pt}
120122
\renewcommand{\footrulewidth}{0.4pt}
121123
% define chaptermark with \@chappos when \@chappos is available for Japanese
@@ -141,7 +143,7 @@ def setup(app):
141143
'preamble': latex_macros, # command definitions
142144
'figure_align': 'htbp',
143145
'sphinxsetup': 'TitleColor={rgb}{0,0,0}, verbatimwithframe=false, VerbatimColor={rgb}{.96,.96,.96}',
144-
'releasename': '\href{https://doi.org/10.5281/zenodo.1112451}{\color{black}doi:10.5281/zenodo.1112451}',
146+
'releasename': '\href{https://doi.org/10.5281/zenodo.2589179}{\color{black}doi:10.5281/zenodo.2589179}',
145147
}
146148
# Grouping the document tree into LaTeX files. List of tuples
147149
# (source start file, target name, title,

0 commit comments

Comments
 (0)