Skip to content

Commit cfa9148

Browse files
use wkhtmltox 0.12.4 to support TOC
1 parent c6c3194 commit cfa9148

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docker/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm
88
RUN yum update -y
99
RUN yum install -y python36u python36u-libs python36u-devel python36u-pip
1010
RUN yum install -y git
11-
RUN yum install -y https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
11+
RUN yum install -y wget
12+
13+
# Install wkhtmltox 0.12.4 since 0.12.5 cannot create TOCs, see https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3995
14+
# RUN yum install -y https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
15+
RUN yum install -y yum install -y wkhtmltopdf
16+
RUN wget -q https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -O /tmp/wkhtmltox.tar.xz && \
17+
tar xvf /tmp/wkhtmltox.tar.xz -C /tmp && \
18+
cp -rp /tmp/wkhtmltox/* /usr/local && \
19+
rm -rf /tmp/wkhtmltox*
20+
1221
RUN pip3.6 install --upgrade pip
1322
RUN pip3.6 install mkdocs \
1423
mkdocs-material \

0 commit comments

Comments
 (0)