|
55 | 55 | version_file = open(os.path.join('..', 'pyqtdeploy', 'version.py'))
|
56 | 56 | release = version_file.read().strip().split('\n')[0].split()[-1][1:-1]
|
57 | 57 | version_file.close()
|
| 58 | +del version_file |
58 | 59 | # The short X.Y version.
|
59 |
| -version = release.split('-')[0] |
| 60 | +version_parts = release.split('.') |
| 61 | +if version_parts[-1].startswith('dev'): |
| 62 | + del version_parts[-1] |
| 63 | +version = '.'.join(version_parts) |
| 64 | +del version_parts |
60 | 65 |
|
61 | 66 | # The language for content autogenerated by Sphinx. Refer to documentation
|
62 | 67 | # for a list of supported languages.
|
|
99 | 104 |
|
100 | 105 | # -- Options for HTML output ----------------------------------------------
|
101 | 106 |
|
102 |
| -# The theme to use for HTML and HTML Help pages. See the documentation for |
103 |
| -# a list of builtin themes. |
104 |
| -html_theme = 'classic' |
105 |
| - |
106 |
| -# Theme options are theme-specific and customize the look and feel of a theme |
107 |
| -# further. For a list of options available for each theme, see the |
108 |
| -# documentation. |
109 |
| -#html_theme_options = {} |
| 107 | +# The theme to use for HTML and HTML Help pages. |
| 108 | +html_theme = 'riverbank' |
110 | 109 |
|
111 | 110 | # Add any paths that contain custom themes here, relative to this directory.
|
112 |
| -#html_theme_path = [] |
| 111 | +html_theme_path = ['.'] |
113 | 112 |
|
114 | 113 | # The name for this set of Sphinx documents. If None, it defaults to
|
115 | 114 | # "<project> v<release> documentation".
|
116 |
| -#html_title = None |
117 |
| - |
118 |
| -# A shorter title for the navigation bar. Default is the same as html_title. |
119 |
| -#html_short_title = None |
120 |
| - |
121 |
| -# The name of an image file (relative to this directory) to place at the top |
122 |
| -# of the sidebar. |
123 |
| -html_logo = 'static/logo.png' |
124 |
| - |
125 |
| -# The name of an image file (within the static path) to use as favicon of the |
126 |
| -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
127 |
| -# pixels large. |
128 |
| -html_favicon = 'static/logo_tn.ico' |
129 |
| - |
130 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
131 |
| -# relative to this directory. They are copied after the builtin static files, |
132 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
133 |
| -html_static_path = ['static'] |
134 |
| - |
135 |
| -# Add any extra paths that contain custom files (such as robots.txt or |
136 |
| -# .htaccess) here, relative to this directory. These files are copied |
137 |
| -# directly to the root of the documentation. |
138 |
| -#html_extra_path = [] |
139 |
| - |
140 |
| -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
141 |
| -# using the given strftime format. |
142 |
| -#html_last_updated_fmt = '%b %d, %Y' |
143 |
| - |
144 |
| -# If true, SmartyPants will be used to convert quotes and dashes to |
145 |
| -# typographically correct entities. |
146 |
| -#html_use_smartypants = True |
147 |
| - |
148 |
| -# Custom sidebar templates, maps document names to template names. |
149 |
| -#html_sidebars = {} |
150 |
| - |
151 |
| -# Additional templates that should be rendered to pages, maps page names to |
152 |
| -# template names. |
153 |
| -#html_additional_pages = {} |
154 |
| - |
155 |
| -# If false, no module index is generated. |
156 |
| -#html_domain_indices = True |
157 |
| - |
158 |
| -# If false, no index is generated. |
159 |
| -#html_use_index = True |
160 |
| - |
161 |
| -# If true, the index is split into individual pages for each letter. |
162 |
| -#html_split_index = False |
163 |
| - |
164 |
| -# If true, links to the reST sources are added to the pages. |
165 |
| -#html_show_sourcelink = True |
166 |
| - |
167 |
| -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
168 |
| -#html_show_sphinx = True |
169 |
| - |
170 |
| -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
171 |
| -#html_show_copyright = True |
172 |
| - |
173 |
| -# If true, an OpenSearch description file will be output, and all pages will |
174 |
| -# contain a <link> tag referring to it. The value of this option must be the |
175 |
| -# base URL from which the finished HTML is served. |
176 |
| -#html_use_opensearch = '' |
177 |
| - |
178 |
| -# This is the file name suffix for HTML files (e.g. ".xhtml"). |
179 |
| -#html_file_suffix = None |
| 115 | +html_title = '%s v%s User Guide' % (project, release) |
180 | 116 |
|
181 | 117 | # Output file base name for HTML help builder.
|
182 | 118 | htmlhelp_basename = 'pyqtdeploydoc'
|
183 |
| - |
184 |
| - |
185 |
| -# -- Options for LaTeX output --------------------------------------------- |
186 |
| - |
187 |
| -latex_elements = { |
188 |
| -# The paper size ('letterpaper' or 'a4paper'). |
189 |
| -#'papersize': 'letterpaper', |
190 |
| - |
191 |
| -# The font size ('10pt', '11pt' or '12pt'). |
192 |
| -#'pointsize': '10pt', |
193 |
| - |
194 |
| -# Additional stuff for the LaTeX preamble. |
195 |
| -#'preamble': '', |
196 |
| -} |
197 |
| - |
198 |
| -# Grouping the document tree into LaTeX files. List of tuples |
199 |
| -# (source start file, target name, title, |
200 |
| -# author, documentclass [howto, manual, or own class]). |
201 |
| -latex_documents = [ |
202 |
| - ('index', 'pyqtdeploy.tex', 'pyqtdeploy Documentation', |
203 |
| - 'Riverbank Computing Limited', 'manual'), |
204 |
| -] |
205 |
| - |
206 |
| -# The name of an image file (relative to this directory) to place at the top of |
207 |
| -# the title page. |
208 |
| -#latex_logo = None |
209 |
| - |
210 |
| -# For "manual" documents, if this is true, then toplevel headings are parts, |
211 |
| -# not chapters. |
212 |
| -#latex_use_parts = False |
213 |
| - |
214 |
| -# If true, show page references after internal links. |
215 |
| -#latex_show_pagerefs = False |
216 |
| - |
217 |
| -# If true, show URL addresses after external links. |
218 |
| -#latex_show_urls = False |
219 |
| - |
220 |
| -# Documents to append as an appendix to all manuals. |
221 |
| -#latex_appendices = [] |
222 |
| - |
223 |
| -# If false, no module index is generated. |
224 |
| -#latex_domain_indices = True |
225 |
| - |
226 |
| - |
227 |
| -# -- Options for manual page output --------------------------------------- |
228 |
| - |
229 |
| -# One entry per manual page. List of tuples |
230 |
| -# (source start file, name, description, authors, manual section). |
231 |
| -man_pages = [ |
232 |
| - ('index', 'pyqtdeploy', 'pyqtdeploy Documentation', |
233 |
| - ['Riverbank Computing Limited'], 1) |
234 |
| -] |
235 |
| - |
236 |
| -# If true, show URL addresses after external links. |
237 |
| -#man_show_urls = False |
238 |
| - |
239 |
| - |
240 |
| -# -- Options for Texinfo output ------------------------------------------- |
241 |
| - |
242 |
| -# Grouping the document tree into Texinfo files. List of tuples |
243 |
| -# (source start file, target name, title, author, |
244 |
| -# dir menu entry, description, category) |
245 |
| -texinfo_documents = [ |
246 |
| - ('index', 'pyqtdeploy', 'pyqtdeploy Documentation', |
247 |
| - 'Riverbank Computing Limited', 'pyqtdeploy', 'One line description of project.', |
248 |
| - 'Miscellaneous'), |
249 |
| -] |
250 |
| - |
251 |
| -# Documents to append as an appendix to all manuals. |
252 |
| -#texinfo_appendices = [] |
253 |
| - |
254 |
| -# If false, no module index is generated. |
255 |
| -#texinfo_domain_indices = True |
256 |
| - |
257 |
| -# How to display URL addresses: 'footnote', 'no', or 'inline'. |
258 |
| -#texinfo_show_urls = 'footnote' |
259 |
| - |
260 |
| -# If true, do not generate a @detailmenu in the "Top" node's menu. |
261 |
| -#texinfo_no_detailmenu = False |
0 commit comments