mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#294: do not ignore an explicit `today
` config value in a LaTeX build.
This commit is contained in:
parent
b9294de041
commit
7b09f95cfa
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
||||
Release 0.6.4 (in development)
|
||||
==============================
|
||||
|
||||
* #294: do not ignore an explicit ``today`` config value in a
|
||||
LaTeX build.
|
||||
|
||||
* The ``alt`` text of inheritance diagrams is now much cleaner.
|
||||
|
||||
* Ignore images in section titles when generating link captions.
|
||||
|
@ -178,8 +178,6 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
'pointsize': builder.config.latex_font_size,
|
||||
# if empty, the title is set to the first section title
|
||||
'title': document.settings.title,
|
||||
'date': ustrftime(builder.config.today_fmt
|
||||
or _('%B %d, %Y')),
|
||||
'release': builder.config.release,
|
||||
'author': document.settings.author,
|
||||
'releasename': _('Release'),
|
||||
@ -187,6 +185,11 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
'modindexname': _('Module Index'),
|
||||
'indexname': _('Index'),
|
||||
})
|
||||
if builder.config.today:
|
||||
self.elements['date'] = builder.config.today
|
||||
else:
|
||||
self.elements['date'] = ustrftime(builder.config.today_fmt
|
||||
or _('%B %d, %Y'))
|
||||
if builder.config.latex_logo:
|
||||
self.elements['logo'] = '\\includegraphics{%s}\\par' % \
|
||||
path.basename(builder.config.latex_logo)
|
||||
|
Loading…
Reference in New Issue
Block a user