@@ -149,7 +149,6 @@ def setup(sphinx):
149
149
# Get nice vector graphics
150
150
graphviz_output_format = "svg"
151
151
152
-
153
152
# Add any paths that contain templates here, relative to this directory.
154
153
templates_path = ["_templates" ]
155
154
@@ -233,30 +232,8 @@ def setup(sphinx):
233
232
# If true, sectionauthor and moduleauthor directives will be shown in the
234
233
# output. They are ignored by default.
235
234
# show_authors = False
236
-
237
- # The name of the Pygments (syntax highlighting) style to use.
238
- # We use our own extension of the default style with a few modifications
239
- from pygments .style import Style
240
- from pygments .styles .default import DefaultStyle
241
- from pygments .token import Comment , Generic , Text
242
-
243
-
244
- class SpackStyle (DefaultStyle ):
245
- styles = DefaultStyle .styles .copy ()
246
- background_color = "#f4f4f8"
247
- styles [Generic .Output ] = "#355"
248
- styles [Generic .Prompt ] = "bold #346ec9"
249
-
250
-
251
- import pkg_resources
252
-
253
- dist = pkg_resources .Distribution (__file__ )
254
- sys .path .append ("." ) # make 'conf' module findable
255
- ep = pkg_resources .EntryPoint .parse ("spack = conf:SpackStyle" , dist = dist )
256
- dist ._ep_map = {"pygments.styles" : {"plugin1" : ep }}
257
- pkg_resources .working_set .add (dist )
258
-
259
- pygments_style = "spack"
235
+ sys .path .append ("./_pygments" )
236
+ pygments_style = "style.SpackStyle"
260
237
261
238
# A list of ignored prefixes for module index sorting.
262
239
# modindex_common_prefix = []
@@ -341,16 +318,15 @@ class SpackStyle(DefaultStyle):
341
318
# Output file base name for HTML help builder.
342
319
htmlhelp_basename = "Spackdoc"
343
320
344
-
345
321
# -- Options for LaTeX output --------------------------------------------------
346
322
347
323
latex_elements = {
348
324
# The paper size ('letterpaper' or 'a4paper').
349
- #'papersize': 'letterpaper',
325
+ # 'papersize': 'letterpaper',
350
326
# The font size ('10pt', '11pt' or '12pt').
351
- #'pointsize': '10pt',
327
+ # 'pointsize': '10pt',
352
328
# Additional stuff for the LaTeX preamble.
353
- #'preamble': '',
329
+ # 'preamble': '',
354
330
}
355
331
356
332
# Grouping the document tree into LaTeX files. List of tuples
0 commit comments