Skip to content

Commit

Permalink
Fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan42 committed Nov 20, 2024
1 parent b7846fc commit a9c8aab
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ all: $(TARGETS)

# Step 0: Create build folder
$(BUILD_FOLDER):
mkdir -p $(BUILD_FOLDER)
mkdir -p $(BUILD_FOLDER)

# Step 1: Convert mermaid graphs into pngs and generate README-out.md
README-out.md: README.md
docker run \
-u $(shell id -u):$(shell id -g) \
-v $(shell pwd):/data \
-w /data/ \
minlag/mermaid-cli \
-i README.md -o README-out.md --outputFormat png \
--scale 10
docker run \
-u $(shell id -u):$(shell id -g) \
-v $(shell pwd):/data \
-w /data/ \
minlag/mermaid-cli \
-i README.md -o README-out.md --outputFormat png \
--scale 10

# Step 2: Generate PDFs from README-out.md using pandoc
$(BUILD_FOLDER)/%.pdf: $(BUILD_FOLDER) README-out.md
docker run \
-u $(shell id -u):$(shell id -g) \
-w /data/ \
-v $(shell pwd):/data \
ghcr.io/ethan42/pandoctex \
pandoc README-out.md -f gfm -s \
--pdf-engine=xelatex \
-o "$(BUILD_FOLDER)/$*.pdf" \
-V mainfont="Linux Libertine O" \
-V monofont="Noto Mono" \
-V fontsize=12pt \
-V colorlinks=true -V linkcolor=darkgray -V urlcolor=blue -V toccolor=gray
docker run \
-u $(shell id -u):$(shell id -g) \
-w /data/ \
-v $(shell pwd):/data \
ghcr.io/ethan42/pandoctex \
pandoc README-out.md -f gfm -s \
--pdf-engine=xelatex \
-o "$(BUILD_FOLDER)/$*.pdf" \
-V mainfont="Linux Libertine O" \
-V monofont="Noto Mono" \
-V fontsize=12pt \
-V colorlinks=true -V linkcolor=darkgray -V urlcolor=blue -V toccolor=gray

0 comments on commit a9c8aab

Please sign in to comment.