1
Fork 0

Add Pygments

This commit is contained in:
Jake Howard 2016-05-23 17:38:13 +01:00
parent 14b20454ba
commit a6eaed885c
3 changed files with 12 additions and 0 deletions

2
.gitignore vendored
View file

@ -61,3 +61,5 @@ target/
output/ output/
theme/static/build/ theme/static/build/
pelican_plugins/ pelican_plugins/
theme/static/src/scss/pygment.css

View file

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

View file

@ -22,6 +22,7 @@ $fa-font-path: "../fonts";
/* @group Other Imports */ /* @group Other Imports */
@import "creative/creative"; @import "creative/creative";
@import "pygment";
/* @end Other Imports */ /* @end Other Imports */
@ -43,3 +44,9 @@ $fa-font-path: "../fonts";
.btn-primary-dark { .btn-primary-dark {
@include button-variant($white, $brand-orange-dark, $brand-orange-dark); @include button-variant($white, $brand-orange-dark, $brand-orange-dark);
} }
.highlight> pre {
background-color: transparent;
font-size: $font-size-base;
}