Skip to content

Commit 24eb437

Browse files
authored
Meta: enable PR preview, add editor config, and link web-platform-tests
See whatwg/meta#16.
1 parent a46a0c4 commit 24eb437

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_size = 1
8+
indent_style = space
9+
trim_trailing_whitespace = true
10+
max_line_length = 100
11+
12+
[Makefile]
13+
indent_style = tab
14+
15+
[.travis.yml]
16+
indent_size = 2

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.bs diff=html linguist-language=HTML

.pr-preview.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"src_file": "encoding.bs",
3+
"type": "bikeshed",
4+
"params": {
5+
"force": 1,
6+
"md-status": "LS-COMMIT",
7+
"md-h1": "URL <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://encoding.spec.whatwg.org/",
13+
"title": "Encoding Standard",
14+
"back_to_ls_link": "<a href=\"https://encoding.spec.whatwg.org/\" id=\"commit-snapshot-link\">Go to the living standard</a>"
15+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ If you can commit to this repository, see the
3939

4040
### Tests
4141

42-
Tests can be found in the `encoding/` directory of the
43-
[web-platform-tests repository](https://github.com/w3c/web-platform-tests).
42+
Tests can be found in the `encoding/` directory of
43+
[web-platform-tests](https://github.com/w3c/web-platform-tests).

encoding.bs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Markup Shorthands: css off
1414
!Commits: <a href=https://github.com/whatwg/encoding/commits>GitHub whatwg/encoding/commits</a>
1515
!Commits: [SNAPSHOT-LINK]
1616
!Commits: <a href=https://twitter.com/encodings>@encodings</a>
17+
!Tests: <a href=https://github.com/w3c/web-platform-tests/tree/master/encoding>web-platform-tests encoding/</a> (<a href=https://github.com/w3c/web-platform-tests/labels/encodingh>ongoing work</a>)
1718
!Translation (non-normative): <span title=Japanese><a href=https://triple-underscore.github.io/Encoding-ja.html lang=ja hreflang=ja rel=alternate>日本語</a></span>
1819
Translate IDs: dictdef-textdecoderoptions textdecoderoptions,dictdef-textdecodeoptions textdecodeoptions
1920
</pre>

0 commit comments

Comments
 (0)