Commit da260134 authored by Kaushal Modi's avatar Kaushal Modi

Refactor the Pygments/Chroma CSS generation script

parent cb798bec
#!/usr/bin/env bash
# Time-stamp: <2018-08-01 16:40:40 kmodi>
# Pygments
# https://github.com/richleland/pygments-css
theme=trac
pygmentize -S "${theme}" -f html -a .highlight > "${theme}"_pygments.css
gen_pygments_css () {
pygmentize -S "${1}" -f html -a .highlight > "${1}"_pygments.css
}
gen_pygments_css trac
# Go Chroma
# https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css
theme=trac
hugo gen chromastyles --style="${theme}" > "${theme}"_chroma.css
theme=github
hugo gen chromastyles --style="${theme}" > "${theme}"_chroma.css
gen_chroma_css () {
hugo gen chromastyles --style="${1}" > "${1}"_chroma.css
}
gen_chroma_css trac
gen_chroma_css github
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment