mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
BuildDoc: remove "author" and "date" options
This commit is contained in:
parent
ffe331d822
commit
fdad400ccd
@ -78,9 +78,6 @@ class BuildDoc(Command):
|
||||
'replacement for |today|'),
|
||||
('link-index', 'i', 'Link index.html to the master doc'),
|
||||
('copyright', None, 'The copyright string'),
|
||||
('author', None, 'The documented project\'s author'),
|
||||
('date', None, 'Dates of first publication and major revisions'),
|
||||
|
||||
]
|
||||
boolean_options = ['fresh-env', 'all-files', 'link-index']
|
||||
|
||||
@ -96,8 +93,6 @@ class BuildDoc(Command):
|
||||
self.config_dir = None
|
||||
self.link_index = False
|
||||
self.copyright = ''
|
||||
self.author = ''
|
||||
self.date = ''
|
||||
|
||||
def _guess_source_dir(self):
|
||||
for guess in ('doc', 'docs'):
|
||||
@ -142,8 +137,6 @@ class BuildDoc(Command):
|
||||
self.mkpath(self.doctree_dir)
|
||||
self.builder_target_dir = os.path.join(self.build_dir, self.builder)
|
||||
self.mkpath(self.builder_target_dir)
|
||||
if not self.copyright and (self.author or self.date):
|
||||
self.copyright = ", ".join((self.date, self.author))
|
||||
|
||||
def run(self):
|
||||
if not color_terminal():
|
||||
|
Loading…
Reference in New Issue
Block a user