Skip to content

Commit c838f78

Browse files
pdmackclaude
andcommitted
fix(ci): validate frozen content with MDX parser after sanitization
Run tools/check-docs-mdx-parse on each version's sanitized content so any escaping gap is caught before publish rather than at fern generate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dad1bc8 commit c838f78

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/fern-docs-preview-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
}
9090
' "$f" > "${f}.tmp" && mv "${f}.tmp" "$f"
9191
done
92+
tools/check-docs-mdx-parse "fern/versions/${version}-content"
9293
echo "Extracted docs from $version"
9394
else
9495
echo "::warning::Tag $version not found — skipping content checkout"

.github/workflows/publish-fern-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ jobs:
205205
}
206206
' "$f" > "${f}.tmp" && mv "${f}.tmp" "$f"
207207
done
208+
tools/check-docs-mdx-parse "fern/versions/${version}-content"
208209
echo "Extracted docs from $version"
209210
else
210211
echo "::error::Tag $version not found — cannot pin frozen docs content"

0 commit comments

Comments
 (0)