Monorepo of the documentation tooling of the SILARHI open-source packages.
| Path | What |
|---|---|
packages/docs-kit |
@silarhi/docs-kit on npm |
site |
The hub, docs.silarhi.dev: the package list and the theme guide |
social |
The GitHub social preview of every public SILARHI repository (1280×640) |
Each package documents itself from its own docs/ folder, published at https://<package>.silarhi.dev by the
reusable workflow docs-site.yml of this repository.
pnpm install
pnpm dev # the hub, with the local theme
pnpm lintA pnpm workspace (pnpm-workspace.yaml): the hub depends on the theme through workspace:*. The pnpm version is
pinned by packageManager in package.json; a dependency that needs an install script must be listed under
allowBuilds in pnpm-workspace.yaml (none does today).
To try the theme on a package before releasing it: pnpm link <path to>/docs-kit/packages/docs-kit
in the docs/ folder of the package.
pnpm social draws social/<repository>.png for the repositories listed in
scripts/github-social.mjs (the packages of packages.js, then the others), with headless
Chrome and gh logged in; pnpm social picasso-bundle draws one. The PHP, Symfony and Doctrine floors and the licence
are read from each repository's composer.json or package.json on GitHub: run it again after raising one, and for a
new package. GitHub has no API for this image: upload the file in the repository's Settings → General → Social preview.
Websites keep 1200×630 for their og:image, the ratio Facebook and LinkedIn show uncropped; 1280×640 is GitHub's, with
the 80 px safe border of its template.
- Bump
versioninpackages/docs-kit/package.json - Tag
v<version>onorigin/mainand push the tag:release.ymlpublishes to npm
MIT