Use prebuilt pygments
This commit is contained in:
parent
a3af5bde2a
commit
650b7cd994
5 changed files with 2 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -61,5 +61,4 @@ target/
|
||||||
output/
|
output/
|
||||||
theme/static/build/
|
theme/static/build/
|
||||||
|
|
||||||
theme/static/src/scss/pygment.css
|
|
||||||
deploy/
|
deploy/
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"bootstrap-sass": "=3.3.7",
|
"bootstrap-sass": "=3.3.7",
|
||||||
"font-awesome": "=4.7.0",
|
"font-awesome": "=4.7.0",
|
||||||
"jquery": "=3.1.1",
|
"jquery": "=3.1.1",
|
||||||
|
"pygments-css": "=1.0.0",
|
||||||
"tstatic": "RealOrangeOne/tstatic",
|
"tstatic": "RealOrangeOne/tstatic",
|
||||||
"underscore": "=1.8.3",
|
"underscore": "=1.8.3",
|
||||||
"wow.js": "=1.2.2"
|
"wow.js": "=1.2.2"
|
||||||
|
|
|
@ -22,7 +22,6 @@ def static_build(*args, **kwargs):
|
||||||
|
|
||||||
logger.info('JS built!')
|
logger.info('JS built!')
|
||||||
|
|
||||||
run_command('Building Pygments Style', ['pygmentize', '-S', 'github', '-f', 'html', '-a', '.highlight', '>', 'theme/static/src/scss/pygment.css'], True)
|
|
||||||
run_command('Building Styles', [node_bin('node-sass'), 'theme/static/src/scss/index.scss', 'theme/static/build/css/index.css', '--source-map-embed'])
|
run_command('Building Styles', [node_bin('node-sass'), 'theme/static/src/scss/index.scss', 'theme/static/build/css/index.css', '--source-map-embed'])
|
||||||
|
|
||||||
logger.info('SCSS Built!')
|
logger.info('SCSS Built!')
|
||||||
|
|
|
@ -9,7 +9,6 @@ nose2==0.6.5
|
||||||
pelican-minify==0.9
|
pelican-minify==0.9
|
||||||
pelican==3.7.1
|
pelican==3.7.1
|
||||||
pyembed-markdown==1.1.0
|
pyembed-markdown==1.1.0
|
||||||
pygments-style-github==0.4
|
|
||||||
python-resize-image==1.1.3
|
python-resize-image==1.1.3
|
||||||
pyyaml==3.12
|
pyyaml==3.12
|
||||||
safety==0.5.1
|
safety==0.5.1
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
/* @group Libraries */
|
/* @group Libraries */
|
||||||
@import "node_modules/bootstrap-sass/assets/stylesheets/_bootstrap";
|
@import "node_modules/bootstrap-sass/assets/stylesheets/_bootstrap";
|
||||||
@import "node_modules/animate.css/animate";
|
@import "node_modules/animate.css/animate";
|
||||||
|
@import "node_modules/pygments-css/github";
|
||||||
|
|
||||||
$fa-font-path: "../fonts";
|
$fa-font-path: "../fonts";
|
||||||
@import "node_modules/font-awesome/scss/font-awesome";
|
@import "node_modules/font-awesome/scss/font-awesome";
|
||||||
|
@ -18,7 +19,6 @@ $fa-font-path: "../fonts";
|
||||||
|
|
||||||
/* @group Other Imports */
|
/* @group Other Imports */
|
||||||
@import "creative/creative";
|
@import "creative/creative";
|
||||||
@import "pygment";
|
|
||||||
@import "homepage";
|
@import "homepage";
|
||||||
@import "footer";
|
@import "footer";
|
||||||
@import "library-overrides";
|
@import "library-overrides";
|
||||||
|
|
Reference in a new issue