Skip to content

Commit

Permalink
Make builds of old spec versions available
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Sep 13, 2024
1 parent 8f4ae91 commit 836b00e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions document/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DIRS = js-api web-api core
DIRS = js-api web-api core versions
FILES = index.html
BUILDDIR = _build
TAR = tar
Expand Down Expand Up @@ -60,7 +60,7 @@ $(DIRS:%=build-%): build-%:
(cd $(@:build-%=%); make BUILDDIR=$(BUILDDIR) all)

.PHONY: $(DIRS:%=dir-%)
$(DIRS:%=dir-%): dir-%:
$(DIRS:%=dir-%): dir-%: $(BUILDDIR)
mkdir -p $(BUILDDIR)/$(@:dir-%=%)
rm -rf $(BUILDDIR)/$(@:dir-%=%)/*
cp -R $(@:dir-%=%)/$(BUILDDIR)/html/* $(BUILDDIR)/$(@:dir-%=%)/
Expand Down
9 changes: 9 additions & 0 deletions document/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ <h3>Embedder specifications</h3>
<a href="https://github.com/WebAssembly/spec/">here</a>.
</p>


<h3>All versions</h3>

<ul>
<li><a href="versions/core/WebAssembly-1.0">WebAssembly 1.0</a> (2017)</li>
<li><a href="versions/core/WebAssembly-2.0">WebAssembly 2.0</a> (2022)</li>
<li><a href="versions/core/WebAssembly-3.0-draft">WebAssembly 3.0</a> (Draft 2024)</li>
</ul>

</article>
</div>
</body>
Expand Down
14 changes: 14 additions & 0 deletions document/versions/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DIRS = core
DIRNAME = versions
BUILDDIR = _build

.PHONY: all
all:
mkdir -p $(BUILDDIR)/html/$(DIRNAME)
cp -R $(DIRS) $(BUILDDIR)/html/$(DIRNAME)/

.PHONY: diff
diff:

.PHONY: clean
clean:
Binary file added document/versions/core/WebAssembly-1.0.pdf
Binary file not shown.
Binary file added document/versions/core/WebAssembly-2.0.pdf
Binary file not shown.
Binary file added document/versions/core/WebAssembly-3.0-draft.pdf
Binary file not shown.

0 comments on commit 836b00e

Please sign in to comment.