Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Merge 'document/' directory of 'WebAssembly/reference-types/master', excluding 'document/js-api/'. #91

Merged
merged 503 commits into from
Dec 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
503 commits
Select commit Hold shift + click to select a range
43a294a
Add a missing definition of "store".
Ms2ger Jun 22, 2018
c83624a
Avoid undefined variable "retArity".
Ms2ger Jun 22, 2018
e7b6cdc
Add missing right guillemet.
Ms2ger Jun 28, 2018
0fa5904
Mark a variable 'i' as such.
Ms2ger Jun 28, 2018
bca1718
Fix a link markup error.
Ms2ger Jun 29, 2018
4916530
Fix Bikeshed pedantry
rossberg Jul 9, 2018
80dec6f
[test] Enhance test coverage of address.wast (#832)
Honry Jul 9, 2018
9a18eb6
[test] Grow memory and verify that new allocated byte is zero (#808)
Honry Jul 9, 2018
03905dc
[test] Add tests for Alignment (#822)
Honry Jul 9, 2018
2113ea7
[test] Remove non-conformance checkponits (#812)
Honry Jul 10, 2018
f4bdb3a
Remove eqref remainders
rossberg Jul 15, 2018
bf6e067
Update overview
rossberg Jul 15, 2018
0a8f46f
[test] Add more type mismatch tests for block construct (#835)
Honry Jul 15, 2018
c8355fb
[test] Remove tested checkpoints in Todo.md (#833)
Honry Jul 15, 2018
c8338e9
[test] Add test to cover one checkpoint in Todo.md (#834)
Honry Jul 17, 2018
b9cddea
Miscellanous floating-point and unicode tests (#807)
sunfishcode Jul 18, 2018
4ce607c
Indent substeps correctly in the Global constructor. (#839)
Ms2ger Jul 26, 2018
7ee1a89
Use the customSection variable where appropriate. (#819)
Ms2ger Jul 26, 2018
90b8083
[spec] Reorganise main links (#782)
rossberg Jul 30, 2018
14bce49
[test] Fix a minor issue in br_table.wast (#841)
Honry Jul 31, 2018
c255ab4
[spec] Fix typo (#842)
ggreif Aug 1, 2018
c2a6286
[spec] Fix type in note (#843)
ggreif Aug 2, 2018
b1217bd
Some html validation fixes for bikeshed spec (#844)
binji Aug 6, 2018
c3fa573
Fix a few issues with CSS validation (#846)
binji Aug 6, 2018
68cae91
[test] Add some tests for `br_if` (#837)
Honry Aug 7, 2018
151248a
Add script to diff HTML against previous version (#847)
binji Aug 7, 2018
ef064ea
Various cleanup in the Web API specification. (#848)
Ms2ger Aug 7, 2018
10083e9
Remove immutable global notes (#849)
binji Aug 8, 2018
32da67a
[test] Fix typo in the f_v signature (#850)
gahaas Aug 8, 2018
e9128ec
[test] Update wasm-module-builder.js (#851)
gahaas Aug 8, 2018
6fcbdb3
[test] Improve test coverage of nop (#854)
Honry Aug 13, 2018
c525a40
[test] Improve test coverage of block.wast (#856)
Honry Aug 16, 2018
c8cf0f1
[test] Improve test coverage of loop.wast (#857)
Honry Aug 17, 2018
240ea67
Add build commands to diff JS+Web documents too (#859)
binji Aug 20, 2018
2308f1e
[spec] Add missing range checks on memory limits (#862)
rossberg Aug 23, 2018
b9af968
[test] Improve test coverage of if.wast and return.wast (#865)
Honry Aug 24, 2018
b022826
Update link to GC proposal overview (#16)
chicoxyzzy Aug 29, 2018
2311cf2
[js-api] Fix some inconsistencies around handling bytes and buffers. …
Ms2ger Sep 5, 2018
4ccad09
[js-api] Fix some editorial issues. (#858)
Ms2ger Sep 5, 2018
fda397a
Add commands to generate Working Draft (#872)
binji Sep 12, 2018
3dd64b7
Pin sphinx to v1.7.9 to workaround upstream bug (#875)
binji Sep 13, 2018
639bb02
[js-api] Verify initial < maximum in Memory ctor (#877)
binji Sep 18, 2018
db9cd40
Typo
rossberg Sep 23, 2018
24912ee
Fix memory section length (#882)
nlordell Sep 26, 2018
0006091
[test] Improve coverage of call and call_indirect (#868)
Honry Sep 29, 2018
81013b4
[test] Improve coverage of select (#871)
Honry Sep 29, 2018
2ba6882
[test] Improve coverage for globals (#881)
Honry Sep 29, 2018
26db2a2
Editorial: Fix typo. (#885)
Ms2ger Oct 3, 2018
2de3fb0
[core test] Reject "long" LEB128 reserved bytes (#888)
binji Oct 5, 2018
f5e1fd1
[js-api] Add definition of Memory#buffer getter
binji Oct 5, 2018
05aa1d9
Initial commit of spec text and test for WASM limits.
Apr 27, 2018
bd103fc
Add test for function with params and locals
May 2, 2018
510de76
Update limits test and harness
May 18, 2018
89d8761
Add sync compile tests
May 22, 2018
2622ca2
Mention that parameters are included in the local computation
May 22, 2018
ea78863
Address first review comments
Sep 24, 2018
9af41ee
Use "Element Segment" terminology in js-api tests (#874)
binji Oct 11, 2018
423c6f8
[js-api] Introduce a 'create a memory buffer' algorithm.
Ms2ger Oct 11, 2018
cf67a47
Import jsapi tests from WPT. (#883)
Ms2ger Oct 16, 2018
f20e40f
Update documentation for jsapi tests.
Ms2ger Oct 17, 2018
64bf5c7
Editorial: Note status of memory growth errors
littledan Oct 18, 2018
7e3c46a
[core test] Tests long encoding of a segment index (#892)
binji Oct 19, 2018
b0e7838
[test] Fix building error introduced in #883 (#900)
Honry Oct 24, 2018
c90bc96
[test] Test 'tee_local' and 'set_global' in more operators (#901)
Honry Oct 25, 2018
a56cf2e
Editorial: Explicitly convert between list and sequence
littledan Oct 31, 2018
5aaea96
[test] Improve test coverage (#904)
Honry Nov 7, 2018
f4ce198
Fix renaming of .exe in winmake.bat
rossberg Nov 20, 2018
e822213
wasm.exe, not main.exe
rossberg Nov 20, 2018
7589875
[test] Move tests in store_retval.wast to relevant test files (#918)
Honry Nov 27, 2018
3dc2dc2
[test] Correct "br_if2" function in labels.wast (#920)
Honry Nov 27, 2018
6028a96
[test] Split memory.wast (#922)
Honry Nov 28, 2018
2e1c417
[spec] Properly rule out surrogate codepoints (#923)
rossberg Nov 28, 2018
2e948dd
[core] Test function/code count mismatch (#921)
binji Nov 28, 2018
76d26bb
Fixes #925: Remove link in test's README and update WPT link; (#927)
bnjbvr Nov 30, 2018
994591e
[spec/interpreter/tests] Rename instructions (#926)
rossberg Dec 6, 2018
8ead964
Update index.bs
xtuc Dec 6, 2018
8445cd6
Update index.bs
xtuc Dec 6, 2018
a1642af
Update index.bs
xtuc Dec 6, 2018
1c46945
tests: remove invalid property (#916)
xtuc Dec 6, 2018
89ae39c
[spec] Add missing UTF-8 side condition (#928)
rossberg Dec 6, 2018
4408f60
[interpreter] Fix typo: tyoe -> type (#930)
zxh0 Dec 8, 2018
118dd51
[interpreter] Add missing ')' (#931)
zxh0 Dec 11, 2018
6fdf92b
Remove tests/html.
Ms2ger Dec 11, 2018
0b8da7e
Merge remote-tracking branch 'upstream/master'
rossberg Dec 12, 2018
43bce5d
[interpreter] Update README to new instruction names
rossberg Dec 12, 2018
c34d22f
Forgot to rename in Overview
rossberg Dec 12, 2018
59e2ee5
Add store typing
rossberg Dec 12, 2018
fa335d7
Check that ref.null is a const instruction
rossberg Dec 12, 2018
2a00b2e
Add ref.func instruction (#24)
rossberg Dec 12, 2018
2640923
[test] Made tests in local_get/set.wast consistent (#933)
Honry Dec 13, 2018
b70d03c
Rename ref.isnull to ref.is_null (#23)
rossberg Dec 13, 2018
8f1e01d
Rewrite the embedding limits test.
Ms2ger Dec 12, 2018
35c7531
Stop trying to build js-api tests.
Ms2ger Dec 12, 2018
b42efa9
Stop using readlines() in wrap_single_test().
Ms2ger Dec 12, 2018
0c87407
Extract a copy_harness_files() function.
Ms2ger Dec 17, 2018
792fdaf
Inline build_js() into build_html_js().
Ms2ger Dec 17, 2018
fce9cd9
Don't search the file system for files we've just created.
Ms2ger Dec 17, 2018
db5be4c
[interpreter] Update instruction names in README example (#940)
chicoxyzzy Jan 10, 2019
36edef5
[js-api] Editorial: Clarify parallel execution.
Ms2ger Oct 22, 2018
3b92782
[test] Move tests from typecheck.wast to appropriate files (#939)
Honry Jan 15, 2019
ac86595
[test] typo in local_get.wast as-return-value (#942)
poemm Jan 16, 2019
3115daa
Fix small typo in validation->set_table (#27)
gahaas Jan 16, 2019
fca7e5d
Adding baseline w3c.json
dontcallmedom Jan 16, 2019
94bd1f9
[test] Remove duplicated tests (#943)
Honry Jan 21, 2019
31b4f34
[test] sync wasm-module-builder with v8 (#944)
xtuc Jan 23, 2019
36c9014
[test] Add more tests for operand missing (#948)
Honry Jan 23, 2019
241c48d
[spec] Fix typo (#28)
gahaas Jan 23, 2019
a2d1f4d
Update katex to v0.10.0 (#949)
binji Jan 24, 2019
9136258
[test] Nicer error message for missing executable. (#953)
binji Jan 25, 2019
9ac3049
Remove wast.js.
Ms2ger Jan 25, 2019
421fab1
[js-api] Pass a functype parameter to "create a host function".
Ms2ger Aug 9, 2018
fb1fdcb
[js-api] Improve exception handling in "create a host function".
Ms2ger Aug 9, 2018
10b54a4
[js-api] use DOMString (#947)
xtuc Jan 25, 2019
89d69c4
[document] Provide context to `break` analogy (#952)
binji Jan 25, 2019
96c4188
[test] Use registered module name in imports.wast (#951)
binji Jan 25, 2019
ef047d5
Remove wasm-{constants,module-builder}.js from harness/.
Ms2ger Jan 25, 2019
d52eade
[spec] Fix comment still referring to old syntax (#957)
rossberg Jan 30, 2019
1fff613
[interpreter] Fix some broken links in README (#959)
juniorrojas Feb 1, 2019
4c049aa
[interpreter] Use literal string for JS harness (#965)
rossberg Feb 7, 2019
f75457a
[test] merge wasm-constants.js and wasm-module-builder.js (#963)
xtuc Feb 7, 2019
bc753d2
[test] update wasm-module-builder.js (#962)
xtuc Feb 7, 2019
705e2b4
[spec] Fix definition of littleendian (#968)
rossberg Feb 11, 2019
c4d85ce
Fix some test function names that got out of sync with the recent ins…
AndrewScheidecker Feb 11, 2019
564fc40
[proposal] Link to function reference proposal
rossberg Feb 12, 2019
b7225fd
[interpreter] Fix broken link in README (#970)
juniorrojas Feb 20, 2019
ad61162
[test] More tests for missing operand missing -Part2 (#950)
Honry Feb 21, 2019
2e2e3a9
[test] More tests for missing operands -Part3 (#971)
Honry Feb 21, 2019
4da0540
[test] Move tests in typecheck.wast to appropriate files (#973)
Honry Feb 22, 2019
44dfa15
[jsapi] update limits.any.js (#975)
xtuc Feb 26, 2019
b552862
[jsapi] Fix typo in limits.any.js (#978)
backes Mar 7, 2019
299e687
[test] Add binary test for local count of zero (#980)
binji Mar 10, 2019
e69482a
[jsapi] Update wasm-module-builder.js
backes Mar 7, 2019
a60f152
[jsapi] Fix tests after wasm-module-builder.js update
backes Mar 12, 2019
dae979a
Fix store handling in 'instantiate a WebAssembly module'. (#981)
Ms2ger Mar 12, 2019
e692daa
Editorial: Stop breaking lists to insert a note.
Ms2ger Mar 11, 2019
e738239
Editorial: Extract a "read the imports" algorithm.
littledan Mar 11, 2019
0555abc
Editorial: Extract a "create an instance object" algorithm.
littledan Mar 11, 2019
e4bea69
Editorial: Remove an unnecessary local variable in "create an instanc…
littledan Mar 11, 2019
4ecc1b1
Editorial: Extract an "instantiate the core of a WebAssembly module" …
littledan Mar 11, 2019
a2b5691
Editorial: Extract an "asynchronously instantiate a WebAssembly modul…
littledan Mar 12, 2019
ba56427
Fix `if` instruction type in index (#987)
binji Mar 15, 2019
16a91bd
Normative: Read the imports synchronously in WebAssembly.instantiate(…
Ms2ger Mar 13, 2019
2478368
Update index.bs
xtuc Mar 6, 2019
b2fefbd
Update index.bs
xtuc Mar 6, 2019
5ad5fe2
Update index.bs
xtuc Mar 15, 2019
2c9b327
Update index.bs
xtuc Mar 15, 2019
b65f68d
Update index.bs
xtuc Mar 15, 2019
0e1021a
Update index.bs
xtuc Mar 15, 2019
2f5d8e7
Update index.bs
xtuc Mar 15, 2019
d51ec1b
Reject the promise if reading the imports fails.
Ms2ger Mar 18, 2019
4406612
[test] Check for "unreachable" consistently (#992)
binji Mar 28, 2019
1443de9
[interpreter] Fix in JS conversion
rossberg Mar 29, 2019
d9ebd33
[interpreter] Fix JS generator (#34)
rossberg Mar 30, 2019
559a10d
[test] Add test when start function traps (#994)
binji Mar 30, 2019
5ea9d89
[interpreter] Check argument types on invoke
rossberg Mar 30, 2019
ef6678a
Merge remote-tracking branch 'upstream/master'
rossberg Mar 30, 2019
8059cd6
Update instructions.rst (#995)
zoren Mar 30, 2019
c3d5cbc
[spec/interpreter/test] Add table bulk instructions missing from bulk…
rossberg Apr 3, 2019
2a28a92
[test] Add dedicated test for memory.size (#997)
rossberg Apr 4, 2019
40785ff
Increase the table count limit to 100,000
Apr 4, 2019
3099a7b
[spec] Add paragraph break for more emphasis (#1001)
rossberg Apr 16, 2019
4dce956
[test] Alignment and offset with overlong leb128 (#998)
Honry Apr 16, 2019
d14d538
[spec] More precise Unicode terminology (#1002)
rossberg Apr 16, 2019
f20b8e9
[spec] Pre/post-conditions and some renamings in embedding interface …
rossberg Apr 18, 2019
1b1d70c
Merge remote-tracking branch 'upstream/master'
rossberg Apr 18, 2019
5ad8059
[spec] Adjust soundness appendix
rossberg Apr 18, 2019
a2d5f93
[spec] Adjust invoke
rossberg Apr 18, 2019
8b3fb37
[spec] Fix latex issue
rossberg Apr 18, 2019
c46d4fa
[spec] Work around Sphinx/Latex issue (#1004)
rossberg Apr 19, 2019
dcbc1c5
Merge remote-tracking branch 'upstream/master'
rossberg Apr 19, 2019
02117e4
[spec] Remove Sphinx/Latex workaround
rossberg Apr 19, 2019
05672b0
[test] Disallow table size overflow
rossberg Apr 20, 2019
09dccac
[spec] Correctly account for subtyping in global/table instances (#39)
rossberg Apr 23, 2019
43898ad
[spec] Fix off-by-one error in table grow size limit (#1005)
rossberg Apr 23, 2019
1fec5c1
Update host bindings proposal links
rossberg Apr 25, 2019
b8f6478
Fix links 2
rossberg Apr 25, 2019
6281d0d
[interpreter] Group digits with '_' when printing numbers (#1006)
rossberg Apr 28, 2019
d6cd997
[interpreter] Forgot commit
rossberg Apr 30, 2019
16b65a2
[interpreter] Eps
rossberg Apr 30, 2019
6172038
[spec] Fix typo (#1011)
Galaxtone May 6, 2019
27799cd
Fix bikeshed build (#1014)
binji May 6, 2019
08fe3e3
[spec] Typo in type table (#1013)
Galaxtone May 7, 2019
ec592be
[spec] Constrain name section ordering (#1012)
rossberg May 7, 2019
5f240d1
[test] More tests for non-minimal LEB128 (#1007)
Honry May 9, 2019
29540ac
[spec/interpreter/test] Avoid lubs and glbs (#43)
rossberg May 11, 2019
022589c
[test] More tests for overlong LEB128 (#1016)
Honry May 13, 2019
74dd66b
[spec] Fix ToC of Appendix in w3c version (#1017)
binji May 14, 2019
5baa425
+ Security and Privacy Considerations on Core and JS-API (#1015)
May 14, 2019
263af5a
[spec] Replace URLs with bikeshed biblio refs (#1018)
binji May 14, 2019
e5cf99f
[spec] Fix oversight in elem typing rule
rossberg May 15, 2019
82c9db1
[spec] Formatting nit
rossberg May 15, 2019
bc7d300
[test] More LEB128 tests (#1019)
Honry May 16, 2019
39646d1
[spec][js-api] Fix some links (#1020)
binji May 17, 2019
a0e1a7e
[spec] Tweak wording (#966)
rossberg May 17, 2019
9fd0547
[spec] Address feedback on section 4 (#1022)
rossberg May 20, 2019
356886f
[interpreter] Fix edge cases for f32_convert_i64 (#1021)
rossberg May 21, 2019
4e1a093
[travis] Use a different deploy_key
binji May 21, 2019
822039b
Copy bikeshed fix from spec repo
binji May 21, 2019
0f7f930
[test] JS-compatible module name (#45)
gahaas May 23, 2019
86c7e35
[spec] Adjust binary format of element segments (#46)
gahaas May 27, 2019
b2d34e0
[test] Use more JS-compatible names (#47)
gahaas May 28, 2019
b8faae7
Editorial: Remove links from Number, Object when checking types
littledan May 28, 2019
4bf74f6
[test/interpreter] Rounding edge cases for float literals (#1025)
rossberg May 29, 2019
41747be
Remove extraneous copyright from bikeshed document (#1030)
binji May 30, 2019
7940fa4
[test] Fix unintended errors in negative tests (#1034)
Jun 8, 2019
8c8f5f1
[interpreter] Fix broken link (#1035)
hjorthjort Jun 19, 2019
b568df7
[test] More inconsistent lengths (#1029)
Honry Jun 19, 2019
024e273
[js-api] Remove incorrect note about object caching. (#1036)
Ms2ger Jun 27, 2019
666dc4c
[js-api] Use IDL conventions around ambient values. (#1037)
Ms2ger Jun 28, 2019
aa596e5
Merge pull request #38 from lars-t-hansen/max_tables
binji Jul 7, 2019
0137a33
[interpreter] Fix typo in comment (#1045)
InDieTasten Jul 19, 2019
1a411f7
[spec] Fix header level (#1047)
rossberg Jul 20, 2019
b0c936c
[interpreter] Downgrade to Ocaml 4.02 (#1044)
rossberg Jul 24, 2019
a221f25
[spec] Upgrade to IEEE 754-2019 (#1050)
rossberg Jul 30, 2019
ace189a
[spec] Terminology nits (#1053)
rossberg Aug 14, 2019
81c5f27
[interpreter] Make format roundtrips perfect (#1057)
rossberg Aug 15, 2019
ae113ed
[interpreter] Update BS support (#1058)
rossberg Aug 15, 2019
9867945
[interpreter] Tweak target
rossberg Aug 15, 2019
d22a765
[interpreter] Simplify wast.js build
rossberg Aug 16, 2019
1f0d158
Update some links (#52)
chicoxyzzy Aug 21, 2019
1d84e77
[interpreter] Add `assert_exhaustion` to README (#1061)
hjorthjort Sep 11, 2019
076ad5d
[spec] Fix the katex build on Travis. (#1062)
Ms2ger Sep 11, 2019
b7d6dfc
Rewrite definition of error types.
Ms2ger May 17, 2019
f3efeb0
[js-api] Editorial: Clarify the host function algorithms a bit. (#1063)
Ms2ger Sep 11, 2019
352edf4
[js-api] Editorial: Update reference to 'resolve'. (#1065)
Ms2ger Sep 11, 2019
3d87cfa
Adjust element segment encoding to match the bulk-memory proposal (#53)
gahaas Sep 11, 2019
d5101bc
[test] Add negative test for ref.func globals (#54)
gahaas Sep 17, 2019
c94f0c1
[spec] Fix float text format (#1069)
rossberg Sep 17, 2019
c1a0415
Fix typo in validation of br_table (#56)
eqrion Sep 21, 2019
92c117d
[test] Don't require the element index in "uninitialized element" tra…
sunfishcode Sep 26, 2019
5e2feee
Fix error in build.py when test compilation fails
eqrion Sep 25, 2019
4eb91f1
[spec] Fix typo (determinsitically) (#1079)
AndrewScheidecker Sep 27, 2019
5e3277c
Add OOPSLA paper
rossberg Sep 30, 2019
c7ca01c
[build] Try to reduce output spam from Latex built
rossberg Oct 7, 2019
1a12f06
Editorial: Update editor information in JS/Web API specifications.
Ms2ger Oct 8, 2019
c663194
Add tests for multiple start sections (#1092)
AndrewScheidecker Oct 9, 2019
074a6fa
Merge remote-tracking branch 'upstream/master'
rossberg Oct 16, 2019
2a83796
[spec] fix valid tableinst and meminst premises in appendix (#1093)
Huxpro Oct 18, 2019
05db302
Dont expect indices in validation messages either. (#1089)
sunfishcode Oct 20, 2019
4198842
Miscellaneous tests (#1090)
sunfishcode Oct 20, 2019
af825a7
Fix some assert_malformed module tests to ONLY include malformed syntax
AndrewScheidecker Jul 1, 2019
1e05d9b
Fix test expectation (#58)
gahaas Oct 29, 2019
0c67ac0
[test] fix a typo (#1098)
penzn Nov 13, 2019
e66f532
Fix call_indirect immediates
rossberg Nov 14, 2019
34a7ebe
Fix layout
rossberg Nov 14, 2019
3c94bdf
[spec] Fix typo (#1099)
paigeruten Nov 15, 2019
f89d298
[interpreter] Cosmetic tweak to return reduction (#1101)
nomeata Nov 16, 2019
303c942
Merge remote-tracking branch 'upstream/master'
rossberg Nov 20, 2019
d4bc208
[spec/interpreter/test] Allow nullref type externally (#66)
rossberg Dec 13, 2019
42d70e7
Merge 'document/' directory of remote-tracking branch 'reference-type…
ioannad Dec 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
296 changes: 51 additions & 245 deletions document/Makefile
Original file line number Diff line number Diff line change
@@ -1,270 +1,76 @@
# Makefile for Sphinx documentation
#
DIRS = core js-api web-api
FILES = index.html
BUILDDIR = _build

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER = a4
BUILDDIR = _build
STATICDIR = _static
DOWNLOADDIR = _download
GHPAGESDIR = ../docs
NAME = WebAssembly
# Global targets.

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: usage
usage:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " pdf to make standalone PDF file"
@echo " all to make both"
@echo " publish to make all and push to gh-pages"
@echo " help to see more options"
.PHONY: all
all: $(BUILDDIR) root $(DIRS)

.PHONY: help
help:
@echo "Usage: \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " pdf to make standalone PDF file"
@echo " all to make both"
@echo " publish to make all and push to gh-pages"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " applehelp to make an Apple Help Book"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " epub3 to make an epub3"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " xml to make Docutils-native XML files"
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"
@echo " dummy to check syntax errors of document sources"

.PHONY: publish
publish: all deploy
$(BUILDDIR):
mkdir -p $@

.PHONY: deploy
deploy:
GIT_DEPLOY_DIR=$(BUILDDIR)/html sh deploy.sh

.PHONY: all
all: pdf html

.PHONY: pdf
pdf: latexpdf
mkdir -p $(BUILDDIR)/html/$(DOWNLOADDIR)
ln -f $(BUILDDIR)/latex/$(NAME).pdf $(BUILDDIR)/html/$(DOWNLOADDIR)/$(NAME).pdf
GIT_DEPLOY_DIR=$(BUILDDIR) bash deploy.sh

.PHONY: publish
publish: all deploy

.PHONY: clean
clean:
clean: $(DIRS:%=clean-%)
rm -rf $(BUILDDIR)
rm -rf $(STATICDIR)

.PHONY: html
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
for file in `ls $(BUILDDIR)/html/*.html`; \
do \
sed s:BASEDIR:.:g <$$file >$$file.out; \
mv -f $$file.out $$file; \
done
for file in `ls $(BUILDDIR)/html/*/*.html`; \
do \
sed s:BASEDIR:..:g <$$file >$$file.out; \
sed 's;<body;<script type="text/javascript">MathJax.Hub.Config({TeX: {MAXBUFFER: 10*1024}})</script><body;' \
<$$file.out >$$file; \
rm -f $$file.out; \
done
@echo
@echo "Build finished. The HTML pages are in `pwd`/$(BUILDDIR)/html."

.PHONY: dirhtml
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
.PHONY: diff
diff: $(DIRS:%=diff-%)

.PHONY: singlehtml
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."

.PHONY: pickle
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
# Directory-specific targets.

.PHONY: json
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
.PHONY: root
root: $(BUILDDIR)
touch $(BUILDDIR)/.nojekyll
cp -f $(FILES) $(BUILDDIR)/

.PHONY: htmlhelp
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
.PHONY: $(DIRS)
$(DIRS): %: $(BUILDDIR) $(DIRS:%=build-%) $(DIRS:%=dir-%)

.PHONY: qthelp
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/WebAssembly.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/WebAssembly.qhc"
.PHONY: $(DIRS:%=build-%)
$(DIRS:%=build-%): build-%:
(cd $(@:build-%=%); make BUILDDIR=$(BUILDDIR) all)

.PHONY: applehelp
applehelp:
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
@echo
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@echo "N.B. You won't be able to view it unless you put it in" \
"~/Library/Documentation/Help or install it in your application" \
"bundle."
.PHONY: $(DIRS:%=dir-%)
$(DIRS:%=dir-%): dir-%:
mkdir -p $(BUILDDIR)/$(@:dir-%=%)
rm -rf $(BUILDDIR)/$(@:dir-%=%)/*
cp -R $(@:dir-%=%)/$(BUILDDIR)/html/* $(BUILDDIR)/$(@:dir-%=%)/

.PHONY: devhelp
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/WebAssembly"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/WebAssembly"
@echo "# devhelp"
.PHONY: $(DIRS:%=deploy-%)
$(DIRS:%=deploy-%): deploy-%:
GIT_DEPLOY_DIR=$(BUILDDIR) GIT_DEPLOY_SUBDIR=$(@:deploy-%=%) bash deploy.sh

.PHONY: epub
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
.PHONY: $(DIRS:%=publish-%)
$(DIRS:%=publish-%): publish-%: % deploy-%

.PHONY: epub3
epub3:
$(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3
@echo
@echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3."
.PHONY: $(DIRS:%=clean-%)
$(DIRS:%=clean-%): clean-%:
(cd $(@:clean-%=%); make BUILDDIR=$(BUILDDIR) clean)
rm -rf $(BUILDDIR)/$(@:clean-%=%)

.PHONY: latex
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
.PHONY: $(DIRS:%=diff-%)
$(DIRS:%=diff-%): diff-%:
(cd $(@:diff-%=%); make BUILDDIR=$(BUILDDIR) diff)

.PHONY: latexpdf
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."

.PHONY: latexpdfja
latexpdfja:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through platex and dvipdfmx..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
# Help.

.PHONY: text
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."

.PHONY: man
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."

.PHONY: texinfo
texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."

.PHONY: info
info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."

.PHONY: gettext
gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."

.PHONY: changes
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."

.PHONY: linkcheck
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."

.PHONY: doctest
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."

.PHONY: coverage
coverage:
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
@echo "Testing of coverage in the sources finished, look at the " \
"results in $(BUILDDIR)/coverage/python.txt."

.PHONY: xml
xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."

.PHONY: pseudoxml
pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " all to build all documents"
@echo " publish to make all and push to gh-pages"
@echo " <dir> to build a specific subdirectory"
@echo " publish-<dir> to build and push a specific subdirectory"

.PHONY: dummy
dummy:
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
@echo
@echo "Build finished. Dummy builder generates no files."
.PHONY: usage
usage: help
25 changes: 14 additions & 11 deletions document/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# WebAssembly Specification
# WebAssembly Specifications

This is (meant to become) the official WebAssembly "language" specification.
This directory contains the source code for the WebAssembly spec documents, as served from the [webassembly.github.io/spec](https://webassembly.github.io/spec) pages.
It uses [Sphinx](http://www.sphinx-doc.org/) and [Bikeshed](https://github.com/tabatkins/bikeshed).

It uses [Sphinx](http://www.sphinx-doc.org/). To install that:
To install Sphinx:
```
pip install sphinx
```
To make HTML (result in `_build/html`):
```
make html
```
To make PDF (result in `_build/latex`, requires LaTeX):

To install Bikeshed, see the instructions [here](https://tabatkins.github.io/bikeshed/#installing).


To build everything locally (result appears in `_build/`):
```
make pdf
make all
```
To make all:

To build everything and update [webassembly.github.io/spec](https://webassembly.github.io/spec) with it:
```
make all
make publish
```
Please make sure to only use that once a change has approval.
6 changes: 0 additions & 6 deletions document/appendix-algorithm/index.rst

This file was deleted.

6 changes: 0 additions & 6 deletions document/appendix-names/index.rst

This file was deleted.

6 changes: 0 additions & 6 deletions document/appendix-properties/index.rst

This file was deleted.

8 changes: 0 additions & 8 deletions document/appendix-textual/index.rst

This file was deleted.

1 change: 1 addition & 0 deletions document/.gitignore → document/core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_build
_static
document/*.pyc
Loading