Skip to content

Commit 99e7228

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix: exempt standard article metadata from design review
1 parent e44e975 commit 99e7228

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

design-diff.config.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,24 @@
108108
"title",
109109
"description",
110110
"author",
111+
"authors",
111112
"date",
113+
"updated",
112114
"publishedAt",
113115
"updatedAt",
114116
"readingTime",
115117
"tags",
116118
"category",
117-
"keywords"
119+
"keywords",
120+
"slug",
121+
"canonical",
122+
"ogAlt",
123+
"about",
124+
"timeRequired",
125+
"faq",
126+
"draft",
127+
"featured",
128+
"technical"
118129
],
119130
"components": [
120131
{

scripts/design-diff/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ TSX/CSS files that an application build or Tailwind source scan could consume.
160160

161161
Policy 4 exempts routine authoring in the `documentationContent.roots` directories. The parser
162162
projects out prose, Markdown tables, code samples and recognized frontmatter content fields.
163+
Article metadata follows the repository content schema, including author/date fields and FAQ
164+
answers; cover image references remain presentation evidence.
163165
Configured Fumadocs/repository components are recognized by their import module and named export,
164166
including local import aliases. Only their declared content props with literal data are exempt;
165167
standard Callout types and tab labels are authoring options. Unknown widgets, appearance overrides,

scripts/design-diff/tests/document-content.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ it.each([
2525
`${faq}<FAQ items={[{question: "Why?", answer: "Before"}]} />`,
2626
`${faq}<FAQ items={[{question: "Why?", answer: "After"}, {question: "When?", answer: "Now"}]} />`,
2727
],
28+
[
29+
'article metadata and FAQ',
30+
'---\nupdated: 2026-07-31\nauthors: [andrew]\nfaq: [{q: Why, a: Before}]\n---',
31+
'---\nupdated: 2026-08-29\nauthors: [andrew, bill]\nfaq: [{q: Why, a: After}]\n---',
32+
],
2833
[
2934
'callout',
3035
`${callout}<Callout type="info">Before</Callout>`,
@@ -76,6 +81,7 @@ it.each([
7681
['image dimensions', '<img src="/a.png" width={100}/>', '<img src="/a.png" width={200}/>'],
7782
['image source', '![Screenshot](/a.png)', '![Screenshot](/b.png)'],
7883
['new embedded image', '# Guide', '# Guide\n\n![Screenshot](/a.png)'],
84+
['article cover', '---\nogImage: /a.png\n---', '---\nogImage: /b.png\n---'],
7985
[
8086
'unknown frontmatter',
8187
'---\ntitle: Old\nlayout: narrow\n---',

0 commit comments

Comments
 (0)