Merge pull request #1692 from orbisvicis/master

Class "BuildDoc": support "copyright"
This commit is contained in:
Georg Brandl 2015-01-26 08:40:55 +01:00
commit 81ffb36772

View File

@ -77,6 +77,7 @@ class BuildDoc(Command):
('today=', None, 'How to format the current date, used as the '
'replacement for |today|'),
('link-index', 'i', 'Link index.html to the master doc'),
('copyright', None, 'The copyright string'),
]
boolean_options = ['fresh-env', 'all-files', 'link-index']
@ -91,6 +92,7 @@ class BuildDoc(Command):
self.today = ''
self.config_dir = None
self.link_index = False
self.copyright = ''
def _guess_source_dir(self):
for guess in ('doc', 'docs'):
@ -152,6 +154,8 @@ class BuildDoc(Command):
confoverrides['release'] = self.release
if self.today:
confoverrides['today'] = self.today
if self.copyright:
confoverrides['copyright'] = self.copyright
app = Sphinx(self.source_dir, self.config_dir,
self.builder_target_dir, self.doctree_dir,
self.builder, confoverrides, status_stream,