Skip to content

Commit 6977782

Browse files
authored
Use ‘ghc-syntax-highlighter’ (#35)
1 parent 41f5ade commit 6977782

File tree

6 files changed

+39
-21
lines changed

6 files changed

+39
-21
lines changed

.circleci/config.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: mrkkrp/mk-com:0.1.1
5+
- image: mrkkrp/mk-com:0.2.0
66
steps:
77
- checkout
8-
- restore_cache:
9-
keys:
10-
- stack-home-{{ checksum "stack.yaml" }}
11-
- stack-home-
12-
- restore_cache:
13-
keys:
14-
- stack-work-{{ checksum "stack.yaml" }}
15-
- stack-work-
16-
- run: stack --version
17-
- run: stack setup
8+
# - restore_cache:
9+
# keys:
10+
# - stack-home-{{ checksum "stack.yaml" }}
11+
# - stack-home-
12+
# - restore_cache:
13+
# keys:
14+
# - stack-work-{{ checksum "stack.yaml" }}
15+
# - stack-work-
16+
# - run: stack --version
17+
# - run: stack setup
1818
- run: stack build
1919
- run: stack test
2020
- run: stack exec mk-com -- clean
@@ -25,16 +25,16 @@ jobs:
2525
root: ~/project
2626
paths:
2727
- _build
28-
- save_cache:
29-
key: stack-home-{{ checksum "stack.yaml" }}
30-
paths: "~/.stack"
31-
- save_cache:
32-
key: stack-work-{{ checksum "stack.yaml" }}
33-
paths: ".stack-work"
28+
# - save_cache:
29+
# key: stack-home-{{ checksum "stack.yaml" }}
30+
# paths: "~/.stack"
31+
# - save_cache:
32+
# key: stack-work-{{ checksum "stack.yaml" }}
33+
# paths: ".stack-work"
3434

3535
deploy:
3636
docker:
37-
- image: mrkkrp/mk-com:0.1.1
37+
- image: mrkkrp/mk-com:0.2.0
3838
steps:
3939
- attach_workspace:
4040
at: /tmp

.circleci/images/primary/Dockerfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ WORKDIR /home/
55
ENV PATH /home/circleci/.local/bin:$PATH
66

77
RUN sudo apt-get --quiet update
8-
RUN sudo apt-get --quiet install python python-pip rsync texlive-latex-base texlive-latex-extra
8+
RUN sudo apt-get --quiet install python python-pip rsync texlive-latex-base texlive-latex-extra libtinfo-dev
99
RUN pip install html5validator
1010
RUN (curl -sSL https://get.haskellstack.org/ | sh) || true
1111
RUN stack upgrade
12+
13+
WORKDIR /home/circleci
14+
RUN git clone https://github.com/mrkkrp/markkarpov.com project
15+
WORKDIR /home/circleci/project
16+
COPY stack.yaml stack.yaml
17+
RUN stack setup
18+
RUN stack build
19+
RUN stack test
20+
WORKDIR /home/circleci
21+
RUN rm -rvf project

.circleci/images/primary/stack.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resolver: nightly-2018-05-13
2+
packages:
3+
- '.'
4+
extra-deps:
5+
- mmark-ext-0.2.1.0

app/Main.hs

+1
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ getPostHelper env path = do
448448
, Ext.mathJax (Just '$')
449449
, Ext.obfuscateEmail "protected-email"
450450
, Ext.punctuationPrettifier
451+
, Ext.ghcSyntaxHighlighter
451452
, Ext.skylighting
452453
, Ext.toc "toc" toc
453454
, addTableClasses

stack.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
resolver: lts-11.0
1+
resolver: nightly-2018-05-13
22
packages:
33
- '.'
4+
extra-deps:
5+
- mmark-ext-0.2.1.0

static/css/bootstrap.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)