mirror of
https://codeberg.org/openpgp/notes.git
synced 2025-09-10 19:59:40 +02:00
Adapt Containerfile to build with a patched version of sphinx
Sphinx >= 7.1.0 has issues rendering EPUBs correctly. Install latest sphinx and apply a patch to fix EPUB rendering. Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
parent
eeb1de8ab7
commit
02c7b04cfd
1 changed files with 8 additions and 5 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,13 +1,16 @@
|
||||||
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
|
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
FROM sphinxdoc/sphinx AS build
|
FROM archlinux:latest AS build
|
||||||
RUN pip install myst-parser
|
|
||||||
COPY book/ /book
|
COPY book/ /book
|
||||||
WORKDIR /book
|
WORKDIR /book
|
||||||
RUN make html
|
# fix EPUB rendering: https://github.com/sphinx-doc/sphinx/issues/11598
|
||||||
RUN make epub
|
RUN \
|
||||||
|
pacman -Sy --needed --noconfirm archlinux-keyring \
|
||||||
|
&& pacman -Syu --needed --noconfirm epubcheck make patch python-myst-parser python-sphinx \
|
||||||
|
&& patch -Np1 -d /usr/lib/python3.11/site-packages/ -i /book/patches/sphinx-11766.patch \
|
||||||
|
&& make epub html
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /book/build/html /
|
COPY --from=build /book/build/html /
|
||||||
COPY --from=build /book/build/epub/OpenPGPforapplicationdevelopers.epub /
|
COPY --from=build /book/build/epub/OpenPGPforapplicationdevelopers.epub /
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue