Skip to content

docs: mirror package README to repo root for GitHub home page#16

Merged
lopadova merged 1 commit into
mainfrom
docs/readme-home-mirror
Jun 22, 2026
Merged

docs: mirror package README to repo root for GitHub home page#16
lopadova merged 1 commit into
mainfrom
docs/readme-home-mirror

Conversation

@lopadova

Copy link
Copy Markdown
Contributor

What

GitHub only renders a root README.md on the repository home page, so the polished package README (also published to npm) is now mirrored verbatim to the root.

Since package/README.md uses absolute URLs throughout (badges, banner, screenshots, links to AGENTS.md/CLAUDE.md/LICENSE), the two files are byte-identical and the mirror is a plain copy — no path rewriting.

Changes

  • README.md (root) — now a verbatim mirror of package/README.md
  • scripts/sync-readme.mjs — copies package → root; --check fails if out of sync
  • package.jsonsync:readme / check:readme scripts
  • ts-checks — CI step fails if the root README is stale
  • .claude/rules/rule-readme-sync.md — regenerate via npm run sync:readme, never hand-edit root

🤖 Generated with Claude Code

GitHub only renders a root README.md on the repository home page, so the
polished package README (also published to npm) is now mirrored verbatim to
the root. Since package/README.md uses absolute URLs throughout, the two files
are byte-identical and the mirror is a plain copy.

- scripts/sync-readme.mjs: copy package -> root, with --check for CI
- package.json: sync:readme / check:readme scripts
- ts-checks: fail CI if the root README is out of sync
- rule-readme-sync: regenerate root via npm run sync:readme, never hand-edit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lopadova lopadova merged commit 285e9e8 into main Jun 22, 2026
1 of 3 checks passed
@lopadova lopadova deleted the docs/readme-home-mirror branch June 22, 2026 17:12
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.

1 participant