File tree Expand file tree Collapse file tree 3 files changed +23
-19
lines changed Expand file tree Collapse file tree 3 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ function run_bikeshed {
4
+ echo Running bikeshed on $1
5
+ if which bikeshed; then
6
+ bikeshed -f spec $1
7
+ else
8
+ HTTP_STATUS=$( curl https://api.csswg.org/bikeshed/ \
9
+ --output $2 \
10
+ --write-out " %{http_code}" \
11
+ --header " Accept: text/plain, text/html" \
12
+ -F file=@$1 )
13
+ if [ " $HTTP_STATUS " -ne " 200" ]; then
14
+ echo " " ; cat $2 ; echo " "
15
+ rm -f $2
16
+ exit 1
17
+ fi
18
+ fi
19
+ }
20
+
3
21
shopt -q nullglob
4
22
NULLGLOB_WAS_SET=$?
5
23
shopt -s nullglob
10
28
11
29
set -e # Exit with nonzero exit code if anything fails
12
30
13
- for SPEC in index.src.html $FILES ; do
14
- echo Running bikeshed on $SPEC
15
- if which bikeshed; then
16
- bikeshed -f spec $SPEC
17
- else
18
- SPEC_OUT=${SPEC% .bs} .html
19
- HTTP_STATUS=$( curl https://api.csswg.org/bikeshed/ \
20
- --output ${SPEC_OUT} \
21
- --write-out " %{http_code}" \
22
- --header " Accept: text/plain, text/html" \
23
- -F file=@${SPEC} )
24
- if [ " $HTTP_STATUS " -ne " 200" ]; then
25
- echo " " ; cat $SPEC_OUT ; echo " "
26
- rm -f $SPEC_OUT
27
- exit 1
28
- fi
29
- fi
31
+ run_bikeshed index.src.html index.html
32
+ for SPEC in $FILES ; do
33
+ run_bikeshed $SPEC ${SPEC% .bs} .html
30
34
done
31
35
32
36
OUTDIR=${1:- out}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <h1>Reporting API</h1>
18
18
Indent: 2
19
19
Version History: https://github.com/w3c/reporting/commits/main/index.src.html
20
20
Boilerplate: omit conformance, omit feedback-header
21
- !Participate: < a href =" https://github.com/w3c/reporting/issues/new " > File an issue </ a > ( < a href =" https://github.com/w3c/reporting/issues " > open issues </ a > )
21
+ Repository: https://github.com/w3c/reporting/
22
22
Markup Shorthands: css off, markdown on
23
23
</ pre >
24
24
< pre class ="anchors ">
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Level: 1
20
20
Indent : 2
21
21
Version History : https://github.com/w3c/reporting/commits/master/index.src.html
22
22
Boilerplate : omit conformance, omit feedback-header
23
- !Participate : <a href=" https://github.com/w3c/reporting/issues/new">File an issue</a> (<a href="https://github.com/w3c/reporting/issues">open issues</a>)
23
+ Repository : https://github.com/w3c/reporting/
24
24
Markup Shorthands : css off, markdown on
25
25
</pre>
26
26
<pre class="anchors">
You can’t perform that action at this time.
0 commit comments