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,2 +1,3 @@
1
+/.idea
1 2
 /public
2 3
 _gen

+ 3
- 2
Dockerfile View File

@@ -4,8 +4,9 @@
4 4
 
5 5
 FROM debian:stretch as hugo
6 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 11
 ENV HUGO_VERSION 0.54.0
11 12
 ENV HUGO_BINARY hugo_extended_${HUGO_VERSION}_Linux-64bit.deb

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

@@ -4,7 +4,7 @@
4 4
   <div>
5 5
     {{- $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) -}}
6 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 8
     </a>
9 9
   </div>
10 10
   {{ end }}

Loading…
Cancel
Save