Skip to content

chore: fix issues with sponsors arrays being empty#10843

Merged
jasonsaayman merged 1 commit into
v1.xfrom
fix/docs-build-issues
May 4, 2026
Merged

chore: fix issues with sponsors arrays being empty#10843
jasonsaayman merged 1 commit into
v1.xfrom
fix/docs-build-issues

Conversation

@jasonsaayman

@jasonsaayman jasonsaayman commented May 4, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Fixes docs sponsor rendering by safely handling missing tiers and cleaning up docs/data/sponsors.json, preventing homepage and Sponsors pages from breaking across locales.

Description

  • Summary of changes
    • Added optional chaining + [] fallbacks in index.md and pages/misc/sponsors.md for en/es/fr/zh.
    • Updated docs/data/sponsors.json: corrected active flags, removed duplicates, added/removed entries, and allowed missing tiers (e.g., platinum) without breaking pages.
  • Reasoning
    • Some sponsor arrays were undefined/empty, causing spreads and filters to throw and pages to fail.
  • Additional context
    • Stabilizes docs build on fix/docs-build-issues and ensures sponsor sections render even if a tier is absent.

Docs

  • Update /docs/ to note that any sponsor tier array may be omitted and the site will default to empty lists. Outline sponsors.json structure and the active flag behavior.

Testing

  • No automated tests added.
  • Manual verification: build the docs and load the homepage and Sponsors pages for all locales; confirm no errors when a tier is missing and sponsor grids render with only active entries.

Semantic version impact

  • No impact to axios packages; docs-only change. No release required.

Written for commit 975b7c5. Summary will update on new commits.

@jasonsaayman jasonsaayman self-assigned this May 4, 2026
@jasonsaayman jasonsaayman added priority::medium A medium priority commit::docs The PR is related to docs labels May 4, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 9 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@jasonsaayman jasonsaayman merged commit 9e6cc47 into v1.x May 4, 2026
25 checks passed
@jasonsaayman jasonsaayman deleted the fix/docs-build-issues branch May 4, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit::docs The PR is related to docs priority::medium A medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant