Skip to content

fix(docs): add content config and upgrade Starlight to 0.37#1051

Open
albertocavalcante wants to merge 1 commit intomainfrom
fix/starlight-social-config
Open

fix(docs): add content config and upgrade Starlight to 0.37#1051
albertocavalcante wants to merge 1 commit intomainfrom
fix/starlight-social-config

Conversation

@albertocavalcante
Copy link
Copy Markdown
Owner

@albertocavalcante albertocavalcante commented Feb 16, 2026

Summary

  • Upgrades @astrojs/starlight from 0.34.x to 0.37.x
  • Adds required content.config.ts with docs collection loader/schema (required by Starlight 0.35+)
  • Updates bun.lock with resolved dependency versions

Context

Starlight 0.35+ changed the social config from object to array format and requires an explicit content config file. The social config array migration was already merged separately; this PR covers the remaining upgrade work (content config + version bump to 0.37).

Test plan

  • bun install resolves cleanly in docs/website
  • bun run build succeeds
  • Docs site renders correctly with Starlight 0.37

Summary by CodeRabbit

  • Chores
    • Updated documentation framework dependency to the latest version.
    • Added documentation collection configuration infrastructure for improved docs organization and management.

- Add src/content.config.ts with Starlight docsLoader and docsSchema
  (required for Astro 5 Content Layer API)
- Upgrade @astrojs/starlight from 0.34 to 0.37 to fix page generation

The combination of Astro 5 and Starlight 0.34 was only generating 404.html.
Starlight 0.37 properly builds all 7 content pages.
Copilot AI review requested due to automatic review settings February 16, 2026 08:27
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @albertocavalcante, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the documentation website's core framework by upgrading Starlight to its latest stable version. This upgrade necessitates the addition of a new content configuration file to align with Starlight's updated requirements, ensuring the documentation system remains functional and benefits from the latest improvements.

Highlights

  • Starlight Upgrade: Upgraded the @astrojs/starlight dependency from version 0.34.x to 0.37.x to incorporate the latest features and fixes.
  • Content Configuration: Introduced a new src/content.config.ts file, which is now required by Starlight versions 0.35+, to define the documentation collection loader and schema.
  • Dependency Lock File Update: Updated the bun.lock file to reflect the new dependency versions, ensuring consistent builds across environments.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • docs/website/bun.lock
    • Updated @astrojs/starlight dependency from 0.34.0 to 0.37.0.
    • Updated @astrojs/compiler dependency from 2.13.0 to 2.13.1.
  • docs/website/package.json
    • Updated @astrojs/starlight dependency from ^0.34.0 to ^0.37.0.
  • docs/website/src/content.config.ts
    • Added a new file to define content collections for Starlight, including docsLoader and docsSchema.
Activity
  • The pull request was created by albertocavalcante.
  • The pull request description outlines the summary, context, and test plan for the changes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 16, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

Updates the Astro Starlight documentation site configuration by bumping the @astrojs/starlight dependency to version ^0.37.0 and adding a new content configuration file to define the docs collection structure.

Changes

Cohort / File(s) Summary
Dependency Updates
docs/website/package.json
Updated @astrojs/starlight from ^0.34.0 to ^0.37.0.
Content Configuration
docs/website/src/content.config.ts
Added new Astro content configuration file defining a docs collection using docsLoader and docsSchema.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Poem

🐰 A cozy burrow for docs so fine,
With Starlight gleaming, version divine!
New collections arranged just right,
Our documentation shines bright! ✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the two main changes: adding content config and upgrading Starlight to 0.37, both of which are clearly present in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/starlight-social-config

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly upgrades @astrojs/starlight to 0.37.x. The changes include updating the dependency versions in package.json and bun.lock, and adding the required src/content/config.ts file for Starlight v0.35+. The new configuration file correctly uses docsLoader and docsSchema as recommended. The changes are well-contained and align with the library's upgrade guide. I see no issues with this update.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Upgrades the docs site’s Starlight integration to 0.37.x and adds the Astro Content Collections configuration required by Starlight 0.35+, keeping the docs build compatible with newer Starlight releases.

Changes:

  • Add src/content.config.ts defining the docs collection using Starlight’s loader and schema.
  • Bump @astrojs/starlight dependency from ^0.34.0 to ^0.37.0.
  • Update bun.lock to reflect the resolved dependency graph for the upgrade.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
docs/website/src/content.config.ts Introduces the required content collections configuration for Starlight docs.
docs/website/package.json Upgrades Starlight version range for the docs site.
docs/website/bun.lock Updates lockfile to the new resolved versions after upgrading Starlight.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/website/package.json
"dependencies": {
"@astrojs/starlight": "^0.34.0",
"@astrojs/starlight": "^0.37.0",
"astro": "^5.1.8",
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

@astrojs/starlight@0.37.x declares a peer dependency on astro ^5.5.0 (see bun.lock). package.json currently allows installing astro@5.1.x via the ^5.1.8 range, which could produce peer warnings or a broken install if the lockfile is regenerated differently. Consider bumping the astro dependency range to at least ^5.5.0 (or matching the version you intend to support) to encode the minimum required Astro version for this Starlight release.

Suggested change
"astro": "^5.1.8",
"astro": "^5.5.0",

Copilot uses AI. Check for mistakes.
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