Context
Sync scripts from restructuring-attempt-1 keep auto-synced docs pages up to date with upstream repos. They need to be restored and adapted for the current structure.
Scripts to restore
scripts/sync-motoko.sh — syncs docs/languages/motoko/ from .sources/motoko (Caffeine Labs)
scripts/postprocess-motoko.mjs — post-processes synced Motoko pages (frontmatter injection, link rewriting)
scripts/sync-icp-cli-version.mjs — updates the icp-cli version reference in docs
Steps
- Check out
restructuring-attempt-1 to review the originals
- Adapt for current paths and frontmatter schema
- Add to
package.json as npm run sync:motoko etc.
- Document the sync process in
AGENTS.md / CONTRIBUTING.md
Context
Sync scripts from
restructuring-attempt-1keep auto-synced docs pages up to date with upstream repos. They need to be restored and adapted for the current structure.Scripts to restore
scripts/sync-motoko.sh— syncsdocs/languages/motoko/from.sources/motoko(Caffeine Labs)scripts/postprocess-motoko.mjs— post-processes synced Motoko pages (frontmatter injection, link rewriting)scripts/sync-icp-cli-version.mjs— updates the icp-cli version reference in docsSteps
restructuring-attempt-1to review the originalspackage.jsonasnpm run sync:motokoetc.AGENTS.md/CONTRIBUTING.md