Skip to content

Fix docs build: override Starlight social array with required object format#282

Merged
rijesha merged 2 commits intodevelopfrom
copilot/fix-astro-starlight-config
Mar 17, 2026
Merged

Fix docs build: override Starlight social array with required object format#282
rijesha merged 2 commits intodevelopfrom
copilot/fix-astro-starlight-config

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

mylonics-styles's mylonicsStarlightDefaults returns social as an array ([{ icon, label, href }]), but Starlight 0.32 expects a Record<platform, url> object — causing the astro:config:setup hook to throw on every build.

Change

In docs/astro.config.mjs, explicitly override social after the spread to supply the correct type:

...mylonicsStarlightDefaults('Struct Frame', { github: '...', ... }),
// mylonics-styles returns an array; Starlight 0.32 requires an object
social: {
  github: 'https://github.com/mylonics/struct-frame',
},

The spread sets social to the incompatible array; the trailing explicit key overwrites it with the valid object format.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/struct-frame/struct-frame/docs/node_modules/.bin/astro build (dns block)
  • unpkg.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…32 compatibility

Co-authored-by: rijesha <7819200+rijesha@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix invalid config in starlight integration Fix docs build: override Starlight social array with required object format Mar 17, 2026
Copilot AI requested a review from rijesha March 17, 2026 18:58
@rijesha rijesha marked this pull request as ready for review March 17, 2026 19:22
@rijesha rijesha merged commit 320a817 into develop Mar 17, 2026
@rijesha rijesha deleted the copilot/fix-astro-starlight-config branch March 17, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants