Skip to content

Commit 0696965

Browse files
committed
Merge remote-tracking branch 'branchhint/main' into wasm-3.0+branchhint
2 parents db53a30 + 7b6af09 commit 0696965

File tree

21 files changed

+2464
-28
lines changed

21 files changed

+2464
-28
lines changed

.github/workflows/ci-spec.yml

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@ jobs:
4040
name: core-rendered
4141
path: document/core/_build/html
4242

43-
build-legacy-exceptions-spec:
44-
runs-on: ubuntu-latest
45-
steps:
46-
- name: Checkout repo
47-
uses: actions/checkout@v2
48-
with:
49-
submodules: "recursive"
50-
- name: Setup TexLive
51-
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
52-
- name: Setup Sphinx
53-
run: pip install six && pip install sphinx==5.1.0
54-
- name: Build main spec
55-
run: cd document/legacy/exceptions && make main
56-
- name: Upload artifact
57-
uses: actions/upload-artifact@v2
58-
with:
59-
name: legacy-exceptions-rendered
60-
path: document/legacy/exceptions/_build/html
61-
6243
build-js-api-spec:
6344
runs-on: ubuntu-latest
6445
steps:
@@ -89,9 +70,48 @@ jobs:
8970
name: web-api-rendered
9071
path: document/web-api/index.html
9172

73+
build-code-metadata-spec:
74+
runs-on: ubuntu-latest
75+
needs: [build-core-spec]
76+
steps:
77+
- name: Checkout repo
78+
uses: actions/checkout@v2
79+
with:
80+
submodules: "recursive"
81+
- name: Setup TexLive
82+
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
83+
- name: Setup Sphinx
84+
run: pip install six && pip install sphinx==5.1.0
85+
- name: Build main spec
86+
run: cd document/metadata/code && make main
87+
- name: Upload artifact
88+
uses: actions/upload-artifact@v2
89+
with:
90+
name: code-metadata-rendered
91+
path: document/metadata/code/_build/html
92+
93+
build-legacy-exceptions-spec:
94+
runs-on: ubuntu-latest
95+
steps:
96+
- name: Checkout repo
97+
uses: actions/checkout@v2
98+
with:
99+
submodules: "recursive"
100+
- name: Setup TexLive
101+
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
102+
- name: Setup Sphinx
103+
run: pip install six && pip install sphinx==5.1.0
104+
- name: Build main spec
105+
run: cd document/legacy/exceptions && make main
106+
- name: Upload artifact
107+
uses: actions/upload-artifact@v2
108+
with:
109+
name: legacy-exceptions-rendered
110+
path: document/legacy/exceptions/_build/html
111+
92112
publish-spec:
93113
runs-on: ubuntu-latest
94-
needs: [build-core-spec, build-legacy-exceptions-spec, build-js-api-spec, build-web-api-spec]
114+
needs: [build-core-spec, build-js-api-spec, build-web-api-spec, build-code-metadata-spec, build-legacy-exceptions-spec]
95115
steps:
96116
- name: Checkout repo
97117
uses: actions/checkout@v2
@@ -102,11 +122,6 @@ jobs:
102122
with:
103123
name: core-rendered
104124
path: _output/core
105-
- name: Download legacy exceptions spec artifact
106-
uses: actions/download-artifact@v2
107-
with:
108-
name: legacy-exceptions-rendered
109-
path: _output/legacy/exceptions
110125
- name: Download JS API spec artifact
111126
uses: actions/download-artifact@v2
112127
with:
@@ -117,6 +132,16 @@ jobs:
117132
with:
118133
name: web-api-rendered
119134
path: _output/web-api
135+
- name: Download code metadata spec artifact
136+
uses: actions/download-artifact@v2
137+
with:
138+
name: code-metadata-rendered
139+
path: _output/metadata/code
140+
- name: Download legacy exceptions spec artifact
141+
uses: actions/download-artifact@v2
142+
with:
143+
name: legacy-exceptions-rendered
144+
path: _output/legacy/exceptions
120145
- name: Publish to GitHub Pages
121146
if: github.ref == 'refs/heads/main'
122147
uses: peaceiris/actions-gh-pages@v3

document/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DIRS = core js-api web-api legacy/exceptions
1+
DIRS = core js-api web-api metadata/code legacy/exceptions
22
FILES = index.html
33
BUILDDIR = _build
44
TAR = tar

document/index.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ <h3>Embedder specifications</h3>
6262
</li>
6363
</ul>
6464

65+
<h3>Metadata specifications</h3>
66+
67+
<p>Define the format and semantics of extra information attached to a WebAssembly module</p>
68+
69+
<ul>
70+
<li><p><b>Code Metadata</b>: defines metadata attached to instructions</p>
71+
<ul>
72+
<li><a href="metadata/code/">Browser version</a></li>
73+
<li><a href="metadata/code/_download/WebAssembly-Metadata-Code.pdf">PDF version</a></li>
74+
</ul>
75+
</li>
76+
</ul>
77+
6578
<h3>Legacy Extensions</h3>
6679

6780
<p>Define extensions that are deprecated, but may still be in use.</p>
@@ -75,9 +88,8 @@ <h3>Legacy Extensions</h3>
7588
</li>
7689
</ul>
7790

78-
7991
<p>
80-
Source for these documents is available
92+
Source for all documents is available
8193
<a href="https://github.com/WebAssembly/spec/">here</a>.
8294
</p>
8395

document/metadata/code/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_build
2+
_static
3+
document/*.pyc

document/metadata/code/LICENSE

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE
2+
3+
This work is being provided by the copyright holders under the following
4+
license.
5+
6+
7+
LICENSE
8+
9+
By obtaining and/or copying this work, you (the licensee) agree that you have
10+
read, understood, and will comply with the following terms and conditions.
11+
12+
Permission to copy, modify, and distribute this work, with or without
13+
modification, for any purpose and without fee or royalty is hereby granted,
14+
provided that you include the following on ALL copies of the work or portions
15+
thereof, including modifications:
16+
17+
* The full text of this NOTICE in a location viewable to users of the
18+
redistributed or derivative work.
19+
20+
* Any pre-existing intellectual property disclaimers, notices, or terms and
21+
conditions. If none exist, the W3C Software and Document Short Notice
22+
(https://www.w3.org/Consortium/Legal/copyright-software-short-notice) should
23+
be included.
24+
25+
* Notice of any changes or modifications, through a copyright statement on the
26+
new code or document such as "This software or document includes material
27+
copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."
28+
29+
30+
DISCLAIMERS
31+
32+
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS
33+
OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
34+
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE
35+
SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
36+
TRADEMARKS OR OTHER RIGHTS.
37+
38+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
39+
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
40+
41+
The name and trademarks of copyright holders may NOT be used in advertising or
42+
publicity pertaining to the work without specific, written prior permission.
43+
Title to copyright in this work will at all times remain with copyright
44+
holders.
45+
46+
47+
NOTES
48+
49+
This version:
50+
http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document

0 commit comments

Comments
 (0)