Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 889645d

Browse files
committed
Fix: Run Black, update template.
1 parent be242ad commit 889645d

3 files changed

Lines changed: 125 additions & 120 deletions

File tree

runestone/wavedrom/test/conf.py

Lines changed: 75 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -18,81 +18,83 @@
1818
# If extensions (or modules to document with autodoc) are in another directory,
1919
# add these directories to sys.path here. If the directory is relative to the
2020
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
#sys.path.insert(0, os.path.abspath('../modules'))
21+
# sys.path.insert(0, os.path.abspath('../modules'))
2222

2323
from runestone import runestone_static_dirs, runestone_extensions, setup
2424
import pkg_resources
2525

2626
# -- General configuration -----------------------------------------------------
2727

2828
# If your documentation needs a minimal Sphinx version, state it here.
29-
#needs_sphinx = '1.0'
29+
# needs_sphinx = '1.0'
3030

3131
# Add any Sphinx extension module names here, as strings. They can be extensions
3232
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
33-
extensions = ['sphinx.ext.mathjax'] + runestone_extensions()
33+
extensions = ["sphinx.ext.mathjax"] + runestone_extensions()
3434

35-
#,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode','runestone.accessibility']
35+
# ,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode','runestone.accessibility']
3636

3737
# This sets up your project to use the defaults. If you want to create a custom set of templates
3838
# for your own project you can over ride them by creating your own _templates folder
39-
templates_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates')]
39+
templates_path = [
40+
pkg_resources.resource_filename("runestone", "common/project_template/_templates")
41+
]
4042

4143
# The suffix of source filenames.
42-
source_suffix = '.rst'
44+
source_suffix = ".rst"
4345

4446
# The encoding of source files.
45-
#source_encoding = 'utf-8-sig'
47+
# source_encoding = 'utf-8-sig'
4648

4749
# The master toctree document.
48-
master_doc = 'index'
50+
master_doc = "index"
4951

5052
# General information about the project.
51-
project = 'Runestone Interactive Overview'
52-
copyright = '2017 bjones'
53+
project = "Runestone Interactive Overview"
54+
copyright = "2017 bjones"
5355

5456
# The version info for the project you're documenting, acts as replacement for
5557
# |version| and |release|, also used in various other places throughout the
5658
# built documents.
5759
#
5860
# The short X.Y version.
59-
version = '0.0.1'
61+
version = "0.0.1"
6062
# The full version, including alpha/beta/rc tags.
61-
release = '0.0'
63+
release = "0.0"
6264

6365
# The language for content autogenerated by Sphinx. Refer to documentation
6466
# for a list of supported languages.
65-
#language = None
67+
# language = None
6668

6769
# There are two options for replacing |today|: either, you set today to some
6870
# non-false value, then it is used:
69-
#today = ''
71+
# today = ''
7072
# Else, today_fmt is used as the format for a strftime call.
71-
#today_fmt = '%B %d, %Y'
73+
# today_fmt = '%B %d, %Y'
7274

7375
# List of patterns, relative to source directory, that match files and
7476
# directories to ignore when looking for source files.
7577
exclude_patterns = []
7678

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

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

8385
# If true, the current module name will be prepended to all description
8486
# unit titles (such as .. function::).
85-
#add_module_names = True
87+
# add_module_names = True
8688

8789
# If true, sectionauthor and moduleauthor directives will be shown in the
8890
# output. They are ignored by default.
89-
#show_authors = False
91+
# show_authors = False
9092

9193
# The name of the Pygments (syntax highlighting) style to use.
92-
pygments_style = 'sphinx'
94+
pygments_style = "sphinx"
9395

9496
# A list of ignored prefixes for module index sorting.
95-
#modindex_common_prefix = []
97+
# modindex_common_prefix = []
9698

9799
# `keep_warnings <http://www.sphinx-doc.org/en/stable/config.html#confval-keep_warnings>`_:
98100
# If true, keep warnings as “system message” paragraphs in the built documents.
@@ -104,24 +106,23 @@
104106
# A string of reStructuredText that will be included at the beginning of every
105107
# source file that is read.
106108
rst_prolog = (
107-
# For fill-in-the-blank questions, provide a convenient means to indicate a blank.
108-
"""
109+
# For fill-in-the-blank questions, provide a convenient means to indicate a blank.
110+
"""
109111
110112
.. |blank| replace:: :blank:`x`
111113
"""
112-
113-
# For literate programming files, provide a convenient way to refer to a source file's name. See `runestone.lp.lp._docname_role`.
114-
""".. |docname| replace:: :docname:`name`
114+
# For literate programming files, provide a convenient way to refer to a source file's name. See `runestone.lp.lp._docname_role`.
115+
""".. |docname| replace:: :docname:`name`
115116
"""
116117
)
117118

118119
# Select whether to use server-side grading where possible. Server-side grading
119120
# requires **all** the following:
120121
#
121122
# - The use of Runestone services (``eBookConfig.useRunestoneServices === true``)
122-
# - Server-side grading to be enabled.
123+
# - Logging enabled (``eBookConfig.logLevel > 0``)
123124
#
124-
# The first condition causes the ``RunestoneBase.logBookEvent`` in ``runestonebase.js`` to post a student response to the server. The second condition ensures that ``hsblog`` in ``ajax.py`` on the server will return a response containing grading information.
125+
# The first two conditions cause the ``RunestoneBase.logBookEvent`` in ``runestonebase.js`` to post a student response to the server. The last conditions ensures that ``hsblog`` in ``ajax.py`` on the server will return a response containing grading information.
125126
runestone_server_side_grading = False
126127

127128
# Extensions
@@ -134,9 +135,9 @@
134135
# <https://docs.python.org/2/library/glob.html>`_.
135136
CodeChat_lexer_for_glob = {
136137
# Otherwise, Pygments picks the wrong lexer for CSS...
137-
'*.css': 'CSS',
138+
"*.css": "CSS",
138139
# ... and for JavaScript.
139-
'*.js': 'JavaScript',
140+
"*.js": "JavaScript",
140141
}
141142
#
142143
# **CodeChat note::** This is a list of exclude_patterns_ which applies only to
@@ -156,44 +157,37 @@
156157

157158
# The theme to use for HTML and HTML Help pages. See the documentation for
158159
# a list of builtin themes.
159-
html_theme = 'sphinx_bootstrap'
160+
html_theme = "sphinx_bootstrap"
160161

161162
# Theme options are theme-specific and customize the look and feel of a theme
162163
# further. For a list of options available for each theme, see the
163164
# documentation.
164-
#html_theme_options = {'nosidebar': 'true'}
165+
# html_theme_options = {'nosidebar': 'true'}
165166
html_theme_options = {
166167
# Navigation bar title. (Default: ``project`` value)
167-
'navbar_title': "wavedrom_test",
168-
168+
"navbar_title": "Wavedrom test",
169169
# Tab name for entire site. (Default: "Site")
170-
'navbar_site_name': "Chapters",
171-
170+
"navbar_site_name": "Chapters",
172171
# Global TOC depth for "site" navbar tab. (Default: 1)
173172
# Switching to -1 shows all levels.
174-
'globaltoc_depth': 1,
175-
173+
"globaltoc_depth": 1,
176174
# Include hidden TOCs in Site navbar?
177175
#
178176
# Note: If this is "false", you cannot have mixed ``:hidden:`` and
179177
# non-hidden ``toctree`` directives in the same page, or else the build
180178
# will break.
181179
#
182180
# Values: "true" (default) or "false"
183-
'globaltoc_includehidden': "true",
184-
181+
"globaltoc_includehidden": "true",
185182
# HTML navbar class (Default: "navbar") to attach to <div> element.
186183
# For black navbar, do "navbar navbar-inverse"
187-
'navbar_class': "navbar",
188-
184+
"navbar_class": "navbar",
189185
# Fix navigation bar to top of page?
190186
# Values: "true" (default) or "false"
191-
'navbar_fixed_top': "true",
192-
187+
"navbar_fixed_top": "true",
193188
# Location of link to source.
194189
# Options are "nav" (default), "footer" or anything else to exclude.
195-
'source_link_position': "nav",
196-
190+
"source_link_position": "nav",
197191
# Bootswatch (http://bootswatch.com/) theme.
198192
#
199193
# Options are nothing with "" (default) or the name of a valid theme
@@ -207,26 +201,30 @@
207201
# This is set up to use the default runestone themes, you can override them by
208202
# creating your own folder and modifying this path.
209203
# Add any paths that contain custom themes here, relative to this directory.
210-
html_theme_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates/plugin_layouts')]
204+
html_theme_path = [
205+
pkg_resources.resource_filename(
206+
"runestone", "common/project_template/_templates/plugin_layouts"
207+
)
208+
]
211209

212210

213211
# The name for this set of Sphinx documents. If None, it defaults to
214212
# "<project> v<release> documentation".
215-
html_title = 'Runestone Interactive Overview'
213+
html_title = "Runestone Interactive Overview"
216214

217215
# A shorter title for the navigation bar. Default is the same as html_title.
218-
html_short_title ='Runestone Interactive Overview'
216+
html_short_title = "Runestone Interactive Overview"
219217

220218
# The name of an image file (relative to this directory) to place at the top
221219
# of the sidebar.
222220

223221
# logo is included in layout file
224-
#html_logo = "../source/_static/logo_small.png"
222+
# html_logo = "../source/_static/logo_small.png"
225223

226224
# The name of an image file (within the static path) to use as favicon of the
227225
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
228226
# pixels large.
229-
#html_favicon = None
227+
# html_favicon = None
230228

231229
# Add any paths that contain custom static files (such as style sheets) here,
232230
# relative to this directory. They are copied after the builtin static files,
@@ -236,47 +234,47 @@
236234

237235
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
238236
# using the given strftime format.
239-
#html_last_updated_fmt = '%b %d, %Y'
237+
# html_last_updated_fmt = '%b %d, %Y'
240238

241239
# If true, SmartyPants will be used to convert quotes and dashes to
242240
# typographically correct entities.
243-
#html_use_smartypants = True
241+
# html_use_smartypants = True
244242

245243
# Custom sidebar templates, maps document names to template names.
246-
#html_sidebars = {}
244+
# html_sidebars = {}
247245

248246
# Additional templates that should be rendered to pages, maps page names to
249247
# template names.
250-
#html_additional_pages = {}
248+
# html_additional_pages = {}
251249

252250
# If false, no module index is generated.
253-
#html_domain_indices = True
251+
# html_domain_indices = True
254252

255253
# If false, no index is generated.
256-
#html_use_index = True
254+
# html_use_index = True
257255

258256
# If true, the index is split into individual pages for each letter.
259-
#html_split_index = False
257+
# html_split_index = False
260258

261259
# If true, links to the reST sources are added to the pages.
262260
html_show_sourcelink = False
263261

264262
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
265-
#html_show_sphinx = True
263+
# html_show_sphinx = True
266264

267265
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
268-
#html_show_copyright = True
266+
# html_show_copyright = True
269267

270268
# If true, an OpenSearch description file will be output, and all pages will
271269
# contain a <link> tag referring to it. The value of this option must be the
272270
# base URL from which the finished HTML is served.
273-
#html_use_opensearch = ''
271+
# html_use_opensearch = ''
274272

275273
# This is the file name suffix for HTML files (e.g. ".xhtml").
276-
#html_file_suffix = None
274+
# html_file_suffix = None
277275

278276
# Output file base name for HTML help builder.
279-
htmlhelp_basename = 'PythonCoursewareProjectdoc'
277+
htmlhelp_basename = "PythonCoursewareProjectdoc"
280278

281279
# .. _accessibility_style:
282280
#
@@ -285,20 +283,20 @@
285283
# This config value is defined in the `../../accessibility/accessibility.py` extension.
286284
# By this config value you can select what accessibility stylesheet
287285
# you want to add (``normal``, ``light``, ``darkest`` or ``none``).
288-
#accessibility_style = 'normal'
286+
# accessibility_style = 'normal'
289287

290288
# Config values for specific Runestone components
291289
#
292-
#activecode_div_class = 'runestone explainer ac_section alert alert-warning'
293-
#activecode_hide_load_history = False
294-
#mchoice_div_class = 'runestone alert alert-warning'
295-
#clickable_div_class = 'runestone alert alert-warning'
296-
#codelens_div_class = 'alert alert-warning cd_section'
297-
#dragndrop_div_class = 'runestone'
298-
#fitb_div_class = 'runestone'
299-
#parsons_div_class = 'runestone'
300-
#poll_div_class = 'alert alert-warning'
301-
#shortanswer_div_class = 'journal alert alert-warning'
302-
#shortanswer_optional_div_class = 'journal alert alert-success'
303-
#showeval_div_class = 'runestone explainer alert alert-warning'
304-
#tabbed_div_class = 'alert alert-warning'
290+
# activecode_div_class = 'runestone explainer ac_section alert alert-warning'
291+
# activecode_hide_load_history = False
292+
# mchoice_div_class = 'runestone alert alert-warning'
293+
# clickable_div_class = 'runestone alert alert-warning'
294+
# codelens_div_class = 'alert alert-warning cd_section'
295+
# dragndrop_div_class = 'runestone'
296+
# fitb_div_class = 'runestone'
297+
# parsons_div_class = 'runestone'
298+
# poll_div_class = 'alert alert-warning'
299+
# shortanswer_div_class = 'journal alert alert-warning'
300+
# shortanswer_optional_div_class = 'journal alert alert-success'
301+
# showeval_div_class = 'runestone explainer alert alert-warning'
302+
# tabbed_div_class = 'alert alert-warning'

0 commit comments

Comments
 (0)