Skip to content

Commit 7b0ce49

Browse files
committed
Merge pull request #100 from vbatts/formatting_fixup
*: fixup the docs output
2 parents 8589c64 + 30bea7f commit 7b0ce49

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Makefile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ DOC_FILES := \
66
code-of-conduct.md \
77
project.md \
88
media-types.md \
9-
inline-png-media-types.md \
109
manifest.md \
1110
serialization.md
1211

1312
FIGURE_FILES := \
1413
img/media-types.png
15-
OUTPUT ?= output/
14+
15+
OUTPUT ?= output/
16+
DOC_FILENAME ?= oci-image-spec
1617

1718
default: help
1819

@@ -26,9 +27,9 @@ help:
2627
fmt:
2728
for i in *.json ; do jq --indent 2 -M . "$${i}" > xx && cat xx > "$${i}" && rm xx ; done
2829

29-
docs: $(OUTPUT)/docs.pdf $(OUTPUT)/docs.html
30+
docs: $(OUTPUT)/$(DOC_FILENAME).pdf $(OUTPUT)/$(DOC_FILENAME).html
3031

31-
$(OUTPUT)/docs.pdf: $(DOC_FILES) $(FIGURE_FILES)
32+
$(OUTPUT)/$(DOC_FILENAME).pdf: $(DOC_FILES) $(FIGURE_FILES)
3233
@mkdir -p $(OUTPUT)/ && \
3334
cp -ap img/ $(shell pwd)/$(OUTPUT)/&& \
3435
$(DOCKER) run \
@@ -38,10 +39,10 @@ $(OUTPUT)/docs.pdf: $(DOC_FILES) $(FIGURE_FILES)
3839
-v $(shell pwd)/$(OUTPUT)/:/$(OUTPUT)/ \
3940
-u $(shell id -u) \
4041
--workdir /input \
41-
vbatts/pandoc -f markdown_github -t latex -o /$(OUTPUT)/docs.pdf $(patsubst %,/input/%,$(DOC_FILES)) && \
42+
vbatts/pandoc -f markdown_github -t latex -o /$(OUTPUT)/$(DOC_FILENAME).pdf $(patsubst %,/input/%,$(DOC_FILES)) && \
4243
ls -sh $(shell readlink -f $@)
4344

44-
$(OUTPUT)/docs.html: $(DOC_FILES) $(FIGURE_FILES)
45+
$(OUTPUT)/$(DOC_FILENAME).html: $(DOC_FILES) $(FIGURE_FILES)
4546
@mkdir -p $(OUTPUT)/ && \
4647
cp -ap img/ $(shell pwd)/$(OUTPUT)/&& \
4748
$(DOCKER) run \
@@ -51,7 +52,7 @@ $(OUTPUT)/docs.html: $(DOC_FILES) $(FIGURE_FILES)
5152
-v $(shell pwd)/$(OUTPUT)/:/$(OUTPUT)/ \
5253
-u $(shell id -u) \
5354
--workdir /input \
54-
vbatts/pandoc -f markdown_github -t html5 -o /$(OUTPUT)/docs.html $(patsubst %,/input/%,$(DOC_FILES)) && \
55+
vbatts/pandoc -f markdown_github -t html5 -o /$(OUTPUT)/$(DOC_FILENAME).html $(patsubst %,/input/%,$(DOC_FILES)) && \
5556
ls -sh $(shell readlink -f $@)
5657

5758
code-of-conduct.md:
@@ -81,9 +82,6 @@ test:
8182
img/%.png: %.dot
8283
dot -Tpng $^ > $@
8384

84-
inline-png-%.md: img/%.png
85-
@printf '<img src="data:image/png;base64,%s" alt="$*"/>\n' "$(shell base64 $^)" > $@
86-
8785
clean:
8886
rm -rf *~ $(OUTPUT)
8987
.PHONY: \

media-types.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ This section shows where the OCI Image Specification is compatible with formats
4646

4747
The following figure shows how the above media types reference each other:
4848

49+
![](img/media-types.png)
50+
4951
A reference is defined as the target content digest, as defined by the [Registry V2 HTTP API Specificiation](https://docs.docker.com/registry/spec/api/#digest-parameter). The manifest list being a "fat manifest" references one or more image manifests per target platform. An image manifest references exactly one target configuration and possibly many layers.

0 commit comments

Comments
 (0)