Skip to content

Commit 3c9c052

Browse files
committed
Merge remote-tracking branch 'source/main'
2 parents 63a181a + 1726692 commit 3c9c052

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+732
-245
lines changed

.github/workflows/mirror-to-master.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/w3c-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ on:
77

88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
10+
inputs:
11+
w3c-status:
12+
required: true
13+
type: string
1014

1115
jobs:
1216
publish-to-w3c-TR:
17+
if: github.repository == 'WebAssembly/spec'
1318
runs-on: ubuntu-latest
1419
steps:
1520
- name: Checkout repo
@@ -29,7 +34,7 @@ jobs:
2934
- name: Publish all specs to their https://www.w3.org/TR/ URLs
3035
run: cd document && make -e WD-echidna-CI
3136
env:
32-
STATUS: --md-status=WD
37+
W3C_STATUS: ${{ github.event_name == 'push' && 'WD' || inputs.w3c-status }}
3338
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
3439
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
3540
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}

document/LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This document is licensed under the W3C Software and Document License.
2+
Its text can be found at https://www.w3.org/copyright/software-license/

document/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ diff: $(DIRS:%=diff-%)
2828
# macOS: do “brew install tar” & run “make” as: TAR=gtar make -e WD-tar
2929
.PHONY: WD-tar
3030
WD-tar:
31-
for dir in $(DIRS); \
32-
do STATUS=--md-status=WD TAR=$(TAR) $(MAKE) -e -C $$dir $@;\
31+
for dir in $(DIRS); do \
32+
TAR=$(TAR) $(MAKE) -e -C $$dir $@ || exit 1; \
3333
done
3434

3535
# macOS: do “brew install tar” & run “make” as: TAR=gtar make -e WD-echidna
3636
.PHONY: WD-echidna
3737
WD-echidna:
38-
for dir in $(DIRS); \
39-
do $(MAKE) -e -C $$dir $@;\
38+
for dir in $(DIRS); do \
39+
$(MAKE) -e -C $$dir $@ || exit 1; \
4040
done
4141

4242
.PHONY: WD-echidna-CI
4343
WD-echidna-CI:
44-
for dir in $(DIRS); \
45-
do $(MAKE) -e -C $$dir $@;\
44+
for dir in $(DIRS); do \
45+
$(MAKE) -e -C $$dir $@ || exit 1; \
4646
done
4747

4848
# Directory-specific targets.

document/core/Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
#
33

44
# You can set these variables from the command line.
5+
W3C_STATUS = ED
56
SPHINXOPTS =
67
SPHINXBUILD = sphinx-build
78
PAPER = a4
89
BUILDDIR = _build
910
STATICDIR = _static
1011
DOWNLOADDIR = _download
1112
NAME = WebAssembly
12-
DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2017/WG-12-06.md
13+
DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2024/WG-06-12.md
1314
TAR = tar
15+
DEADLINE = $(shell date -d "+30 days" +%Y-%m-%d 2>/dev/null || date -v +30d +%Y-%m-%d)
1416

1517
# Internal variables.
1618
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -80,7 +82,7 @@ publish-main: clean main bikeshed-keep deploy
8082
all: pdf html bikeshed
8183

8284
.PHONY: main
83-
main: pdf html
85+
main: macrosok pdf html
8486

8587
# Dirty hack to avoid rebuilding the Bikeshed version for every push.
8688
.PHONY: bikeshed-keep
@@ -97,6 +99,10 @@ GENERATED = appendix/index-instructions.rst
9799
%.rst: %.py
98100
(cd `dirname $@`; ./`basename $^`)
99101

102+
.PHONY: macrosok
103+
macrosok: $(GENERATED)
104+
sh util/check_macros.sh
105+
100106
.PHONY: pdf
101107
pdf: $(GENERATED) latexpdf
102108
mkdir -p $(BUILDDIR)/html/$(DOWNLOADDIR)
@@ -150,7 +156,7 @@ bikeshed: $(GENERATED)
150156
@echo
151157
@echo =========================================================================
152158
mkdir -p $(BUILDDIR)/bikeshed_mathjax/
153-
bikeshed spec $(STATUS) index.bs $(BUILDDIR)/bikeshed_mathjax/index.html
159+
bikeshed spec --md-status=$(W3C_STATUS) --md-deadline=$(DEADLINE) index.bs $(BUILDDIR)/bikeshed_mathjax/index.html
154160
mkdir -p $(BUILDDIR)/html/bikeshed/
155161
(cd util/katex/ && yarn && yarn build && npm install --only=prod)
156162
python3 util/mathjax2katex.py $(BUILDDIR)/bikeshed_mathjax/index.html \
@@ -192,7 +198,7 @@ WD-echidna: WD-tar
192198
-F "tar=@$(BUILDDIR)/WD.tar" \
193199
-F "decision=$(DECISION_URL)" | tee $(BUILDDIR)/WD-echidna-id.txt
194200
@echo
195-
@echo "Published working draft. Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
201+
@echo "Published $(W3C_STATUS). Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
196202

197203
.PHONY: WD-echidna-CI
198204
WD-echidna-CI: WD-tar
@@ -206,7 +212,7 @@ WD-echidna-CI: WD-tar
206212
-F "token=$(W3C_ECHIDNA_TOKEN_CORE)" \
207213
-F "decision=$(DECISION_URL)" | tee $(BUILDDIR)/WD-echidna-id.txt
208214
@echo
209-
@echo "Published working draft. Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
215+
@echo "Published $(W3C_STATUS). Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
210216

211217
.PHONY: diff
212218
diff: bikeshed

document/core/binary/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ It decodes into a vector of :ref:`element segments <syntax-elem>` that represent
360360
361361
.. note::
362362
The initial integer can be interpreted as a bitfield.
363-
Bit 0 indicates a passive or declarative segment,
363+
Bit 0 distinguishes a passive or declarative segment from an active segment,
364364
bit 1 indicates the presence of an explicit table index for an active segment and otherwise distinguishes passive from declarative segments,
365365
bit 2 indicates the use of element type and element :ref:`expressions <binary-expr>` instead of element kind and element indices.
366366

document/core/index.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Issue Tracking: GitHub https://github.com/WebAssembly/spec/issues
77
Level: 2
88
TR: https://www.w3.org/TR/wasm-core-2/
99
ED: https://webassembly.github.io/spec/core/bikeshed/
10+
Implementation Report: https://webassembly.org/features/
1011
Editor: Andreas Rossberg, w3cid 82328
1112
Repository: WebAssembly/spec
1213
Markup Shorthands: css no, markdown no, algorithm no, idl no

document/core/static/custom.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ body {
1515
font-size: 15px;
1616
}
1717

18-
div.document { width: 1000px; }
18+
div.document {
19+
width: unset;
20+
max-width: 1000px;
21+
}
1922
div.bodywrapper { margin: 0 0 0 200px; }
2023
div.body { padding: 0 10px 0 10px; }
21-
div.footer { width: 1000px; }
24+
div.footer {
25+
width: unset;
26+
max-width: 1000px;
27+
}
2228

2329
div.body h1 { font-size: 200%; }
2430
div.body h2 { font-size: 150%; }

document/core/text/lexical.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ Any token that does not fall into any of the other categories is considered *res
7171

7272
.. index:: ! white space, character, ASCII
7373
single: text format; white space
74-
.. _text-format:
7574
.. _text-space:
75+
.. _text-format:
76+
.. _text-newline:
7677

7778
White Space
7879
~~~~~~~~~~~

document/core/text/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ As another abbreviation, element segments may also be specified inline with :ref
569569
single: data; segment
570570
.. _text-datastring:
571571
.. _text-data:
572-
.. _test-memuse:
572+
.. _text-memuse:
573573

574574
Data Segments
575575
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)