Publishing a new package
- Scaffold — copy the
docs/folder of llms-txt-bundle, change theslug,titleanddescriptioninastro.config.mjs, then split the README into pages. - Workflow — copy
.github/workflows/docs.yml: it calls the reusabledocs-site.ymlofsilarhi/docs-kit, which builds on every pull request touchingdocs/and deploys to GitHub Pages on the default branch. - Composer archive — add
/docs export-ignoreto.gitattributes. - GitHub Pages — Settings → Pages: source GitHub Actions, custom domain
<package>.silarhi.dev, Enforce HTTPS. - DNS — Cloudflare zone
silarhi.dev:CNAME <package> → silarhi.github.io, DNS only (grey cloud), otherwise GitHub cannot issue the certificate. - Hub — set
published: truefor the package inpackages/docs-kit/packages.js, with aheadline(what the package does, in the words people search for: the home page title is<name> – <headline>), and release the theme: the hub and the footer of every site link to it. In the same change, add a website named and with domain<package>.silarhi.devto the SILARHI team on analytics.silarhi.fr, and set its ID asumaminext topublished: the site tracks its visits once it upgrades to that theme release. - README — trim it to a landing page: the pitch, features, requirements, installation, a quick start, and a
Documentation list linking every page. Before cutting, check that every section, code block and inline-code
token of the old README exists on the site. Move Testing & Quality and Contributing to a
CONTRIBUTING.md(/CONTRIBUTING.md export-ignore), and point the links to old README anchors (README.md#…inCHANGELOG.md,UPGRADE*.md, docblocks, exception messages) to the documentation pages. CLAUDE.md— if it says to document the API in the README, make itdocs/: otherwise the README grows back.- Website — once the site is live, set it as the repository Website (
gh repo edit --homepage), as thehomepageandsupport.docsofcomposer.json(Packagist links to the documentation from these only), and as thehomepageof an npm package the repository publishes.
