mirror of
https://codeberg.org/openpgp/notes.git
synced 2025-09-09 11:19:41 +02:00
Adapt HTML and EPUB targets to run conversion target before rendering EPUB or HTML output. Fixes https://codeberg.org/openpgp/notes/issues/166 Signed-off-by: David Runge <dave@sleepmap.de>
16 lines
622 B
Docker
16 lines
622 B
Docker
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
FROM archlinux:latest AS build
|
|
COPY book/ /book
|
|
WORKDIR /book
|
|
# fix EPUB rendering: https://github.com/sphinx-doc/sphinx/issues/11598
|
|
RUN \
|
|
pacman -Sy --needed --noconfirm archlinux-keyring \
|
|
&& pacman -Syu --needed --noconfirm inkscape 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
|
|
COPY --from=build /book/build/html /
|
|
COPY --from=build /book/build/epub/OpenPGPforapplicationdevelopers.epub /
|