Skip to content

fix: declare @astrojs/markdown-remark as explicit dependency - #162

Merged
GeekTrainer merged 1 commit into
mainfrom
geektrainer/fix-dependabot-workflows
Aug 26, 2026
Merged

fix: declare @astrojs/markdown-remark as explicit dependency#162
GeekTrainer merged 1 commit into
mainfrom
geektrainer/fix-dependabot-workflows

Conversation

@GeekTrainer

Copy link
Copy Markdown
Collaborator

Summary

Dependabot PRs #159 and #160 fail their Build site check because newer @astrojs/starlight and astro releases no longer install @astrojs/markdown-remark transitively, yet website/astro.config.mjs uses markdown.remarkPlugins (for the GitHub-admonitions plugin), which requires the unified processor from that package. This declares it explicitly so any astro/starlight bump can pass astro check.

Type of change

  • Workshop content (lesson Markdown, images)
  • Site shell (website/ Astro + Starlight wrapper)
  • Copilot configuration (.github/copilot-instructions.md, instructions, agents, skills)
  • Repo housekeeping (CI, dependabot, README, license)
  • Other:

Verification

  • cd website && rm -rf dist && npm run build succeeds (218 HTML files built)
  • Lychee link check passes (not run; no content or link changes)
  • External GitHub URLs that I changed have been clicked manually (no URL changes)

npm run check:all (the step that was failing in CI, astro check) also passes locally.

Screenshots

N/A

Notes for reviewers

Astro pins @astrojs/markdown-remark to an exact version per release, so a caret range cannot be used. This fix pins 7.2.1 to match the current base astro@7.0.9, which is a no-op for the resolved tree today (it was already present transitively) but keeps it installed once starlight/astro drop the transitive dependency.

Coupling to be aware of when rebasing the Dependabot PRs:

Newer @astrojs/starlight and astro releases no longer install
@astrojs/markdown-remark transitively, but website/astro.config.mjs uses
markdown.remarkPlugins (for the GitHub-admonitions plugin), which requires
the unified processor from that package. Declaring it explicitly unblocks
astro/starlight dependency bumps that otherwise fail astro check.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 26, 2026 16:43
@GeekTrainer
GeekTrainer merged commit 7ee6499 into main Aug 26, 2026
4 checks passed

Copilot AI 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.

Pull request overview

This PR fixes CI/build breakages caused by newer astro / @astrojs/starlight releases no longer installing @astrojs/markdown-remark transitively, while the site config still relies on the Markdown pipeline that requires it. Declaring @astrojs/markdown-remark as an explicit dependency stabilizes astro check / site builds across dependency updates.

Changes:

  • Add @astrojs/markdown-remark as an explicit, exactly-pinned dependency in website/package.json.
  • Update website/package-lock.json to reflect the new direct dependency.
Show a summary per file
File Description
website/package.json Adds @astrojs/markdown-remark as a direct dependency (pinned to 7.2.1) so builds don’t depend on transitive installs.
website/package-lock.json Updates the lockfile to include the direct dependency at the workspace root.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Files not reviewed (1)
  • website/package-lock.json: Generated file
  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

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