Use pygments from node
This commit is contained in:
parent
6e81d3dad3
commit
c543da4838
5 changed files with 2 additions and 9 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -162,7 +162,3 @@ jspm_packages
|
|||
|
||||
# .nfs files are created when an open file is removed but is still being accessed
|
||||
.nfs*
|
||||
|
||||
|
||||
### Custom ###
|
||||
static/src/scss/pygment.css
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"bootstrap-sass": "=3.3.7",
|
||||
"font-awesome": "=4.6.3",
|
||||
"jquery": "=3.0.0",
|
||||
"pygments-css": "=1.0.0",
|
||||
"underscore": "=1.8.3",
|
||||
"wow.js": "=1.2.0"
|
||||
},
|
||||
|
|
|
@ -7,7 +7,6 @@ django-bootstrap-form==3.2.1
|
|||
flake8==3.2.1
|
||||
honcho==0.7.1
|
||||
psycopg2==2.6.2
|
||||
pygments-style-github==0.4
|
||||
safety==0.5.1
|
||||
wagtail>=1.8,<1.9
|
||||
wagtail-metadata==0.3.0
|
||||
|
|
|
@ -7,9 +7,6 @@ then
|
|||
echo ">>> WARNING: Building in Production Mode!"
|
||||
fi
|
||||
|
||||
echo ">> Generating Pygments styles..."
|
||||
env/bin/pygmentize -S github -f html -a .highlight > static/src/scss/pygment.css
|
||||
|
||||
echo ">> Building SCSS..."
|
||||
node-sass static/src/scss/index.scss static/build/css/index.css --source-map-embed
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* @group Libraries */
|
||||
@import "node_modules/bootstrap-sass/assets/stylesheets/_bootstrap";
|
||||
@import "node_modules/animate.css/animate";
|
||||
@import "node_modules/pygments-css/github.css";
|
||||
|
||||
$fa-font-path: "../fonts";
|
||||
@import "node_modules/font-awesome/scss/font-awesome";
|
||||
|
@ -18,7 +19,6 @@ $fa-font-path: "../fonts";
|
|||
|
||||
/* @group Other Imports */
|
||||
@import "creative/creative";
|
||||
@import "pygment";
|
||||
@import "homepage";
|
||||
@import "footer";
|
||||
@import "library-overrides";
|
||||
|
|
Reference in a new issue