Skip to content

Commit 4520631

Browse files
committed
[cssom]
(1) fix copyright notice; (2) update pre-processor to accept input file and json file on command line; (3) generalize make process; (4) restore example/issue styling; (5) update README; [cssom-view] (1) fix copyright notice; (2) move IDL defs and docs into independent IDL files (see idl/*.idl); (3) generalize make process;
1 parent c550bbe commit 4520631

24 files changed

+1713
-5825
lines changed

cssom-view/Makefile

+39-11
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,62 @@
11

2-
ANOLIS = anolis
3-
CP = cp
4-
5-
XREFS = data/xrefs/css/cssom-view.json
6-
EDFILE = Overview.html
7-
TRFILE = TR/Overview.html
2+
ANOLIS = anolis
3+
NODE = node
4+
5+
SPECSTOP = ..
6+
GENDIR = $(SPECSTOP)/cssom
7+
IDLGEN = $(GENDIR)/cssom-generate-json.js
8+
SPECGEN = $(GENDIR)/cssom-generate.js
9+
SPECSRC = cssom-view-source
10+
11+
IDLDRIVER = cssom-view.idl
12+
IDLFRAGS = idl/CaretPosition.idl \
13+
idl/ClientRect.idl \
14+
idl/ClientRectList.idl \
15+
idl/Document.idl \
16+
idl/Element.idl \
17+
idl/HTMLElement.idl \
18+
idl/MediaQueryList.idl \
19+
idl/MediaQueryListListener.idl \
20+
idl/MouseEvent.idl \
21+
idl/Range.idl \
22+
idl/Screen.idl \
23+
idl/Window.idl
24+
JSONFILE = cssom-view.json
25+
XREFS = data/xrefs/css/cssom-view.json
26+
EDFILE = Overview.html
27+
TRFILE = TR/Overview.html
828

929
all: $(EDFILE)
1030

11-
Overview.src.html: cssom-view-source
12-
$(CP) $< $@
31+
$(JSONFILE): $(IDLDRIVER) $(IDLFRAGS) $(IDLGEN)
32+
gcc -E -x c -P -Iidl -C $(IDLDRIVER) | node $(IDLGEN) > $@
33+
34+
Overview.src.html: $(SPECGEN) $(JSONFILE) $(SPECSRC)
35+
$(NODE) $(SPECGEN) $(JSONFILE) $(SPECSRC) > $@
1336

1437
$(XREFS): Overview.src.html Makefile
1538
$(ANOLIS) --dump-xrefs=$@ $< /tmp/spec; $(RM) /tmp/spec
1639

1740
$(EDFILE): Overview.src.html $(XREFS) Makefile
1841
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
19-
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom-view" \
42+
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \
2043
--force-html4-id --filter=".publish" $< $@
2144

2245
draft: $(EDFILE)
2346

2447
$(TRFILE): Overview.src.html $(XREFS) Makefile
2548
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
26-
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom-view" \
49+
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \
2750
--force-html4-id --filter=".dontpublish" --pubdate="$(PUBDATE)" --w3c-status=WD $< $@
2851

2952
publish: $(TRFILE)
3053

3154
clean::
32-
$(RM) $(EDFILE)
3355
$(RM) Overview.src.html
56+
$(RM) $(JSONFILE)
57+
58+
cleanall:: clean
59+
$(RM) $(EDFILE)
3460
echo '{ "definitions": {}, "url": "http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#" }' > $(XREFS)
61+
62+

cssom-view/Overview.html

100755100644
+417-989
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)