Skip to content

Commit

Permalink
Add explainer text
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmcnee committed Apr 6, 2024
1 parent 812b803 commit 6be2c57
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 108 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
index.html
README.html
.*.sw?
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SHELL=/bin/bash

bikeshed_files = index.bs

.PHONY: clean spec

spec: $(bikeshed_files:.bs=.html)

clean:
rm -f $(bikeshed_files:.bs=.html) README.html

README.html: README.md
pandoc -f gfm --metadata title="Explainer" -s -o $@ $<

%.html: %.bs
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output $@ \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F file=@$<) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat $@; echo ""; \
rm -f $@; \
exit 22 \
);
Loading

0 comments on commit 6be2c57

Please sign in to comment.