Debian Codegraph @

doc/source/conf.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 #
3 # pysynphot documentation build configuration file, created by
4 # Warren J. Hack on Fri Sep 28 2012.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # Note that not all possible configuration values are present in this
9 # autogenerated file.
10 #
11 # All configuration values have a default; values that are commented out
12 # serve to show the default.
13 from pkg_resources import get_distribution
14
15 # work around that annoying warning that pysynphot always prints
16 import warnings
17 with warnings.catch_warnings():
18 warnings.simplefilter('ignore')
19 import pysynphot
20
21
22 # If extensions (or modules to document with autodoc) are in another directory,
23 # add these directories to sys.path here. If the directory is relative to the
24 # documentation root, use os.path.abspath to make it absolute, like shown here.
25 #sys.path.append(os.path.abspath('.'))
26
27 # -- General configuration -----------------------------------------------------
28
29 # Add any Sphinx extension module names here, as strings. They can be extensions
30 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
31 extensions = [
32 'sphinx.ext.autodoc',
33 'sphinx.ext.napoleon',
34 'sphinx.ext.inheritance_diagram',
35 'sphinx.ext.intersphinx',
36 'sphinx.ext.mathjax']
37
38 # Add any paths that contain templates here, relative to this directory.
39 templates_path = ['_templates']
40
41 # The suffix of source filenames.
42 source_suffix = '.rst'
43
44 # The encoding of source files.
45 #source_encoding = 'utf-8'
46
47 # The master toctree document.
48 master_doc = 'index'
49
50 # General information about the project.
51 project = u'pysynphot'
52 copyright = u'2019, STScI'
53
54 # The version info for the project you're documenting, acts as replacement for
55 # |version| and |release|, also used in various other places throughout the
56 # built documents.
57 #
58 # The full version, including alpha/beta/rc tags.
59 release = get_distribution('pysynphot').version
60 # The short X.Y version.
61 version = '.'.join(release.split('.')[:2])
62
63 # The language for content autogenerated by Sphinx. Refer to documentation
64 # for a list of supported languages.
65 #language = None
66
67 # There are two options for replacing |today|: either, you set today to some
68 # non-false value, then it is used:
69 #today = ''
70 # Else, today_fmt is used as the format for a strftime call.
71 #today_fmt = '%B %d, %Y'
72
73 # List of documents that shouldn't be included in the build.
74 #unused_docs = []
75
76 # List of directories, relative to source directory, that shouldn't be searched
77 # for source files.
78 exclude_trees = []
79
80 # The reST default role (used for this markup: `text`) to use for all documents.
81 default_role = 'py:obj'
82
83 # If true, '()' will be appended to :func: etc. cross-reference text.
84 #add_function_parentheses = True
85
86 # If true, the current module name will be prepended to all description
87 # unit titles (such as .. function::).
88 #add_module_names = True
89
90 # If true, sectionauthor and moduleauthor directives will be shown in the
91 # output. They are ignored by default.
92 #show_authors = False
93
94 # The name of the Pygments (syntax highlighting) style to use.
95 pygments_style = 'sphinx'
96
97 # A list of ignored prefixes for module index sorting.
98 modindex_common_prefix = ['pysynphot.']
99
100
101 # -- Options for HTML output ---------------------------------------------------
102
103 # The theme to use for HTML and HTML Help pages. Major themes that come with
104 # Sphinx are currently 'default' and 'sphinxdoc'.
105 html_theme = 'sphinx_rtd_theme'
106
107 # Theme options are theme-specific and customize the look and feel of a theme
108 # further. For a list of options available for each theme, see the
109 # documentation.
110 #html_theme_options = {}
111
112 # Add any paths that contain custom themes here, relative to this directory.
113 #html_theme_path = []
114
115 # The name for this set of Sphinx documents. If None, it defaults to
116 # "<project> v<release> documentation".
117 #html_title = None
118
119 # A shorter title for the navigation bar. Default is the same as html_title.
120 #html_short_title = None
121
122 # The name of an image file (relative to this directory) to place at the top
123 # of the sidebar.
124 html_logo = '_static/stsci_logo.png'
125
126 # The name of an image file (within the static path) to use as favicon of the
127 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
128 # pixels large.
129 #html_favicon = None
130
131 # Add any paths that contain custom static files (such as style sheets) here,
132 # relative to this directory. They are copied after the builtin static files,
133 # so a file named "default.css" will overwrite the builtin "default.css".
134 html_static_path = ['_static']
135
136 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
137 # using the given strftime format.
138 #html_last_updated_fmt = '%b %d, %Y'
139
140 # If true, SmartyPants will be used to convert quotes and dashes to
141 # typographically correct entities.
142 #html_use_smartypants = True
143
144 # Custom sidebar templates, maps document names to template names.
145 #html_sidebars = {}
146
147 # Additional templates that should be rendered to pages, maps page names to
148 # template names.
149 #html_additional_pages = {}
150
151 # If false, no module index is generated.
152 html_use_modindex = False
153
154 # If false, no index is generated.
155 html_use_index = False
156
157 # If true, the index is split into individual pages for each letter.
158 #html_split_index = False
159
160 # If true, links to the reST sources are added to the pages.
161 #html_show_sourcelink = True
162
163 # If true, an OpenSearch description file will be output, and all pages will
164 # contain a <link> tag referring to it. The value of this option must be the
165 # base URL from which the finished HTML is served.
166 #html_use_opensearch = ''
167
168 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
169 #html_file_suffix = ''
170
171 # Output file base name for HTML help builder.
172 htmlhelp_basename = 'pysynphotdoc'
173
174
175 # -- Options for LaTeX output --------------------------------------------------
176
177 # The paper size ('letter' or 'a4').
178 #latex_paper_size = 'letter'
179
180 # The font size ('10pt', '11pt' or '12pt').
181 #latex_font_size = '10pt'
182
183 # Grouping the document tree into LaTeX files. List of tuples
184 # (source start file, target name, title, author, documentclass [howto/manual]).
185 latex_documents = [
186 ('index', 'pysynphot.tex', u'PySynphot Documentation',
187 u'STScI', 'manual'),
188 ]
189
190 # The name of an image file (relative to this directory) to place at the top of
191 # the title page.
192 #latex_logo = None
193
194 # For "manual" documents, if this is true, then toplevel headings are parts,
195 # not chapters.
196 #latex_use_parts = False
197
198 # Additional stuff for the LaTeX preamble.
199 #latex_preamble = ''
200
201 # Documents to append as an appendix to all manuals.
202 #latex_appendices = []
203
204 # If false, no module index is generated.
205 #latex_use_modindex = True
206
207
208 # Example configuration for intersphinx: refer to the Python standard library.
209 intersphinx_mapping = {
210 'python': ('http://docs.python.org/', None),
211 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
212 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
213 'matplotlib': ('http://matplotlib.org/', None),
214 'astropy': ('http://docs.astropy.org/en/stable/', None)
215 }