diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-06-05 17:39:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 17:39:11 +0200 |
commit | e483762015d94b2450379737f099c36e7c3647a0 (patch) | |
tree | 42d0c75e3d4a310a298254c3beab6085254ffbf5 /lib/spack/docs/conf.py | |
parent | 5840a00000138e1e593ff5d8bfdfb449c223f148 (diff) | |
download | spack-e483762015d94b2450379737f099c36e7c3647a0.tar.gz spack-e483762015d94b2450379737f099c36e7c3647a0.tar.bz2 spack-e483762015d94b2450379737f099c36e7c3647a0.tar.xz spack-e483762015d94b2450379737f099c36e7c3647a0.zip |
Update RtD and Sphinx configuration (#38046)
Diffstat (limited to 'lib/spack/docs/conf.py')
-rw-r--r-- | lib/spack/docs/conf.py | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py index 8ba6717147..841ed53868 100644 --- a/lib/spack/docs/conf.py +++ b/lib/spack/docs/conf.py @@ -149,7 +149,6 @@ graphviz_dot_args = [ # Get nice vector graphics graphviz_output_format = "svg" - # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -233,30 +232,8 @@ nitpick_ignore = [ # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. # show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -# We use our own extension of the default style with a few modifications -from pygments.style import Style -from pygments.styles.default import DefaultStyle -from pygments.token import Comment, Generic, Text - - -class SpackStyle(DefaultStyle): - styles = DefaultStyle.styles.copy() - background_color = "#f4f4f8" - styles[Generic.Output] = "#355" - styles[Generic.Prompt] = "bold #346ec9" - - -import pkg_resources - -dist = pkg_resources.Distribution(__file__) -sys.path.append(".") # make 'conf' module findable -ep = pkg_resources.EntryPoint.parse("spack = conf:SpackStyle", dist=dist) -dist._ep_map = {"pygments.styles": {"plugin1": ep}} -pkg_resources.working_set.add(dist) - -pygments_style = "spack" +sys.path.append("./_pygments") +pygments_style = "style.SpackStyle" # A list of ignored prefixes for module index sorting. # modindex_common_prefix = [] @@ -341,16 +318,15 @@ html_last_updated_fmt = "%b %d, %Y" # Output file base name for HTML help builder. htmlhelp_basename = "Spackdoc" - # -- Options for LaTeX output -------------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). - #'papersize': 'letterpaper', + # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). - #'pointsize': '10pt', + # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. - #'preamble': '', + # 'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples |