1
Fork 0

Use pygments from node

This commit is contained in:
Jake Howard 2016-12-19 22:51:04 +00:00
parent 6e81d3dad3
commit c543da4838
5 changed files with 2 additions and 9 deletions

4
.gitignore vendored
View file

@ -162,7 +162,3 @@ jspm_packages
# .nfs files are created when an open file is removed but is still being accessed # .nfs files are created when an open file is removed but is still being accessed
.nfs* .nfs*
### Custom ###
static/src/scss/pygment.css

View file

@ -19,6 +19,7 @@
"bootstrap-sass": "=3.3.7", "bootstrap-sass": "=3.3.7",
"font-awesome": "=4.6.3", "font-awesome": "=4.6.3",
"jquery": "=3.0.0", "jquery": "=3.0.0",
"pygments-css": "=1.0.0",
"underscore": "=1.8.3", "underscore": "=1.8.3",
"wow.js": "=1.2.0" "wow.js": "=1.2.0"
}, },

View file

@ -7,7 +7,6 @@ django-bootstrap-form==3.2.1
flake8==3.2.1 flake8==3.2.1
honcho==0.7.1 honcho==0.7.1
psycopg2==2.6.2 psycopg2==2.6.2
pygments-style-github==0.4
safety==0.5.1 safety==0.5.1
wagtail>=1.8,<1.9 wagtail>=1.8,<1.9
wagtail-metadata==0.3.0 wagtail-metadata==0.3.0

View file

@ -7,9 +7,6 @@ then
echo ">>> WARNING: Building in Production Mode!" echo ">>> WARNING: Building in Production Mode!"
fi fi
echo ">> Generating Pygments styles..."
env/bin/pygmentize -S github -f html -a .highlight > static/src/scss/pygment.css
echo ">> Building SCSS..." echo ">> Building SCSS..."
node-sass static/src/scss/index.scss static/build/css/index.css --source-map-embed node-sass static/src/scss/index.scss static/build/css/index.css --source-map-embed

View file

@ -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.css";
$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";