|
31 | 31 |
|
32 | 32 | # Add any Sphinx extension module names here, as strings. They can be extensions |
33 | 33 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
34 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', |
35 | | - 'sphinx.ext.napoleon'] |
| 34 | +extensions = [ |
| 35 | + 'sphinx.ext.autodoc', |
| 36 | + 'sphinx.ext.napoleon', |
| 37 | + 'sphinx.ext.intersphinx', |
| 38 | + 'm2r', |
| 39 | +] |
36 | 40 |
|
37 | 41 | # Add any paths that contain templates here, relative to this directory. |
38 | 42 | templates_path = ['_templates'] |
39 | 43 |
|
40 | | -# The suffix of source filenames. |
41 | | -source_suffix = '.rst' |
| 44 | +# The suffix(es) of source filenames. |
| 45 | +# You can specify multiple suffix as a list of string: |
| 46 | +# |
| 47 | +source_suffix = ['.rst', '.md'] |
42 | 48 |
|
43 | 49 | # The encoding of source files. |
44 | 50 | # source_encoding = 'utf-8-sig' |
|
47 | 53 | master_doc = 'index' |
48 | 54 |
|
49 | 55 | # General information about the project. |
50 | | -project = u'SrFit' |
| 56 | +project = u'diffpy.srfit' |
51 | 57 | copyright = u'%Y, Brookhaven National Laboratory' |
52 | 58 |
|
53 | 59 | # The version info for the project you're documenting, acts as replacement for |
|
107 | 113 |
|
108 | 114 | # The theme to use for HTML and HTML Help pages. See the documentation for |
109 | 115 | # a list of builtin themes. |
110 | | -html_theme = 'default' |
| 116 | +html_theme = 'sphinx_py3doc_enhanced_theme' |
111 | 117 |
|
112 | 118 | # Theme options are theme-specific and customize the look and feel of a theme |
113 | 119 | # further. For a list of options available for each theme, see the |
114 | 120 | # documentation. |
115 | | -# html_theme_options = {} |
116 | | -html_theme_options = {'collapsiblesidebar' : 'true'} |
| 121 | +html_theme_options = { |
| 122 | + 'collapsiblesidebar' : 'true', |
| 123 | + 'navigation_with_keys' : 'true', |
| 124 | +} |
117 | 125 |
|
118 | 126 | # Add any paths that contain custom themes here, relative to this directory. |
119 | 127 | # html_theme_path = [] |
|
181 | 189 | # html_file_suffix = None |
182 | 190 |
|
183 | 191 | # Output file base name for HTML help builder. |
184 | | -htmlhelp_basename = 'SrFitdoc' |
| 192 | +htmlhelp_basename = 'srfitdoc' |
185 | 193 |
|
186 | 194 |
|
187 | 195 | # -- Options for LaTeX output -------------------------------------------------- |
|
200 | 208 | # Grouping the document tree into LaTeX files. List of tuples |
201 | 209 | # (source start file, target name, title, author, documentclass [howto/manual]). |
202 | 210 | latex_documents = [ |
203 | | - ('index', 'SrFit_manual.tex', u'SrFit Documentation', |
| 211 | + ('index', 'srfit_manual.tex', u'diffpy.srfit documentation', |
204 | 212 | ab_authors, 'manual'), |
205 | 213 | ] |
206 | 214 |
|
|
230 | 238 | # One entry per manual page. List of tuples |
231 | 239 | # (source start file, name, description, authors, manual section). |
232 | 240 | man_pages = [ |
233 | | - ('index', 'srfit', u'SrFit Documentation', |
| 241 | + ('index', 'diffpy.srfit', u'diffpy.srfit documentation', |
234 | 242 | ab_authors, 1) |
235 | 243 | ] |
236 | 244 |
|
|
244 | 252 | # (source start file, target name, title, author, |
245 | 253 | # dir menu entry, description, category) |
246 | 254 | texinfo_documents = [ |
247 | | - ('index', 'SrFit', u'SrFit Documentation', |
248 | | - ab_authors, 'SrFit', 'One line description of project.', |
| 255 | + ('index', 'diffpy.srfit', u'diffpy.srfit documentation', |
| 256 | + ab_authors, 'diffpy.srfit', 'One line description of project.', |
249 | 257 | 'Miscellaneous'), |
250 | 258 | ] |
251 | 259 |
|
|
260 | 268 |
|
261 | 269 |
|
262 | 270 | # Example configuration for intersphinx: refer to the Python standard library. |
263 | | -# intersphinx_mapping = {'http://docs.python.org/': None} |
| 271 | +intersphinx_mapping = { |
| 272 | + 'numpy': ('https://docs.scipy.org/doc/numpy', None), |
| 273 | + 'python' : ('https://docs.python.org/3.7', None), |
| 274 | +} |
0 commit comments