mirror of
https://github.com/dunyakirkali/letterpress.git
synced 2025-07-03 23:15:23 +00:00
Fix figure issue
This commit is contained in:
parent
ddf73e147f
commit
cac7d5a0ff
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.DS_Store
|
||||
.vscode
|
||||
output/
|
||||
*.pdf
|
||||
*.epub
|
||||
|
13
Makefile
13
Makefile
@ -5,17 +5,15 @@ ASCIIDOC_FILES := $(wildcard $(SOURCE_FOLDER)/*.adoc)
|
||||
FIGURES = $(shell find . -name '*.svg')
|
||||
|
||||
PDF_NAME := book.pdf
|
||||
PDF_PATH := output/$(PDF_NAME)
|
||||
|
||||
EPUB_NAME := book.epub
|
||||
EPUB_PATH := output/$(EPUB_NAME)
|
||||
|
||||
ASCIIDOC_FLAGS = \
|
||||
--doctype book
|
||||
|
||||
all: $(PDF_PATH) $(EPUB_PATH)
|
||||
all: $(PDF_NAME) $(EPUB_NAME)
|
||||
|
||||
$(PDF_PATH): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | output
|
||||
$(PDF_NAME): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml
|
||||
asciidoctor-pdf book.adoc $(ASCIIDOC_FLAGS) \
|
||||
-o $@ \
|
||||
-r asciidoctor-diagram \
|
||||
@ -24,7 +22,7 @@ $(PDF_PATH): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | out
|
||||
-a allow-uri-read \
|
||||
--safe-mode server
|
||||
|
||||
$(EPUB_PATH): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | output
|
||||
$(EPUB_NAME): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml
|
||||
asciidoctor-epub3 book.adoc $(ASCIIDOC_FLAGS) \
|
||||
-o $@ \
|
||||
-r asciidoctor-diagram \
|
||||
@ -36,8 +34,5 @@ $(EPUB_PATH): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | ou
|
||||
count:
|
||||
wc -w source/*
|
||||
|
||||
output:
|
||||
mkdir output
|
||||
|
||||
clean:
|
||||
rm -vrf output
|
||||
rm -vrf $(PDF_NAME) $(EPUB_NAME)
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
Loading…
Reference in New Issue
Block a user