From bbf9250a7696872b334b938bc737441509f365ee Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Wed, 10 Apr 2019 14:03:54 +0200 Subject: [PATCH] Add Pygments code highlighting plugin --- .travis.yml | 4 +++- configs/markdown-highlighter.ini | 2 ++ qslabs_site.lektorproject | 3 +++ templates/layout.html | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 configs/markdown-highlighter.ini diff --git a/.travis.yml b/.travis.yml index 106097b7b..98efeaf1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,9 @@ python: 3.6 cache: directories: - $HOME/.cache/pip -install: "pip install Lektor" +install: + - pip install Lektor + - lektor plugins add markdown-higlighter script: "lektor build" deploy: provider: script diff --git a/configs/markdown-highlighter.ini b/configs/markdown-highlighter.ini new file mode 100644 index 000000000..b23d33ffc --- /dev/null +++ b/configs/markdown-highlighter.ini @@ -0,0 +1,2 @@ +[pygments] +style = colorful diff --git a/qslabs_site.lektorproject b/qslabs_site.lektorproject index b82251abd..0e057b35c 100644 --- a/qslabs_site.lektorproject +++ b/qslabs_site.lektorproject @@ -3,3 +3,6 @@ name = Quansight Labs blog [servers.ghpages] target = ghpages+https://Quansight-Labs/quansight-labs-site?cname=labs.quansight.org + +[packages] +lektor-markdown-highlighter = 0.3.1 diff --git a/templates/layout.html b/templates/layout.html index df3e3749e..5dcdccd66 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -11,6 +11,7 @@ Quansight Labs Blog +