Browse Source

Fix docker image to include pygments.rb

master
Chris Smith 5 years ago
parent
commit
39e59d11ed
3 changed files with 5 additions and 3 deletions
  1. 1
    0
      .gitignore
  2. 3
    2
      Dockerfile
  3. 1
    1
      themes/book/layouts/partials/docs/git-footer.html

+ 1
- 0
.gitignore View File

1
+/.idea
1
 /public
2
 /public
2
 _gen
3
 _gen

+ 3
- 2
Dockerfile View File

4
 
4
 
5
 FROM debian:stretch as hugo
5
 FROM debian:stretch as hugo
6
 RUN apt-get -qq update \
6
 RUN apt-get -qq update \
7
-	&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends python-pygments git ca-certificates asciidoctor \
8
-	&& rm -rf /var/lib/apt/lists/*
7
+	&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends python-pygments git ca-certificates ruby \
8
+	&& rm -rf /var/lib/apt/lists/* \
9
+	&& gem install asciidoctor pygments.rb
9
 
10
 
10
 ENV HUGO_VERSION 0.54.0
11
 ENV HUGO_VERSION 0.54.0
11
 ENV HUGO_BINARY hugo_extended_${HUGO_VERSION}_Linux-64bit.deb
12
 ENV HUGO_BINARY hugo_extended_${HUGO_VERSION}_Linux-64bit.deb

+ 1
- 1
themes/book/layouts/partials/docs/git-footer.html View File

4
   <div>
4
   <div>
5
     {{- $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) -}}
5
     {{- $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) -}}
6
     <a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener">
6
     <a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener">
7
-      <img src="{{ "svg/code-merge.svg" | relURL }}" /> Last modified at {{ $date }} in {{ .AbbreviatedHash }}
7
+      <img src="{{ "svg/code-merge.svg" | relURL }}" /> Last modified on {{ $date }} in {{ .AbbreviatedHash }}
8
     </a>
8
     </a>
9
   </div>
9
   </div>
10
   {{ end }}
10
   {{ end }}

Loading…
Cancel
Save