Review the documentation at astro.stevefenton.co.uk
Astro Accelerator is designed for re-use. That means we have to be careful to ensure consumers of the Accelerator can easily style everything. The Accelerator ships with sensible defaults, but it should be possible to replace just about anything.
To make this possible...
- Consider whether a change should be accompanied by a feature flag
- Make sure SVG icons can be styled in CSS (stroke and fill shouldn't be hard-coded to a colour)
- For drastic changes to a component, consider creating an alternate component instead
- Update the documentation files with changes to help folks out
Currently, to run the image optimization on Linux, you need to force a compatible version of Sharp to be installed. Any suggestions for a better approach would be appreciated:
pnpm install --include=optional sharp
pnpm install --force @img/sharp-linux-x64
Update the package.json
with the new version number, and commit the change.
The NPM token expires periodically and must be updated in GitHub settings -> Secrets -> Actions.