Skip to content

Re-enable gfm for Astro docs#2308

Merged
tk-o merged 1 commit into
mainfrom
fix/github-flavoured-markdown-for-astro
Jun 17, 2026
Merged

Re-enable gfm for Astro docs#2308
tk-o merged 1 commit into
mainfrom
fix/github-flavoured-markdown-for-astro

Conversation

@tk-o

@tk-o tk-o commented Jun 17, 2026

Copy link
Copy Markdown
Member

This PR addresses a breaking change introduced in astro@6.4.4:

Also, this PR improves header structure on the schema reference page for ENS Unigraph.

Copilot AI review requested due to automatic review settings June 17, 2026 13:44
@tk-o tk-o requested a review from a team as a code owner June 17, 2026 13:44
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
enskit-react-example.ensnode.io Ready Ready Preview, Comment Jun 17, 2026 2:11pm
ensnode.io Ready Ready Preview, Comment Jun 17, 2026 2:11pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
admin.ensnode.io Skipped Skipped Jun 17, 2026 2:11pm
ensrainbow.io Skipped Skipped Jun 17, 2026 2:11pm

@changeset-bot

changeset-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 79e2ed6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Enables GitHub Flavored Markdown (gfm: true) in the Astro site config and restructures schema-reference.mdx by adding a ## Tables section wrapper, normalizing all table headings to ### <table_name>, and replacing inline bold "Indexes:" blocks with #### Indexes subsections for each table.

Changes

Schema Docs Reformatting

Layer / File(s) Summary
Enable GFM in Astro markdown config
docs/ensnode.io/astro.config.mjs
Adds markdown: { gfm: true } to the Astro configuration to enable GitHub Flavored Markdown.
Schema reference heading normalization and Indexes subsections
docs/ensnode.io/src/content/docs/docs/integrate/unigraph/schema-reference.mdx
Adds a ## Tables section wrapper; normalizes all table headings to ### <table_name>; converts inline bold "Indexes:" blocks to #### Indexes subsections for events, registries, domains, labels, registrations, renewals, permissions, permissions_resources, and permissions_users; reformats enum headings (RegistryType, DomainType, RegistrationType) to ### level.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

docs

Poem

🐇 Hop hop, the headers align,
Bold "Indexes:" gave way to #### — so fine!
GFM enabled, the tables shine bright,
Each schema section nested just right.
A tidy warren of docs tonight! 🌿

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description lacks required sections from the template (Why, Testing, Pre-Review Checklist) and does not follow the specified format. Reorganize the description to match the template structure: add Why section with issue links, Testing section explaining how changes were validated, and complete the Pre-Review Checklist with required affirmations.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately reflects the primary change: enabling GFM in Astro configuration as a response to a breaking change in Astro 6.4.4.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/github-flavoured-markdown-for-astro

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.

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 updates the docs site configuration to explicitly enable GitHub Flavored Markdown (GFM) to avoid a breaking behavior change in astro@6.4.4, and restructures headings on the ENS Unigraph schema reference page to improve navigation and document hierarchy.

Changes:

  • Explicitly enable markdown.gfm in the Astro docs site config to preserve expected Markdown parsing behavior.
  • Convert inline/bold “section titles” on the schema reference page into proper ###/#### headings and group tables under a new “Tables” section.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/ensnode.io/astro.config.mjs Enables markdown.gfm: true to stabilize Markdown behavior across Astro versions.
docs/ensnode.io/src/content/docs/docs/integrate/unigraph/schema-reference.mdx Improves document structure by promoting enum/table labels and index labels to real headings.

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

@greptile-apps

greptile-apps Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR upgrades three Astro ecosystem packages (@astrojs/mdx v5→v6, @astrojs/starlight v0.39→v0.40, starlight-sidebar-topics v0.7→v0.8) to fix a GFM regression introduced in astro@6.4.4. It also restructures the Unigraph schema-reference doc from bold-text pseudo-headings to proper markdown heading hierarchy (###/####).

  • Dependency upgrades pull in remark-gfm@4.0.1 and @astrojs/markdown-remark@7.2.0 via the updated packages, restoring GitHub-Flavored Markdown (tables, task lists, etc.) in MDX documents.
  • Schema-reference headings for Enums and Tables are promoted from **bold** text / bare ## headings to proper ### / #### Indexes headings, enabling them to appear in Starlight's on-page TOC.
  • pnpm-lock.yaml is fully updated to reflect the new resolutions, including pagefind 1.4.0→1.5.2 and expressive-code 0.42.0→0.43.1 as transitive bumps.

Confidence Score: 5/5

Safe to merge — all changes are confined to the docs package, with no impact on application logic or data handling.

The changes are dependency upgrades within the docs site and a documentation restructuring. The upgrades follow the upstream fix for a known Astro regression and the lockfile is consistent with the new specifiers. The only noteworthy detail is that starlight-llms-txt still resolves a copy of the old @astrojs/mdx, but this does not affect the main docs build or any application code.

The pnpm-lock.yaml dual @astrojs/mdx install (5.0.6 via starlight-llms-txt + 6.0.3 directly) is worth a quick look, but does not block the merge.

Important Files Changed

Filename Overview
docs/ensnode.io/package.json Bumps @astrojs/mdx (^5→^6), @astrojs/starlight (^0.39→^0.40), and starlight-sidebar-topics (^0.7→^0.8) to restore GFM support broken in astro@6.4.4.
docs/ensnode.io/src/content/docs/docs/integrate/unigraph/schema-reference.mdx Promotes enum names and table names from bold/H2 pseudo-headings to H3/H4 proper headings under new "## Tables" and "## Enums" sections; also changes "Indexes:" bold labels to "#### Indexes" headings throughout.
pnpm-lock.yaml Lockfile updated to match new specifiers; starlight-llms-txt@0.10.0 still resolves @astrojs/mdx@5.0.6 (old version) as its own direct dependency alongside the new 6.0.3 install.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["astro@6.4.4+\n(GFM regression)"] -->|"broke"| B["@astrojs/mdx@5.x\n(GFM disabled)"]
    B -->|"fixed by upgrading to"| C["@astrojs/mdx@6.0.3\n(remark-gfm re-enabled)"]
    C --> D["@astrojs/starlight@0.40.0"]
    D --> E["starlight-sidebar-topics@0.8.0"]
    D --> F["astro-expressive-code@0.43.1"]
    D --> G["pagefind@1.5.2"]
    H["starlight-llms-txt@0.10.0"] -->|"still pins (old)"| B2["@astrojs/mdx@5.0.6\n⚠️ both versions installed"]
    H --> D
    style B fill:#f99,stroke:#c00
    style C fill:#9f9,stroke:#090
    style B2 fill:#ff9,stroke:#990
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A["astro@6.4.4+\n(GFM regression)"] -->|"broke"| B["@astrojs/mdx@5.x\n(GFM disabled)"]
    B -->|"fixed by upgrading to"| C["@astrojs/mdx@6.0.3\n(remark-gfm re-enabled)"]
    C --> D["@astrojs/starlight@0.40.0"]
    D --> E["starlight-sidebar-topics@0.8.0"]
    D --> F["astro-expressive-code@0.43.1"]
    D --> G["pagefind@1.5.2"]
    H["starlight-llms-txt@0.10.0"] -->|"still pins (old)"| B2["@astrojs/mdx@5.0.6\n⚠️ both versions installed"]
    H --> D
    style B fill:#f99,stroke:#c00
    style C fill:#9f9,stroke:#090
    style B2 fill:#ff9,stroke:#990
Loading

Reviews (3): Last reviewed commit: "Explicitly enable `gfm` option in Astro...." | Re-trigger Greptile

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/ensnode.io/astro.config.mjs`:
- Around line 35-37: The markdown.gfm configuration in astro.config.mjs is using
a deprecated approach from Astro 6.4.0. To future-proof the configuration for
Astro 8.0 compatibility, migrate the gfm option from being a direct property of
the markdown object to being nested under a processor object. Move the gfm: true
setting so it becomes markdown.processor.gfm instead of markdown.gfm, updating
the configuration structure accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4b2efd38-2910-4c94-aee7-97e863a4e8d0

📥 Commits

Reviewing files that changed from the base of the PR and between 755ce89 and 5c6b979.

📒 Files selected for processing (2)
  • docs/ensnode.io/astro.config.mjs
  • docs/ensnode.io/src/content/docs/docs/integrate/unigraph/schema-reference.mdx

Comment thread docs/ensnode.io/astro.config.mjs Outdated
@tk-o tk-o force-pushed the fix/github-flavoured-markdown-for-astro branch from 5c6b979 to 79e2ed6 Compare June 17, 2026 14:09
@vercel vercel Bot temporarily deployed to Preview – ensrainbow.io June 17, 2026 14:09 Inactive
@vercel vercel Bot temporarily deployed to Preview – admin.ensnode.io June 17, 2026 14:09 Inactive
@tk-o tk-o changed the title Explicitly enable gfm option in Astro.js config Re-enable gfm for Astro docs Jun 17, 2026
@tk-o

tk-o commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

@greptile review

@tk-o tk-o requested a review from notrab June 17, 2026 14:30
@tk-o tk-o merged commit bda032a into main Jun 17, 2026
22 checks passed
@tk-o tk-o deleted the fix/github-flavoured-markdown-for-astro branch June 17, 2026 14:38
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.

3 participants