Skip to content

Commit fe821ec

Browse files
committed
avoid repeating author, project in sphinx config file
1 parent 14762ba commit fe821ec

2 files changed

Lines changed: 8 additions & 19 deletions

File tree

astropy/sphinx/conf.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,7 @@
199199
#latex_domain_indices = True
200200

201201

202-
# -- Options for manual page output ------------------------------------------
203-
204-
# One entry per manual page. List of tuples
205-
# (source start file, name, description, authors, manual section).
206-
man_pages = [
207-
('index', 'astropy', u'Astropy Documentation',
208-
[u'Erik Tollerud, Thomas Robitaille, Perry Greenfield, ' +
209-
u'and the Astropy Collaboration'], 1)
210-
]
202+
# -- Other --------------------------------------------------------------------
211203

212204
# Example configuration for intersphinx: refer to the Python standard library.
213205
intersphinx_mapping = {

docs/conf.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
# -- General configuration -----------------------------------------------------
4343

4444
# General information about the project.
45-
project = u'Astropy'
46-
copyright = u'2012, The Astropy Collaboration'
45+
project = u'AstroPy'
46+
author = u'The AstroPy Collaboration'
47+
copyright = u'2012, ' + author
4748

4849
# The version info for the project you're documenting, acts as replacement for
4950
# |version| and |release|, also used in various other places throughout the
@@ -131,10 +132,8 @@
131132

132133
# Grouping the document tree into LaTeX files. List of tuples
133134
# (source start file, target name, title, author, documentclass [howto/manual]).
134-
latex_documents = [
135-
('index', 'Astropy.tex', u'Astropy Documentation',
136-
u'Erik Tollerud, Thomas Robitaille, Perry Greenfield, and the Astropy Collaboration', 'manual'),
137-
]
135+
latex_documents = [('index', project + '.tex', project + u' Documentation',
136+
author, 'manual')]
138137

139138
# The name of an image file (relative to this directory) to place at the top of
140139
# the title page.
@@ -145,10 +144,8 @@
145144

146145
# One entry per manual page. List of tuples
147146
# (source start file, name, description, authors, manual section).
148-
man_pages = [
149-
('index', 'astropy', u'Astropy Documentation',
150-
[u'Erik Tollerud, Thomas Robitaille, Perry Greenfield, and the Astropy Collaboration'], 1)
151-
]
147+
man_pages = [('index', project.lower(), project + u' Documentation',
148+
[author], 1)]
152149

153150
# This is added to the end of RST files - a good place to put substitutions to
154151
# be used globally.

0 commit comments

Comments
 (0)