parent
65cc7b24c9
commit
82daaf6e52
123 changed files with 3823 additions and 3767 deletions
|
@ -19,13 +19,13 @@ def export():
|
|||
|
||||
opts = {
|
||||
'style': style,
|
||||
'noclasses': False,
|
||||
'nobackground': False,
|
||||
}
|
||||
|
||||
path = os.path.join(PYGMENTS_PATH, '%s.css' % style)
|
||||
formatter = HtmlFormatter(**opts)
|
||||
css_content = formatter.get_style_defs()
|
||||
# little fix because pelican doesn't append background color.
|
||||
css_content = css_content.replace('.hll', '.highlight')
|
||||
css_content = formatter.get_style_defs('.highlight')
|
||||
|
||||
with open(path, 'w') as f:
|
||||
f.write(css_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue