- Astro 50%
- TypeScript 32%
- Sass 18%
Automatic Starlog #
Create a changelog website from the GitHub releases of any repository, based on the Starlog release notes theme for Astro.
- Releases of the main package are listed on the home page, while releases of every other package published from the repository are available on their own package pages.
- All release notes can be searched with the full-text search powered by Pagefind.
- Minor and major releases of the main package display a generated release image.
- Supports both dark and light modes.
Examples built from this template: Starlight Changelog and Astro Changelog.
Configuration #
- Configure your project in
src/consts.ts: the GitHub repository, the main package, the website and footer links. - Set the
siteoption inastro.config.tsto the URL of your deployed changelog. - Set the
PACKAGE_NAMEenvironment variable in.github/workflows/check-releases.yamlto your npm package. The workflow checks for new versions daily and commits them todata/latest.json, which triggers a new deployment. - Optionally, add an Open Graph image to
public/og.pngand setOgImageto/og.pnginsrc/consts.ts.
Releases need to be tagged as package@version (e.g. @astrojs/starlight@1.0.0), which is the default for repositories using Changesets. Tags without a package name (e.g. v1.0.0) are attributed to the main package.
Development #
Releases are loaded from the GitHub API at build time. Set a GITHUB_TOKEN environment variable to load the complete release history, as unauthenticated requests are limited to the latest 1000 releases of a repository.
pnpm install
pnpm dev
The search index is generated at build time, so search is only available after running pnpm build and pnpm preview.
License #
Licensed under the MIT License, Copyright © trueberryless.
See LICENSE for more information.