Skip to content

Commit 248a906

Browse files
feat(manifests)!: add top-level manifests folder + move Web App Manifest (#26109)
Introduces a top-level `manifests/` folder, which will eventually store more manifest types. For now, it only holds the `webapp` manifests, which were moved from `html.manifest`. --------- Co-authored-by: Claas Augner <[email protected]>
1 parent 3791543 commit 248a906

29 files changed

+60
-44
lines changed

.github/issue-regex-labeler.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ data:http:
1313
data:js:
1414
- 'js\.'
1515
- '\/docs\/Web\/JavaScript'
16+
data:manifests:
17+
- 'manifests\.'
18+
- '\/docs\/Web\/Progressive_web_apps\/Manifest'
1619
data:mathml:
1720
- 'mathml\.'
1821
- '\/docs\/Web\/MathML'

.github/labeler.yml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ data:js:
2828
- changed-files:
2929
- any-glob-to-any-file:
3030
- "javascript/**"
31+
data:manifests:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- "manifests/**"
3135
data:mathml:
3236
- changed-files:
3337
- any-glob-to-any-file:

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"/html/*.json",
1717
"/http/*.json",
1818
"/javascript/*.json",
19+
"/manifests/*.json",
1920
"/mathml/*.json",
2021
"/svg/*.json",
2122
"/webdriver/*.json",

.vscode/snippets.code-snippets

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"prefix": ["bcd", "browser-compat"],
55
"body": [
66
"{",
7-
" \"${1|api,css,html,http,javascript,mathml,svg,webdriver,webextensions|}\": {",
7+
" \"${1|api,css,html,http,javascript,manifests,mathml,svg,webassembly,webdriver,webextensions|}\": {",
88
" \"${2:${TM_FILENAME_BASE}}\": {",
99
" \"__compat\": {",
1010
" \"mdn_url\": \"${3:mdn-url}\",",

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ Data for [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) features, inc
148148

149149
- `elements` - Elements
150150
- `global_attributes` - Global attributes
151-
- `manifest` - Web App manifest keys
152151

153152
### [`http`](http)
154153

@@ -169,6 +168,10 @@ Data for JavaScript language features, including:
169168
- `operators` - Mathematical and logical operators
170169
- `statements` - Language statements and expressions
171170

171+
### [`manifests`](./manifests)
172+
173+
- `webapp` - Web App manifest keys
174+
172175
### [`mathml`](./mathml)
173176

174177
Data for [MathML](https://developer.mozilla.org/en-US/docs/Web/MathML) features, including:

html/manifest/background_color.json renamed to manifests/webapp/background_color.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"background_color": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/background_color",

html/manifest/description.json renamed to manifests/webapp/description.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"description": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/description",

html/manifest/display.json renamed to manifests/webapp/display.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"display": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/display",

html/manifest/display_override.json renamed to manifests/webapp/display_override.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"display_override": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/display_override",

html/manifest/file_handlers.json renamed to manifests/webapp/file_handlers.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"file_handlers": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/file_handlers",

html/manifest/icons.json renamed to manifests/webapp/icons.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"icons": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/icons",

html/manifest/id.json renamed to manifests/webapp/id.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"id": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/id",

html/manifest/launch_handler.json renamed to manifests/webapp/launch_handler.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"launch_handler": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/launch_handler",

html/manifest/name.json renamed to manifests/webapp/name.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"name": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/name",

html/manifest/note_taking.json renamed to manifests/webapp/note_taking.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"note_taking": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/note_taking",

html/manifest/orientation.json renamed to manifests/webapp/orientation.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"orientation": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/orientation",

html/manifest/prefer_related_applications.json renamed to manifests/webapp/prefer_related_applications.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"prefer_related_applications": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/prefer_related_applications",

html/manifest/protocol_handlers.json renamed to manifests/webapp/protocol_handlers.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"protocol_handlers": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/protocol_handlers",

html/manifest/related_applications.json renamed to manifests/webapp/related_applications.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"related_applications": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/related_applications",

html/manifest/scope.json renamed to manifests/webapp/scope.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"scope": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/scope",

html/manifest/serviceworker.json renamed to manifests/webapp/serviceworker.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"serviceworker": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/serviceworker",

html/manifest/share_target.json renamed to manifests/webapp/share_target.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"share_target": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/share_target",

html/manifest/short_name.json renamed to manifests/webapp/short_name.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"short_name": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/short_name",

html/manifest/shortcuts.json renamed to manifests/webapp/shortcuts.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"shortcuts": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/shortcuts",

html/manifest/start_url.json renamed to manifests/webapp/start_url.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"start_url": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/start_url",

html/manifest/theme_color.json renamed to manifests/webapp/theme_color.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"html": {
3-
"manifest": {
2+
"manifests": {
3+
"webapp": {
44
"theme_color": {
55
"__compat": {
66
"mdn_url": "https://developer.mozilla.org/docs/Web/Progressive_web_apps/Manifest/Reference/theme_color",

schemas/compat-data-schema.md

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Compatibility data is organized in top-level directories for each broad area cov
1818

1919
- [javascript/](../javascript) contains data for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.
2020

21+
- [manifests/](../manifests) contains data for various manifests, such as the [Web Application Manifest](https://developer.mozilla.org/docs/Web/Progressive_web_apps/manifest).
22+
2123
- [mathml/](../mathml) contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.
2224

2325
- [svg/](../svg) contains data for [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG) elements, attributes, and global attributes.

scripts/generate-types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const compatDataTypes = {
3434
http: 'Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP) headers, statuses, and methods.',
3535
javascript:
3636
'Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.',
37+
manifests:
38+
'Contains data for various manifests, such as the [Web Application Manifest](https://developer.mozilla.org/docs/Web/Progressive_web_apps/manifest).',
3739
mathml:
3840
'Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.',
3941
svg: 'Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG) elements, attributes, and global attributes.',

scripts/lib/data-folders.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const dataFoldersMinusBrowsers = [
77
'html',
88
'http',
99
'javascript',
10+
'manifests',
1011
'mathml',
1112
'svg',
1213
'webassembly',

0 commit comments

Comments
 (0)