File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 6060# The short X.Y version.
6161version = u'0.1-pre1'
6262# The full version, including alpha/beta/rc tags.
63- release = u'0.1-pre1- %s' % time .strftime ('%Y%m%d' )
63+ release = u'%s- %s' % ( version , time .strftime ('%Y%m%d' ) )
6464
6565# The language for content autogenerated by Sphinx. Refer to documentation
6666# for a list of supported languages.
228228# The font size ('10pt', '11pt' or '12pt').
229229#'pointsize': '10pt',
230230
231- # Additional stuff for the LaTeX preamble.
232- 'preamble' : '\\ usepackage{draftwatermark}\\ SetWatermarkScale{.45}\\ SetWatermarkText{DRAFT v%s}' % release
233-
234231# Latex figure (float) alignment
235232#'figure_align': 'htbp',
236233}
237234
235+ # Release numbers with a qualifier (ex. '-rc', '-pre') get a watermark.
236+ if '-' in version :
237+ latex_elements ['preamble' ] = '\\ usepackage{draftwatermark}\\ SetWatermarkScale{.45}\\ SetWatermarkText{DRAFT v%s}' % release
238+
239+
238240# Grouping the document tree into LaTeX files. List of tuples
239241# (source start file, target name, title,
240242# author, documentclass [howto, manual, or own class]).
You can’t perform that action at this time.
0 commit comments