Skip to content

Commit 5044dd7

Browse files
authored
Apply suggestions from code review
1 parent 58fdc7c commit 5044dd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/fetch-mdn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const filtered = Object.values(data)
2020
path.startsWith(
2121
"/en-us/docs/webassembly/reference/javascript_interface/",
2222
) ||
23-
path.startsWith("/en-us/docs/web/css/")
23+
path.startsWith("/en-us/docs/web/css/reference/properties/")
2424
);
2525
})
2626
.map(({ mdn_url, pageType, summary }) => ({

src/build/mdn-comments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const inputFile = new URL("../../inputfiles/mdn.json", import.meta.url);
77
const subdirectories = [
88
"web/api/",
99
"webassembly/reference/javascript_interface/",
10-
"web/css/",
10+
"web/css/reference/properties/",
1111
];
1212

1313
const paths: Record<string, string[]> = {
14-
"css-property": ["properties", "property"],
15-
"css-shorthand-property": ["properties", "property"],
14+
"css-property": ["CSSStyleProperties", "properties", "property"],
15+
"css-shorthand-property": ["CSSStyleProperties", "properties", "property"],
1616
"web-api-instance-property": ["properties", "property"],
1717
"web-api-static-property": ["properties", "property"],
1818
"web-api-instance-method": ["methods", "method"],

0 commit comments

Comments
 (0)