Skip to content

Commit

Permalink
Update project metadata and syntax highlighting #493
Browse files Browse the repository at this point in the history
The existing pygments_style in conf.py was not listed in comment
reference added. Move to `native` as this is found in all themes.

Re-enables highlight background override (in theme) for .highlight.
  • Loading branch information
phillxnet committed Oct 9, 2024
1 parent 6bb1444 commit c4e17ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

# General information about the project.
project = u'Rockstor'
copyright = u'2015, Rockstor, Inc'
copyright = u'The Rockstor Project'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -88,7 +88,8 @@
#show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# https://www.florian-diesch.de/doc/sphinx/themes-and-pygments-styles/index.html#theme-sphinxdoc
pygments_style = 'native'

# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
Expand Down Expand Up @@ -202,7 +203,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'Rockstor.tex', u'Rockstor Documentation',
u'Rockstor, Inc', 'manual'),
u'The Rockstor Project', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -232,7 +233,7 @@
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'rockstor', u'Rockstor Documentation',
[u'Rockstor, Inc'], 1)
[u'The Rockstor Project'], 1)
]

# If true, show URL addresses after external links.
Expand All @@ -246,7 +247,7 @@
# dir menu entry, description, category)
texinfo_documents = [
('index', 'Rockstor', u'Rockstor Documentation',
u'Rockstor, Inc', 'Rockstor', 'One line description of project.',
u'The Rockstor Project', 'Rockstor', 'An Open Source Linux & BTRFS DIY NAS',
'Miscellaneous'),
]

Expand Down
2 changes: 1 addition & 1 deletion themes/rockstor/static/css/syntax.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

.highlight .hll { background-color: #49483e }
.highlight { /*background: #272822;*/ color: #f8f8f2 }
.highlight { background: #272822; color: #f8f8f2 }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
Expand Down
2 changes: 1 addition & 1 deletion themes/rockstor/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[theme]
inherit = basic
stylesheet = basic.css
pygments_style = tango
pygments_style = native

# Configurable options.
[options]
Expand Down

0 comments on commit c4e17ff

Please sign in to comment.