Skip to content

fix(docs-sync): exclude double-extension .*.md files from docs copy#141

Merged
anukiransolur merged 1 commit into
mainfrom
fix/docs-sync-exclude-template-md
Jun 24, 2026
Merged

fix(docs-sync): exclude double-extension .*.md files from docs copy#141
anukiransolur merged 1 commit into
mainfrom
fix/docs-sync-exclude-template-md

Conversation

@toiroakr

Copy link
Copy Markdown
Contributor

Summary

  • Add a filter to `fs.cpSync` in `scripts/docs-sync/main.ts` to skip files whose basename matches `.[^.]+.md$` (i.e. double-extension files like `*.template.md`)
  • Pre-compile the regex as a module-level constant `DOUBLE_EXT_MD` to avoid per-file allocations
  • Prevents template source files from the SDK (introduced in fix(deps): update dependency politty to v0.9.2 sdk#1533) from leaking into the published documentation site

@toiroakr
toiroakr marked this pull request as ready for review June 24, 2026 03:05
@toiroakr
toiroakr requested a review from a team as a code owner June 24, 2026 03:05
@toiroakr
toiroakr force-pushed the fix/docs-sync-exclude-template-md branch from 1bd6075 to 8eb7a66 Compare June 24, 2026 03:06
@anukiransolur
anukiransolur merged commit 636a69d into main Jun 24, 2026
3 checks passed
@anukiransolur
anukiransolur deleted the fix/docs-sync-exclude-template-md branch June 24, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants