-
Notifications
You must be signed in to change notification settings - Fork 369
chore(repo): Switch typedocs to being generated in clerk-docs
directly
#6267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ const typedocPluginReplaceTextOptions = { | |
|
||
/** @type {import("typedoc").TypeDocOptions} */ | ||
const config = { | ||
out: './.typedoc/docs', | ||
out: './.typedoc/temp-docs', | ||
entryPointStrategy: 'packages', | ||
plugin: [ | ||
Comment on lines
80
to
83
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent ❓ Verification inconclusiveKeep The path is now duplicated here and in 🏁 Script executed: #!/usr/bin/env bash
# CI guard – fails if the two paths diverge
jq -r '.scripts["typedoc:generate"]' package.json | grep -q '.typedoc/temp-docs' || {
echo "Mismatch between typedoc output path in package.json and typedoc.config.mjs"; exit 1;
} Length of output: 80 Add CI guard to enforce TypeDoc output path consistency The #!/usr/bin/env bash
# Fails if the TypeDoc output path in package.json and typedoc.config.mjs differ
jq -r '.scripts["typedoc:generate"]' package.json \
| grep -q '\.typedoc\/temp-docs' \
|| {
echo "Mismatch between typedoc output path in package.json and typedoc.config.mjs"
exit 1
} • Add this as a script (e.g. 🤖 Prompt for AI Agents
|
||
'typedoc-plugin-replace-text', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Don’t delete old docs before the new ones are verified
If TypeDoc fails, the
rm -rf .typedoc/docs
leaves you with no docs at all.Guard that the temp folder exists first and replace atomically (
mv -T
or similar).🤖 Prompt for AI Agents