Skip to content

Commit 860836d

Browse files
fix: epub build
1 parent a1dbe85 commit 860836d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
# Work around bugs in mdbook-epub.
6262
mkdir nix-pills.epub-fix
6363
( cd nix-pills.epub-fix
64-
unzip -q "../book/Nix Pills.epub"
64+
unzip -q "../book/epub/Nix Pills.epub"
6565
# Fix invalid ids.
6666
sed -Ei 's/(id(ref)?=")([0-9])/\1p\3/g' OEBPS/content.opf
6767
sed -Ei 's/(id="|href="#)([0-9])/\1fn\2/g' OEBPS/20-basic-dependencies-and-hooks.html
@@ -71,7 +71,7 @@
7171
sed -Ei 's/("[0-9a-z-]+\.)md(["#])/\1html\2/g' OEBPS/*.html
7272
# Remove unnecessary page breaks, the sections are short.
7373
substituteInPlace OEBPS/stylesheet.css --replace-fail "page-break-before: always;" ""
74-
zip -q "../book/Nix Pills.epub" **/*
74+
zip -q "../book/epub/Nix Pills.epub" **/*
7575
)
7676
7777
runHook postBuild
@@ -85,7 +85,7 @@
8585
mkdir -p "$dst"
8686
8787
manual="$dst/nix-pills.epub"
88-
mv "book/Nix Pills.epub" "$manual"
88+
mv "book/epub/Nix Pills.epub" "$manual"
8989
9090
mkdir -p "$out/nix-support"
9191
echo "nix-build out $out" >> "$out/nix-support/hydra-build-products"

0 commit comments

Comments
 (0)