Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use ‘ghc-syntax-highlighter’ (#35)
  • Loading branch information
mrkkrp committed May 13, 2018
1 parent 41f5ade commit 6977782
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 21 deletions.
36 changes: 18 additions & 18 deletions .circleci/config.yml
Expand Up @@ -2,19 +2,19 @@ version: 2
jobs:
build:
docker:
- image: mrkkrp/mk-com:0.1.1
- image: mrkkrp/mk-com:0.2.0
steps:
- checkout
- restore_cache:
keys:
- stack-home-{{ checksum "stack.yaml" }}
- stack-home-
- restore_cache:
keys:
- stack-work-{{ checksum "stack.yaml" }}
- stack-work-
- run: stack --version
- run: stack setup
# - restore_cache:
# keys:
# - stack-home-{{ checksum "stack.yaml" }}
# - stack-home-
# - restore_cache:
# keys:
# - stack-work-{{ checksum "stack.yaml" }}
# - stack-work-
# - run: stack --version
# - run: stack setup
- run: stack build
- run: stack test
- run: stack exec mk-com -- clean
Expand All @@ -25,16 +25,16 @@ jobs:
root: ~/project
paths:
- _build
- save_cache:
key: stack-home-{{ checksum "stack.yaml" }}
paths: "~/.stack"
- save_cache:
key: stack-work-{{ checksum "stack.yaml" }}
paths: ".stack-work"
# - save_cache:
# key: stack-home-{{ checksum "stack.yaml" }}
# paths: "~/.stack"
# - save_cache:
# key: stack-work-{{ checksum "stack.yaml" }}
# paths: ".stack-work"

deploy:
docker:
- image: mrkkrp/mk-com:0.1.1
- image: mrkkrp/mk-com:0.2.0
steps:
- attach_workspace:
at: /tmp
Expand Down
12 changes: 11 additions & 1 deletion .circleci/images/primary/Dockerfile
Expand Up @@ -5,7 +5,17 @@ WORKDIR /home/
ENV PATH /home/circleci/.local/bin:$PATH

RUN sudo apt-get --quiet update
RUN sudo apt-get --quiet install python python-pip rsync texlive-latex-base texlive-latex-extra
RUN sudo apt-get --quiet install python python-pip rsync texlive-latex-base texlive-latex-extra libtinfo-dev
RUN pip install html5validator
RUN (curl -sSL https://get.haskellstack.org/ | sh) || true
RUN stack upgrade

WORKDIR /home/circleci
RUN git clone https://github.com/mrkkrp/markkarpov.com project
WORKDIR /home/circleci/project
COPY stack.yaml stack.yaml
RUN stack setup
RUN stack build
RUN stack test
WORKDIR /home/circleci
RUN rm -rvf project
5 changes: 5 additions & 0 deletions .circleci/images/primary/stack.yaml
@@ -0,0 +1,5 @@
resolver: nightly-2018-05-13
packages:
- '.'
extra-deps:
- mmark-ext-0.2.1.0
1 change: 1 addition & 0 deletions app/Main.hs
Expand Up @@ -448,6 +448,7 @@ getPostHelper env path = do
, Ext.mathJax (Just '$')
, Ext.obfuscateEmail "protected-email"
, Ext.punctuationPrettifier
, Ext.ghcSyntaxHighlighter
, Ext.skylighting
, Ext.toc "toc" toc
, addTableClasses
Expand Down
4 changes: 3 additions & 1 deletion stack.yaml
@@ -1,3 +1,5 @@
resolver: lts-11.0
resolver: nightly-2018-05-13
packages:
- '.'
extra-deps:
- mmark-ext-0.2.1.0
2 changes: 1 addition & 1 deletion static/css/bootstrap.min.css

Large diffs are not rendered by default.

0 comments on commit 6977782

Please sign in to comment.