Skip to content

Commit 59ebdc1

Browse files
committed
Changed PythonQwt theme to classic
1 parent 7463afb commit 59ebdc1

1 file changed

Lines changed: 49 additions & 45 deletions

File tree

doc/conf.py

Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,36 @@
1515
# If extensions (or modules to document with autodoc) are in another directory,
1616
# add these directories to sys.path here. If the directory is relative to the
1717
# documentation root, use os.path.abspath to make it absolute, like shown here.
18-
#sys.path.append(os.path.abspath('.'))
18+
# sys.path.append(os.path.abspath('.'))
1919

2020
# -- General configuration -----------------------------------------------------
2121

2222
# Add any Sphinx extension module names here, as strings. They can be extensions
2323
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
24-
extensions = ['sphinx.ext.autodoc']
24+
extensions = ["sphinx.ext.autodoc"]
2525
try:
2626
import sphinx.ext.viewcode
27-
extensions.append('sphinx.ext.viewcode')
27+
28+
extensions.append("sphinx.ext.viewcode")
2829
except ImportError:
2930
print("WARNING: the Sphinx viewcode extension was not found", file=sys.stderr)
3031

3132
# Add any paths that contain templates here, relative to this directory.
32-
templates_path = ['_templates']
33+
templates_path = ["_templates"]
3334

3435
# The suffix of source filenames.
35-
source_suffix = '.rst'
36+
source_suffix = ".rst"
3637

3738
# The encoding of source files.
38-
#source_encoding = 'utf-8'
39+
# source_encoding = 'utf-8'
3940

4041
# The master toctree document.
41-
master_doc = 'index'
42+
master_doc = "index"
4243

4344
# General information about the project.
44-
project = 'PythonQwt'
45+
project = "PythonQwt"
4546
import time
47+
4648
this_year = time.strftime("%Y", time.localtime())
4749
copyright = "2002 Uwe Rathmann (for the original C++ code/doc), 2015 Pierre Raybaut (for the Python translation/optimization/doc adaptation)"
4850

@@ -52,55 +54,56 @@
5254
#
5355
# The short X.Y version.
5456
import qwt
55-
version = ".".join(qwt.__version__.split('.')[:2])
57+
58+
version = ".".join(qwt.__version__.split(".")[:2])
5659
# The full version, including alpha/beta/rc tags.
5760
release = qwt.__version__
5861

5962
# The language for content autogenerated by Sphinx. Refer to documentation
6063
# for a list of supported languages.
61-
#language = None
64+
# language = None
6265

6366
# There are two options for replacing |today|: either, you set today to some
6467
# non-false value, then it is used:
65-
#today = ''
68+
# today = ''
6669
# Else, today_fmt is used as the format for a strftime call.
67-
#today_fmt = '%B %d, %Y'
70+
# today_fmt = '%B %d, %Y'
6871

6972
# List of documents that shouldn't be included in the build.
70-
#unused_docs = []
73+
# unused_docs = []
7174

7275
# List of directories, relative to source directory, that shouldn't be searched
7376
# for source files.
7477
exclude_trees = []
7578

7679
# The reST default role (used for this markup: `text`) to use for all documents.
77-
#default_role = None
80+
# default_role = None
7881

7982
# If true, '()' will be appended to :func: etc. cross-reference text.
80-
#add_function_parentheses = True
83+
# add_function_parentheses = True
8184

8285
# If true, the current module name will be prepended to all description
8386
# unit titles (such as .. function::).
84-
#add_module_names = True
87+
# add_module_names = True
8588

8689
# If true, sectionauthor and moduleauthor directives will be shown in the
8790
# output. They are ignored by default.
88-
#show_authors = False
91+
# show_authors = False
8992

9093
# The name of the Pygments (syntax highlighting) style to use.
91-
pygments_style = 'sphinx'
94+
pygments_style = "sphinx"
9295

9396
# A list of ignored prefixes for module index sorting.
94-
modindex_common_prefix = ['qwt.']
97+
modindex_common_prefix = ["qwt."]
9598

96-
autodoc_member_order = 'bysource'
99+
autodoc_member_order = "bysource"
97100

98101

99102
# -- Options for HTML output ---------------------------------------------------
100103

101104
# The theme to use for HTML and HTML Help pages. Major themes that come with
102105
# Sphinx are currently 'default' and 'sphinxdoc'.
103-
html_theme = 'sphinxdoc'
106+
html_theme = "classic"
104107

105108
# Theme options are theme-specific and customize the look and feel of a theme
106109
# further. For a list of options available for each theme, see the
@@ -109,95 +112,96 @@
109112
## 'sidebarlinkcolor': '#98ff99'}
110113

111114
# Add any paths that contain custom themes here, relative to this directory.
112-
#html_theme_path = []
115+
# html_theme_path = []
113116

114117
# The name for this set of Sphinx documents. If None, it defaults to
115118
# "<project> v<release> documentation".
116-
html_title = '%s %s Manual' % (project, version)
119+
html_title = "%s %s Manual" % (project, version)
117120

118121
# A shorter title for the navigation bar. Default is the same as html_title.
119-
#html_short_title = '%s Manual' % project
122+
# html_short_title = '%s Manual' % project
120123

121124
# The name of an image file (relative to this directory) to place at the top
122125
# of the sidebar.
123-
#html_logo = 'images/qwt.png'
126+
# html_logo = 'images/qwt.png'
124127

125128
# The name of an image file (within the static path) to use as favicon of the
126129
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
127130
# pixels large.
128-
#html_favicon = 'favicon.ico'
131+
# html_favicon = 'favicon.ico'
129132

130133
# Add any paths that contain custom static files (such as style sheets) here,
131134
# relative to this directory. They are copied after the builtin static files,
132135
# so a file named "default.css" will overwrite the builtin "default.css".
133-
html_static_path = ['_static']
136+
html_static_path = ["_static"]
134137

135138
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
136139
# using the given strftime format.
137-
#html_last_updated_fmt = '%b %d, %Y'
140+
# html_last_updated_fmt = '%b %d, %Y'
138141

139142
# If true, SmartyPants will be used to convert quotes and dashes to
140143
# typographically correct entities.
141-
#html_use_smartypants = True
144+
# html_use_smartypants = True
142145

143146
# Custom sidebar templates, maps document names to template names.
144-
#html_sidebars = {}
147+
# html_sidebars = {}
145148

146149
# Additional templates that should be rendered to pages, maps page names to
147150
# template names.
148-
#html_additional_pages = {}
151+
# html_additional_pages = {}
149152

150153
# If false, no module index is generated.
151154
html_use_modindex = True
152155

153156
# If false, no index is generated.
154-
#html_use_index = True
157+
# html_use_index = True
155158

156159
# If true, the index is split into individual pages for each letter.
157-
#html_split_index = False
160+
# html_split_index = False
158161

159162
# If true, links to the reST sources are added to the pages.
160-
#html_show_sourcelink = True
163+
# html_show_sourcelink = True
161164

162165
# If true, an OpenSearch description file will be output, and all pages will
163166
# contain a <link> tag referring to it. The value of this option must be the
164167
# base URL from which the finished HTML is served.
165-
#html_use_opensearch = ''
168+
# html_use_opensearch = ''
166169

167170
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
168-
#html_file_suffix = ''
171+
# html_file_suffix = ''
169172

170173
# Output file base name for HTML help builder.
171-
htmlhelp_basename = 'PythonQwt'
174+
htmlhelp_basename = "PythonQwt"
172175

173176

174177
# -- Options for LaTeX output --------------------------------------------------
175178

176179
# The paper size ('letter' or 'a4').
177-
#latex_paper_size = 'letter'
180+
# latex_paper_size = 'letter'
178181

179182
# The font size ('10pt', '11pt' or '12pt').
180-
#latex_font_size = '10pt'
183+
# latex_font_size = '10pt'
181184

182185
# Grouping the document tree into LaTeX files. List of tuples
183186
# (source start file, target name, title, author, documentclass [howto/manual]).
184187
latex_documents = [
185-
('index', 'qwt.tex', 'PythonQwt Manual', 'Pierre Raybaut', 'manual'),
188+
("index", "qwt.tex", "PythonQwt Manual", "Pierre Raybaut", "manual"),
186189
]
187190

188191
# The name of an image file (relative to this directory) to place at the top of
189192
# the title page.
190-
#latex_logo = None
193+
# latex_logo = None
191194

192195
# For "manual" documents, if this is true, then toplevel headings are parts,
193196
# not chapters.
194-
#latex_use_parts = False
197+
# latex_use_parts = False
195198

196199
# Additional stuff for the LaTeX preamble.
197-
#latex_preamble = ''
200+
# latex_preamble = ''
198201

199202
# Documents to append as an appendix to all manuals.
200-
#latex_appendices = []
203+
# latex_appendices = []
201204

202205
# If false, no module index is generated.
203-
#latex_use_modindex = True
206+
# latex_use_modindex = True
207+

0 commit comments

Comments
 (0)