Skip to content

Commit feb0d16

Browse files
Adopt the (work-in-progress) riverbank theme for the docs.
Build HTML docs by default.
1 parent 1816842 commit feb0d16

File tree

8 files changed

+54
-406
lines changed

8 files changed

+54
-406
lines changed

doc/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
1919
# the i18n builder cannot share the environment and doctrees with the others
2020
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2121

22-
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
22+
.PHONY: default help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
23+
24+
default: html
2325

2426
help:
2527
@echo "Please use \`make <target>' where <target> is one of"

doc/conf.py

Lines changed: 10 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@
5555
version_file = open(os.path.join('..', 'pyqtdeploy', 'version.py'))
5656
release = version_file.read().strip().split('\n')[0].split()[-1][1:-1]
5757
version_file.close()
58+
del version_file
5859
# 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
6065

6166
# The language for content autogenerated by Sphinx. Refer to documentation
6267
# for a list of supported languages.
@@ -99,163 +104,15 @@
99104

100105
# -- Options for HTML output ----------------------------------------------
101106

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'
110109

111110
# Add any paths that contain custom themes here, relative to this directory.
112-
#html_theme_path = []
111+
html_theme_path = ['.']
113112

114113
# The name for this set of Sphinx documents. If None, it defaults to
115114
# "<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)
180116

181117
# Output file base name for HTML help builder.
182118
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

doc/riverbank/layout.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% extends "classic/layout.html" %}
2+
{% set favicon = "logo_tn.png" %}
3+
{% set logo = "logo.png" %}
4+
{% set show_source = False %}
File renamed without changes.
File renamed without changes.

doc/riverbank/static/riverbank.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@import url("classic.css");
2+
3+
div.body h1,
4+
div.body h2 {
5+
border-radius: 10px;
6+
margin-right: 0px;
7+
}
8+
9+
h1 a:visited,
10+
h2 a:visited {
11+
color: white;
12+
text-decoration: none;
13+
}
14+
15+
.classtable {
16+
width: 100%;
17+
}

doc/riverbank/theme.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[theme]
2+
inherit = classic
3+
stylesheet = riverbank.css
4+
5+
[options]
6+
footerbgcolor = white
7+
footertextcolor = black
8+
sidebarbgcolor = white
9+
sidebartextcolor = black
10+
sidebarlinkcolor = #4186cb
11+
relbarbgcolor = white
12+
relbartextcolor = black
13+
relbarlinkcolor = #4186cb
14+
headbgcolor = #4186cb
15+
headtextcolor = white
16+
headlinkcolor = #4186cb
17+
linkcolor = #4186cb
18+
visitedlinkcolor = #4186cb
19+
20+
bodyfont = Copperplate / Copperplate Gothic Light, sans-serif

0 commit comments

Comments
 (0)