Skip to content

Commit b1cfc66

Browse files
annevkfoolip
authored andcommitted
Meta: update repository files
See https://github.com/whatwg/spec-factory for details.
1 parent 693db15 commit b1cfc66

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

.editorconfig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ root = true
44
end_of_line = lf
55
insert_final_newline = true
66
charset = utf-8
7-
indent_size = 1
7+
indent_size = 2
88
indent_style = space
99
trim_trailing_whitespace = true
1010
max_line_length = 100
1111

1212
[Makefile]
1313
indent_style = tab
1414

15-
[.travis.yml]
16-
indent_size = 2
15+
[*.bs]
16+
indent_size = 1
17+
18+
[*.py]
19+
indent_size = 4

.pr-preview.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
{
2-
"src_file": "fullscreen.bs",
3-
"type": "bikeshed",
4-
"params": {
5-
"force": 1,
6-
"md-status": "LS-COMMIT",
7-
"md-h1": "Fullscreen API <small>(<a href=\"{{ pull_request.html_url }}\">PR #{{ pull_request.number }}</a>)</small>",
8-
"md-warning": "Commit {{ short_sha }} {{ pull_request.head.repo.html_url }}/commit/{{ sha }} replaced by {{ config.ls_url }}",
9-
"md-title": "{{ config.title }} (Pull Request Snapshot #{{ pull_request.number }})",
10-
"md-Text-Macro": "SNAPSHOT-LINK {{ config.back_to_ls_link }}"
11-
},
12-
"ls_url": "https://fullscreen.spec.whatwg.org/",
13-
"title": "Fullscreen API Standard",
14-
"back_to_ls_link": "<a href=\"https://fullscreen.spec.whatwg.org/\" id=\"commit-snapshot-link\">Go to the living standard</a>"
2+
"src_file": "fullscreen.bs",
3+
"type": "bikeshed",
4+
"params": {
5+
"force": 1,
6+
"md-status": "LS-PR",
7+
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}"
8+
}
159
}

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@ SHELL=/bin/bash -o pipefail
22
.PHONY: local remote deploy review
33

44
remote: fullscreen.bs
5-
curl https://api.csswg.org/bikeshed/ -f -F [email protected] > fullscreen.html -F md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
5+
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
6+
--output fullscreen.html \
7+
--write-out "%{http_code}" \
8+
--header "Accept: text/plain, text/html" \
9+
-F die-on=warning \
10+
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \
11+
12+
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
13+
echo ""; cat fullscreen.html; echo ""; \
14+
rm -f fullscreen.html; \
15+
exit 22 \
16+
);
617

718
local: fullscreen.bs
8-
bikeshed spec fullscreen.bs fullscreen.html --md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
19+
bikeshed spec fullscreen.bs fullscreen.html --md-Text-Macro="COMMIT-SHA LOCAL COPY"
920

1021
deploy: fullscreen.bs
1122
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh

0 commit comments

Comments
 (0)