Skip to content

Commit

Permalink
Use topas_pygments package
Browse files Browse the repository at this point in the history
This lets me use a custom style and make use of pygments entrypoints
  • Loading branch information
davidchall committed Jul 23, 2016
1 parent 3552448 commit ce45f28
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 42 deletions.
5 changes: 0 additions & 5 deletions .static/dark_background.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ codeblock div[class^='highlight'], pre.literal-block div[class^='highlight'], .r
}

.highlight .nc {
color: #fd971f !important;
font-weight: normal !important;
} /* Name.Class */

.highlight .kt {
font-weight: italic !important;
} /* Keyword.Type */

.highlight .kc {
font-weight: normal !important;
} /* Keyword.Constant */
8 changes: 1 addition & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
#show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'monokai'
pygments_style = 'topas'

# The default language used to highlight source code
highlight_language = 'topas'
Expand Down Expand Up @@ -370,11 +370,5 @@
#epub_use_index = True

def setup(app):
sys.path.insert(0, os.path.abspath('./util'))
from topas_lexer import TopasLexer
app.add_lexer("topas", TopasLexer())
app.add_stylesheet('pygments.css')
app.add_stylesheet('dark_background.css')

from pygments.styles import STYLE_MAP
print(sorted(STYLE_MAP.keys()))
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e git://github.com/davidchall/topas-pygments.git#egg=topas_pygments
30 changes: 0 additions & 30 deletions util/topas_lexer.py

This file was deleted.

0 comments on commit ce45f28

Please sign in to comment.