- builds with MkDocs are slow
- live reload doesn't really work
- MkDocs v1 is deprecated, v2 breaks everything
- material for MkDocs abandoned MkDocs and started their own thing
that all being said, Hugo is great.
### TODO:
- [x] make sure all links work
- [x] make sure all shorcode usage is replaced
- [x] organize pages a bit more
- [x] update `_redirects` with all the previous paths so they keep
working
- [x] fix merge conflicts
- [x] see if there's more things we can improve in the meantime
- [x] exclude blog posts from search
- [x] fix cmd docs
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Commit `70aab3d` incorrectly removed Gold, Silver, and Bronze sponsor
information from documentation files, leaving only a subset of backers.
This reverts that commit.
Additionally, the sponsor update script now fails fast on errors rather
than silently degrading:
- **Require `GITHUB_TOKEN`**: Script exits if environment variable is
missing (was optional)
- **Fail on API errors**: GitHub API failures now fatal instead of
continuing with partial data
- **Validate sponsor data**: Exit if no sponsors found after fetching or
grouping
### Changes
- `README.md`, `www/docs/sponsors.md`, `www/docs/overrides/home.html`:
Restored sponsor listings (123 lines)
- `scripts/update-sponsors.py`: Added error handling for missing token,
empty results, and API failures
### Impact
CI pipelines will now fail explicitly when sponsor data cannot be
generated, preventing silent publication of incomplete sponsor lists.
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `api.opencollective.com`
> - Triggering command: `/usr/bin/python3 python3
scripts/update-sponsors.py` (dns block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://github.com/goreleaser/goreleaser/settings/copilot/coding_agent)
(admins only)
>
> </details>
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
> Revert the changes introduced in commit
`70aab3d77d4579e1702d3ececeae29a2ffc4441a` in the `goreleaser`
repository. The commit in question is available at [this
link](https://github.com/goreleaser/goreleaser/commit/70aab3d77d4579e1702d3ececeae29a2ffc4441a).
The revert should focus on undoing these changes without introducing any
unintended side effects.
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
*This pull request was created from Copilot chat.*
>
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: caarlos0 <245435+caarlos0@users.noreply.github.com>
adds a script to auto-generate the sponsors list in readme.md,
sponsors.md, and in our homepage as well.
PS: used AI
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
nix mkdocs stuff is almost always broken, use docker image +
`requirements.txt` for it
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Use GoReleaser Pro to release GoReleaser OSS.
We were already using it for nightlies, will now do so for stable
releases, too.
Snapshots will still run on `main` with itself.
I plan to add a couple of new repositories with a schedule to regularly
run a more-or-less complete pipeline.
I was really tired of copying and pasting that over and over again and
keeping it all in sync...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
- generate releases.json et al on our github actions workflow
- use those when building and also on our `run` script
- new releases will dispatch the workflow so it re-generates the needed
files
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* feat: make pkg pass lintian validations
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* fix: lintian issues
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* fix: bash completions
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* feat(schema): Add command that generates the jsonschema for .goreleaser.yml files
This commit adds the jsonschema/schema subcommand that generates a jsonschema doc based on the Project go struct.
For the config types that alternatively allow you to specify a string via custom UnmarshalYAML function, this commit adds the JSONSchemaType function, so the type gets documented with an oneOf with string or itself.
Add yaml key names for properties that are currently missing them, so alecthomas/jsonschema generates the keys with correct casing.
Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>
* fix: Add linguist-generated attribute to generated schema json to exclude this file from pull request size validation
Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>
* fix: run gofumpt
Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>
* chore(schema): update alecthomas/jsonschema and regenerate schema.json
Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>