Skip to content

Commit

Permalink
feat: migrate to chroma syntax highlighting
Browse files Browse the repository at this point in the history
this involves ripping out the python CI work since chroma is
distributed as a static binary.
  • Loading branch information
Adam Simpson committed Sep 11, 2020
1 parent 5402eb4 commit 0306681
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
@@ -1,8 +1,3 @@
language: python

python:
- 3.7

dist: xenial

os:
Expand All @@ -11,7 +6,6 @@ os:

install:
- ./ci/install.sh
- pip install -r requirements.txt

script:
- make cycle
Expand Down
3 changes: 3 additions & 0 deletions ci/install.sh
Expand Up @@ -12,3 +12,6 @@ fi
curl -O "https://beta.quicklisp.org/quicklisp.lisp";
/usr/local/bin/sbcl --non-interactive --load quicklisp.lisp --eval "(quicklisp-quickstart:install :path \"~/quicklisp\")";
/usr/local/bin/sbcl --non-interactive --load ~/quicklisp/setup.lisp --eval "(ql::without-prompting (ql:add-to-init-file))";

# use my fork of 3bmd
git clone --depth 1 "https://github.com/asimpson/3bmd.git" ~/quicklisp/local-projects/3bmd
2 changes: 1 addition & 1 deletion ci/linux.sh
@@ -1,7 +1,7 @@
#!/bin/sh

sudo apt update -qy;
sudo apt install -qy curl python3 zlib1g-dev sbcl build-essential git;
sudo apt install -qy curl zlib1g-dev sbcl build-essential git;
git clone --depth 1 -b sbcl-2.0.7 git://git.code.sf.net/p/sbcl/sbcl /tmp/sbcl;
cd /tmp/sbcl || exit;
sh make.sh --with-sb-core-compression;
Expand Down
2 changes: 1 addition & 1 deletion cycle.asd
Expand Up @@ -4,7 +4,7 @@
:description "A opinionated static site builder."
:author "Adam Simpson <adam@adamsimpson.net>"
:license "GNU GPLv3"
:version "0.2.12"
:version "0.3.0"
:serial t
:depends-on (
:local-time
Expand Down
3 changes: 2 additions & 1 deletion cycle.lisp
Expand Up @@ -328,7 +328,8 @@
(setf css (uiop:read-file-string (concat cwd "site.css"))))
(setf mustache:*default-pathname-type* "mustache")
(setf 3bmd-code-blocks:*code-blocks* t)
(setf 3bmd-code-blocks:*renderer* :pygments)
(setf 3bmd-code-blocks:*chroma-style* "dracula")
(setf 3bmd-code-blocks:*renderer* :chroma)
(setf posts (reverse (sort (gen-data)
'sort-by-ids
:key 'car)))
Expand Down
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

0 comments on commit 0306681

Please sign in to comment.