|
1 | 1 | import sphinx_rtd_theme |
2 | 2 |
|
| 3 | +import pkg_resources |
| 4 | + |
3 | 5 | # -*- coding: utf-8 -*- |
4 | 6 | # |
5 | 7 | # Pyro documentation build configuration file, created by |
|
22 | 24 | # import sys |
23 | 25 | # sys.path.insert(0, os.path.abspath('.')) |
24 | 26 |
|
25 | | - |
26 | 27 | # -- General configuration ------------------------------------------------ |
27 | 28 |
|
28 | 29 | # If your documentation needs a minimal Sphinx version, state it here. |
|
32 | 33 | # Add any Sphinx extension module names here, as strings. They can be |
33 | 34 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
34 | 35 | # ones. |
35 | | -extensions = ['sphinx.ext.intersphinx', |
36 | | - 'sphinx.ext.todo', |
37 | | - 'sphinx.ext.mathjax', |
38 | | - 'sphinx.ext.ifconfig', |
39 | | - 'sphinx.ext.viewcode', |
40 | | - 'sphinx.ext.githubpages', |
41 | | - 'sphinx.ext.autodoc' |
42 | | - ] |
| 36 | +extensions = [ |
| 37 | + 'sphinx.ext.intersphinx', # |
| 38 | + 'sphinx.ext.todo', # |
| 39 | + 'sphinx.ext.mathjax', # |
| 40 | + 'sphinx.ext.ifconfig', # |
| 41 | + 'sphinx.ext.viewcode', # |
| 42 | + 'sphinx.ext.githubpages', # |
| 43 | + 'sphinx.ext.autodoc', |
| 44 | +] |
43 | 45 |
|
44 | 46 | # Add any paths that contain templates here, relative to this directory. |
45 | 47 | templates_path = ['_templates'] |
|
63 | 65 | # built documents. |
64 | 66 | # |
65 | 67 | # The short X.Y version. |
66 | | -version = u'0.0.1' |
| 68 | +version = pkg_resources.require('pyro-ppl')[0].version |
67 | 69 | # The full version, including alpha/beta/rc tags. |
68 | 70 | release = u'0.0.1' |
69 | 71 |
|
|
91 | 93 | # -- Options for HTML output ---------------------------------------------- |
92 | 94 |
|
93 | 95 | # logo |
94 | | -html_logo = '../img/pyro_logo_small.png' |
| 96 | +html_logo = '_static/img/pyro_logo_wide.png' |
95 | 97 |
|
96 | 98 | # The theme to use for HTML and HTML Help pages. See the documentation for |
97 | 99 | # a list of builtin themes. |
|
111 | 113 | # Add any paths that contain custom static files (such as style sheets) here, |
112 | 114 | # relative to this directory. They are copied after the builtin static files, |
113 | 115 | # so a file named "default.css" will overwrite the builtin "default.css". |
114 | | -html_static_path = [] |
115 | | - |
| 116 | +html_static_path = ['_static'] |
| 117 | +html_style = 'css/pyro.css' |
116 | 118 |
|
117 | 119 | # -- Options for HTMLHelp output ------------------------------------------ |
118 | 120 |
|
119 | 121 | # Output file base name for HTML help builder. |
120 | 122 | htmlhelp_basename = 'Pyrodoc' |
121 | 123 |
|
122 | | - |
123 | 124 | # -- Options for LaTeX output --------------------------------------------- |
124 | 125 |
|
125 | 126 | latex_elements = { |
|
144 | 145 | # (source start file, target name, title, |
145 | 146 | # author, documentclass [howto, manual, or own class]). |
146 | 147 | latex_documents = [ |
147 | | - (master_doc, 'Pyro.tex', u'Pyro Documentation', |
148 | | - u'Uber AI Labs', 'manual'), |
| 148 | + (master_doc, 'Pyro.tex', u'Pyro Documentation', u'Uber AI Labs', 'manual'), |
149 | 149 | ] |
150 | 150 |
|
151 | | - |
152 | 151 | # -- Options for manual page output --------------------------------------- |
153 | 152 |
|
154 | 153 | # One entry per manual page. List of tuples |
155 | 154 | # (source start file, name, description, authors, manual section). |
156 | | -man_pages = [ |
157 | | - (master_doc, 'pyro', u'Pyro Documentation', |
158 | | - [author], 1) |
159 | | -] |
160 | | - |
| 155 | +man_pages = [(master_doc, 'pyro', u'Pyro Documentation', [author], 1)] |
161 | 156 |
|
162 | 157 | # -- Options for Texinfo output ------------------------------------------- |
163 | 158 |
|
164 | 159 | # Grouping the document tree into Texinfo files. List of tuples |
165 | 160 | # (source start file, target name, title, author, |
166 | 161 | # dir menu entry, description, category) |
167 | 162 | texinfo_documents = [ |
168 | | - (master_doc, 'Pyro', u'Pyro Documentation', |
169 | | - author, 'Pyro', 'One line description of project.', |
170 | | - 'Miscellaneous'), |
| 163 | + (master_doc, 'Pyro', u'Pyro Documentation', author, 'Pyro', 'One line description of project.', 'Miscellaneous'), |
171 | 164 | ] |
172 | 165 |
|
173 | | - |
174 | 166 | # Example configuration for intersphinx: refer to the Python standard library. |
175 | 167 | intersphinx_mapping = {'https://docs.python.org/': None} |
176 | 168 |
|
177 | | - |
178 | 169 | # document class constructors (__init__ methods): |
179 | 170 | """ comment out this functionality for now; |
180 | 171 | def skip(app, what, name, obj, skip, options): |
|
0 commit comments