|
18 | 18 | # If extensions (or modules to document with autodoc) are in another directory, |
19 | 19 | # add these directories to sys.path here. If the directory is relative to the |
20 | 20 | # 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')) |
22 | 22 |
|
23 | 23 | from runestone import runestone_static_dirs, runestone_extensions, setup |
24 | 24 | import pkg_resources |
25 | 25 |
|
26 | 26 | # -- General configuration ----------------------------------------------------- |
27 | 27 |
|
28 | 28 | # If your documentation needs a minimal Sphinx version, state it here. |
29 | | -#needs_sphinx = '1.0' |
| 29 | +# needs_sphinx = '1.0' |
30 | 30 |
|
31 | 31 | # Add any Sphinx extension module names here, as strings. They can be extensions |
32 | 32 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
33 | | -extensions = ['sphinx.ext.mathjax'] + runestone_extensions() |
| 33 | +extensions = ["sphinx.ext.mathjax"] + runestone_extensions() |
34 | 34 |
|
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'] |
36 | 36 |
|
37 | 37 | # This sets up your project to use the defaults. If you want to create a custom set of templates |
38 | 38 | # 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 | +] |
40 | 42 |
|
41 | 43 | # The suffix of source filenames. |
42 | | -source_suffix = '.rst' |
| 44 | +source_suffix = ".rst" |
43 | 45 |
|
44 | 46 | # The encoding of source files. |
45 | | -#source_encoding = 'utf-8-sig' |
| 47 | +# source_encoding = 'utf-8-sig' |
46 | 48 |
|
47 | 49 | # The master toctree document. |
48 | | -master_doc = 'index' |
| 50 | +master_doc = "index" |
49 | 51 |
|
50 | 52 | # General information about the project. |
51 | | -project = 'Runestone Interactive Overview' |
52 | | -copyright = '2017 bjones' |
| 53 | +project = "Runestone Interactive Overview" |
| 54 | +copyright = "2017 bjones" |
53 | 55 |
|
54 | 56 | # The version info for the project you're documenting, acts as replacement for |
55 | 57 | # |version| and |release|, also used in various other places throughout the |
56 | 58 | # built documents. |
57 | 59 | # |
58 | 60 | # The short X.Y version. |
59 | | -version = '0.0.1' |
| 61 | +version = "0.0.1" |
60 | 62 | # The full version, including alpha/beta/rc tags. |
61 | | -release = '0.0' |
| 63 | +release = "0.0" |
62 | 64 |
|
63 | 65 | # The language for content autogenerated by Sphinx. Refer to documentation |
64 | 66 | # for a list of supported languages. |
65 | | -#language = None |
| 67 | +# language = None |
66 | 68 |
|
67 | 69 | # There are two options for replacing |today|: either, you set today to some |
68 | 70 | # non-false value, then it is used: |
69 | | -#today = '' |
| 71 | +# today = '' |
70 | 72 | # Else, today_fmt is used as the format for a strftime call. |
71 | | -#today_fmt = '%B %d, %Y' |
| 73 | +# today_fmt = '%B %d, %Y' |
72 | 74 |
|
73 | 75 | # List of patterns, relative to source directory, that match files and |
74 | 76 | # directories to ignore when looking for source files. |
75 | 77 | exclude_patterns = [] |
76 | 78 |
|
77 | 79 | # The reST default role (used for this markup: `text`) to use for all documents. |
78 | | -#default_role = None |
| 80 | +# default_role = None |
79 | 81 |
|
80 | 82 | # If true, '()' will be appended to :func: etc. cross-reference text. |
81 | | -#add_function_parentheses = True |
| 83 | +# add_function_parentheses = True |
82 | 84 |
|
83 | 85 | # If true, the current module name will be prepended to all description |
84 | 86 | # unit titles (such as .. function::). |
85 | | -#add_module_names = True |
| 87 | +# add_module_names = True |
86 | 88 |
|
87 | 89 | # If true, sectionauthor and moduleauthor directives will be shown in the |
88 | 90 | # output. They are ignored by default. |
89 | | -#show_authors = False |
| 91 | +# show_authors = False |
90 | 92 |
|
91 | 93 | # The name of the Pygments (syntax highlighting) style to use. |
92 | | -pygments_style = 'sphinx' |
| 94 | +pygments_style = "sphinx" |
93 | 95 |
|
94 | 96 | # A list of ignored prefixes for module index sorting. |
95 | | -#modindex_common_prefix = [] |
| 97 | +# modindex_common_prefix = [] |
96 | 98 |
|
97 | 99 | # `keep_warnings <http://www.sphinx-doc.org/en/stable/config.html#confval-keep_warnings>`_: |
98 | 100 | # If true, keep warnings as “system message” paragraphs in the built documents. |
|
104 | 106 | # A string of reStructuredText that will be included at the beginning of every |
105 | 107 | # source file that is read. |
106 | 108 | 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 | + """ |
109 | 111 |
|
110 | 112 | .. |blank| replace:: :blank:`x` |
111 | 113 | """ |
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` |
115 | 116 | """ |
116 | 117 | ) |
117 | 118 |
|
118 | 119 | # Select whether to use server-side grading where possible. Server-side grading |
119 | 120 | # requires **all** the following: |
120 | 121 | # |
121 | 122 | # - The use of Runestone services (``eBookConfig.useRunestoneServices === true``) |
122 | | -# - Server-side grading to be enabled. |
| 123 | +# - Logging enabled (``eBookConfig.logLevel > 0``) |
123 | 124 | # |
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. |
125 | 126 | runestone_server_side_grading = False |
126 | 127 |
|
127 | 128 | # Extensions |
|
134 | 135 | # <https://docs.python.org/2/library/glob.html>`_. |
135 | 136 | CodeChat_lexer_for_glob = { |
136 | 137 | # Otherwise, Pygments picks the wrong lexer for CSS... |
137 | | - '*.css': 'CSS', |
| 138 | + "*.css": "CSS", |
138 | 139 | # ... and for JavaScript. |
139 | | - '*.js': 'JavaScript', |
| 140 | + "*.js": "JavaScript", |
140 | 141 | } |
141 | 142 | # |
142 | 143 | # **CodeChat note::** This is a list of exclude_patterns_ which applies only to |
|
156 | 157 |
|
157 | 158 | # The theme to use for HTML and HTML Help pages. See the documentation for |
158 | 159 | # a list of builtin themes. |
159 | | -html_theme = 'sphinx_bootstrap' |
| 160 | +html_theme = "sphinx_bootstrap" |
160 | 161 |
|
161 | 162 | # Theme options are theme-specific and customize the look and feel of a theme |
162 | 163 | # further. For a list of options available for each theme, see the |
163 | 164 | # documentation. |
164 | | -#html_theme_options = {'nosidebar': 'true'} |
| 165 | +# html_theme_options = {'nosidebar': 'true'} |
165 | 166 | html_theme_options = { |
166 | 167 | # Navigation bar title. (Default: ``project`` value) |
167 | | - 'navbar_title': "wavedrom_test", |
168 | | - |
| 168 | + "navbar_title": "Wavedrom test", |
169 | 169 | # Tab name for entire site. (Default: "Site") |
170 | | - 'navbar_site_name': "Chapters", |
171 | | - |
| 170 | + "navbar_site_name": "Chapters", |
172 | 171 | # Global TOC depth for "site" navbar tab. (Default: 1) |
173 | 172 | # Switching to -1 shows all levels. |
174 | | - 'globaltoc_depth': 1, |
175 | | - |
| 173 | + "globaltoc_depth": 1, |
176 | 174 | # Include hidden TOCs in Site navbar? |
177 | 175 | # |
178 | 176 | # Note: If this is "false", you cannot have mixed ``:hidden:`` and |
179 | 177 | # non-hidden ``toctree`` directives in the same page, or else the build |
180 | 178 | # will break. |
181 | 179 | # |
182 | 180 | # Values: "true" (default) or "false" |
183 | | - 'globaltoc_includehidden': "true", |
184 | | - |
| 181 | + "globaltoc_includehidden": "true", |
185 | 182 | # HTML navbar class (Default: "navbar") to attach to <div> element. |
186 | 183 | # For black navbar, do "navbar navbar-inverse" |
187 | | - 'navbar_class': "navbar", |
188 | | - |
| 184 | + "navbar_class": "navbar", |
189 | 185 | # Fix navigation bar to top of page? |
190 | 186 | # Values: "true" (default) or "false" |
191 | | - 'navbar_fixed_top': "true", |
192 | | - |
| 187 | + "navbar_fixed_top": "true", |
193 | 188 | # Location of link to source. |
194 | 189 | # Options are "nav" (default), "footer" or anything else to exclude. |
195 | | - 'source_link_position': "nav", |
196 | | - |
| 190 | + "source_link_position": "nav", |
197 | 191 | # Bootswatch (http://bootswatch.com/) theme. |
198 | 192 | # |
199 | 193 | # Options are nothing with "" (default) or the name of a valid theme |
|
207 | 201 | # This is set up to use the default runestone themes, you can override them by |
208 | 202 | # creating your own folder and modifying this path. |
209 | 203 | # 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 | +] |
211 | 209 |
|
212 | 210 |
|
213 | 211 | # The name for this set of Sphinx documents. If None, it defaults to |
214 | 212 | # "<project> v<release> documentation". |
215 | | -html_title = 'Runestone Interactive Overview' |
| 213 | +html_title = "Runestone Interactive Overview" |
216 | 214 |
|
217 | 215 | # 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" |
219 | 217 |
|
220 | 218 | # The name of an image file (relative to this directory) to place at the top |
221 | 219 | # of the sidebar. |
222 | 220 |
|
223 | 221 | # logo is included in layout file |
224 | | -#html_logo = "../source/_static/logo_small.png" |
| 222 | +# html_logo = "../source/_static/logo_small.png" |
225 | 223 |
|
226 | 224 | # The name of an image file (within the static path) to use as favicon of the |
227 | 225 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
228 | 226 | # pixels large. |
229 | | -#html_favicon = None |
| 227 | +# html_favicon = None |
230 | 228 |
|
231 | 229 | # Add any paths that contain custom static files (such as style sheets) here, |
232 | 230 | # relative to this directory. They are copied after the builtin static files, |
|
236 | 234 |
|
237 | 235 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
238 | 236 | # using the given strftime format. |
239 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 237 | +# html_last_updated_fmt = '%b %d, %Y' |
240 | 238 |
|
241 | 239 | # If true, SmartyPants will be used to convert quotes and dashes to |
242 | 240 | # typographically correct entities. |
243 | | -#html_use_smartypants = True |
| 241 | +# html_use_smartypants = True |
244 | 242 |
|
245 | 243 | # Custom sidebar templates, maps document names to template names. |
246 | | -#html_sidebars = {} |
| 244 | +# html_sidebars = {} |
247 | 245 |
|
248 | 246 | # Additional templates that should be rendered to pages, maps page names to |
249 | 247 | # template names. |
250 | | -#html_additional_pages = {} |
| 248 | +# html_additional_pages = {} |
251 | 249 |
|
252 | 250 | # If false, no module index is generated. |
253 | | -#html_domain_indices = True |
| 251 | +# html_domain_indices = True |
254 | 252 |
|
255 | 253 | # If false, no index is generated. |
256 | | -#html_use_index = True |
| 254 | +# html_use_index = True |
257 | 255 |
|
258 | 256 | # If true, the index is split into individual pages for each letter. |
259 | | -#html_split_index = False |
| 257 | +# html_split_index = False |
260 | 258 |
|
261 | 259 | # If true, links to the reST sources are added to the pages. |
262 | 260 | html_show_sourcelink = False |
263 | 261 |
|
264 | 262 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
265 | | -#html_show_sphinx = True |
| 263 | +# html_show_sphinx = True |
266 | 264 |
|
267 | 265 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
268 | | -#html_show_copyright = True |
| 266 | +# html_show_copyright = True |
269 | 267 |
|
270 | 268 | # If true, an OpenSearch description file will be output, and all pages will |
271 | 269 | # contain a <link> tag referring to it. The value of this option must be the |
272 | 270 | # base URL from which the finished HTML is served. |
273 | | -#html_use_opensearch = '' |
| 271 | +# html_use_opensearch = '' |
274 | 272 |
|
275 | 273 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
276 | | -#html_file_suffix = None |
| 274 | +# html_file_suffix = None |
277 | 275 |
|
278 | 276 | # Output file base name for HTML help builder. |
279 | | -htmlhelp_basename = 'PythonCoursewareProjectdoc' |
| 277 | +htmlhelp_basename = "PythonCoursewareProjectdoc" |
280 | 278 |
|
281 | 279 | # .. _accessibility_style: |
282 | 280 | # |
|
285 | 283 | # This config value is defined in the `../../accessibility/accessibility.py` extension. |
286 | 284 | # By this config value you can select what accessibility stylesheet |
287 | 285 | # you want to add (``normal``, ``light``, ``darkest`` or ``none``). |
288 | | -#accessibility_style = 'normal' |
| 286 | +# accessibility_style = 'normal' |
289 | 287 |
|
290 | 288 | # Config values for specific Runestone components |
291 | 289 | # |
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