Skip to content

Commit

Permalink
feat(pages): Add mobi output to static site resources
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Apr 1, 2022
1 parent 61cf7d3 commit 9ae5846
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ $(BUILDDIR)/%.mdbook/book.toml: %-manifest.yml

DISTDIRS += *.static

%.static: $(addprefix $(BUILDDIR)/%.static/,config.toml content/_index.md templates/index.html sass/style.sass) %-epub-$(_poster).jpg %.pdfs %.epub %.mdbook
%.static: $(addprefix $(BUILDDIR)/%.static/,config.toml content/_index.md templates/index.html sass/style.sass) %-epub-$(_poster).jpg %.pdfs %.epub %.mobi %.mdbook
set -o extendedglob
export VERSION_CONTROL=none
local zola_src="$(<D)/static"
Expand Down Expand Up @@ -1237,6 +1237,7 @@ $(BUILDDIR)/%.static/content/_index.md: %-manifest.yml %-epub-$(_poster).jpg %.p
$(YQ) -r '.abstract | if . == null then "" else . end' $<
echo "- [Online oku](oku)"
echo "- EPUB olarak indir: [epub]($*.epub)"
echo "- MOBI olarak indir: [mobi]($*.mobi)"
for pdf in $$pdfs; do
echo "- PDF olarak indir: [$${$${pdf$(hash)$*-}%.pdf}]($$pdf)"
done
Expand Down

0 comments on commit 9ae5846

Please sign in to comment.