Skip to content

Commit 8d2a44c

Browse files
authored
Merge pull request #846 from vbatts/oci-container
Makefile: switch to the new OCI container image
2 parents 32e130c + b619890 commit 8d2a44c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
GO15VENDOREXPERIMENT=1
2-
export GO15VENDOREXPERIMENT
1+
EPOCH_TEST_COMMIT ?= v0.2.0
32

43
DOCKER ?= $(shell command -v docker 2>/dev/null)
54
PANDOC ?= $(shell command -v pandoc 2>/dev/null)
65

76
OUTPUT_DIRNAME ?= output
87
DOC_FILENAME ?= oci-image-spec
98

10-
PANDOC_CONTAINER ?= quay.io/oci/pandoc:1.17.0.3-2.fc25.x86_64
9+
PANDOC_CONTAINER ?= ghcr.io/opencontainers/pandoc:2.9.2.1-8.fc33.x86_64@sha256:5d81ff930a043295a557be8b003ece2a33d14e91b28c50d368413b83372f8d28
1110
ifeq "$(strip $(PANDOC))" ''
1211
ifneq "$(strip $(DOCKER))" ''
1312
PANDOC = $(DOCKER) run \
@@ -40,8 +39,6 @@ DOC_FILES := \
4039
FIGURE_FILES := \
4140
img/media-types.png
4241

43-
EPOCH_TEST_COMMIT ?= v0.2.0
44-
4542
TOOLS := esc gitvalidation glide glide-vc
4643

4744
default: check-license lint test
@@ -69,13 +66,13 @@ $(OUTPUT_DIRNAME)/$(DOC_FILENAME).pdf: $(DOC_FILES) $(FIGURE_FILES)
6966
else
7067
$(OUTPUT_DIRNAME)/$(DOC_FILENAME).pdf: $(DOC_FILES) $(FIGURE_FILES)
7168
@mkdir -p $(OUTPUT_DIRNAME)/ && \
72-
$(PANDOC) -f markdown_github -t latex --latex-engine=xelatex -o $(PANDOC_DST)$@ $(patsubst %,$(PANDOC_SRC)%,$(DOC_FILES))
69+
$(PANDOC) -f gfm -t latex --pdf-engine=xelatex -V geometry:margin=0.5in,bottom=0.8in -V block-headings -o $(PANDOC_DST)$@ $(patsubst %,$(PANDOC_SRC)%,$(DOC_FILES))
7370
ls -sh $(realpath $@)
7471

7572
$(OUTPUT_DIRNAME)/$(DOC_FILENAME).html: header.html $(DOC_FILES) $(FIGURE_FILES)
7673
@mkdir -p $(OUTPUT_DIRNAME)/ && \
7774
cp -ap img/ $(shell pwd)/$(OUTPUT_DIRNAME)/&& \
78-
$(PANDOC) -f markdown_github -t html5 -H $(PANDOC_SRC)header.html --standalone -o $(PANDOC_DST)$@ $(patsubst %,$(PANDOC_SRC)%,$(DOC_FILES))
75+
$(PANDOC) -f gfm -t html5 -H $(PANDOC_SRC)header.html --standalone -o $(PANDOC_DST)$@ $(patsubst %,$(PANDOC_SRC)%,$(DOC_FILES))
7976
ls -sh $(realpath $@)
8077
endif
8178

0 commit comments

Comments
 (0)