Skip to content

Revert "fix: try switching back to ast-grep.github.io" - #1043

Open
ariesclark wants to merge 1 commit into
ast-grep:mainfrom
ariesclark:revert-github-io-switch
Open

Revert "fix: try switching back to ast-grep.github.io"#1043
ariesclark wants to merge 1 commit into
ast-grep:mainfrom
ariesclark:revert-github-io-switch

Conversation

@ariesclark

@ariesclark ariesclark commented Aug 16, 2026

Copy link
Copy Markdown
Member

This reverts commit ab9ec13.

Summary by CodeRabbit

  • Documentation
    • Updated website, blog, reference, and schema links to use the astgrep.com domain.
    • Refreshed canonical URLs, social sharing metadata, and documentation examples.
    • Updated interactive editor links and default configuration references.
  • Website
    • Configured astgrep.com as the primary website domain.

Copilot AI lite review requested due to automatic review settings August 16, 2026 01:38
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9a72221a-e255-4562-a44a-584546d772cc

📥 Commits

Reviewing files that changed from the base of the PR and between c1235fc and 67eb54f.

📒 Files selected for processing (37)
  • website/.vitepress/config.ts
  • website/advanced/find-n-patch.md
  • website/advanced/prompting.md
  • website/blog/ast-grep-agent.md
  • website/blog/ast-grep-outline.md
  • website/blog/code-search-design-space.md
  • website/blog/fearless-concurrency.md
  • website/blog/how-to-debug.md
  • website/blog/interactive-demo.md
  • website/blog/mastering-ast-grep.md
  • website/blog/migrate-bevy.md
  • website/blog/more-llm-support.md
  • website/blog/new-ver-38.md
  • website/blog/new-ver-39.md
  • website/blog/new-ver-42.md
  • website/blog/new-ver-43.md
  • website/blog/optimize-ast-grep.md
  • website/blog/stars-3000.md
  • website/blog/stars-5000.md
  • website/blog/stars-6000.md
  • website/blog/stars-8000.md
  • website/blog/tree-sitter-end-to-end.md
  • website/blog/tree-sitter-glr-arena.md
  • website/blog/tree-sitter-rust-migration.md
  • website/blog/tree-sitter-rust-rewrite.md
  • website/blog/typed-napi.md
  • website/blog/yaml-vs-dsl.md
  • website/catalog/c/match-function-call.md
  • website/guide/rule-config.md
  • website/public/CNAME
  • website/public/schema.json
  • website/reference/cli/run.md
  • website/reference/yaml.md
  • website/src/components/PatternConfig.vue
  • website/src/components/PatternEditor.vue
  • website/src/components/QueryEditor.vue
  • website/src/components/astGrep/state.ts

Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The website now uses astgrep.com as its custom domain. Canonical URLs, sitemap metadata, blog metadata, documentation links, schema links, and application help links no longer use the GitHub Pages domain.

Changes

Website domain migration

Layer / File(s) Summary
Domain configuration
website/public/CNAME, website/.vitepress/config.ts
The custom domain, generated canonical URLs, and sitemap hostname now use astgrep.com.
Blog metadata and links
website/blog/*
Blog Open Graph URLs, image URLs, and article links now use astgrep.com.
Documentation and application links
website/advanced/*, website/catalog/*, website/guide/*, website/public/schema.json, website/reference/*, website/src/components/*, website/src/components/astGrep/state.ts
Documentation, schema, and application help links now use astgrep.com.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 67eb5

This PR reverts the website URL/domain switch across documentation and site configuration. No actionable merge-blocking risk remains after normal checks and review.

Possibly related PRs

Suggested reviewers: herringtondarkholme

Poem

A rabbit hops across the site,
Replacing links with names just right.
Canonical paths and sitemaps gleam,
Blog cards follow the newer theme.
astgrep.com now leads the way.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies this pull request as a revert of the change that switched the website back to ast-grep.github.io.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copilot AI left a comment

Copy link
Copy Markdown

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 reverts a prior attempt to switch the site back to ast-grep.github.io by re-pointing canonical metadata, docs links, and UI help links to the astgrep.com domain, and adding a Pages CNAME for the custom domain.

Changes:

  • Update numerous hard-coded documentation / canonical URLs from https://ast-grep.github.io to https://astgrep.com.
  • Configure VitePress canonical URLs + sitemap hostname to use astgrep.com.
  • Add website/public/CNAME to set the GitHub Pages custom domain to astgrep.com.

Reviewed changes

Copilot reviewed 37 out of 37 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
website/src/components/QueryEditor.vue Update external help link domain for “Show Full Tree” tooltip.
website/src/components/PatternEditor.vue Update external help link domain for “Rewrite” tooltip.
website/src/components/PatternConfig.vue Update external help link domains for Strictness/Selector tooltips.
website/src/components/astGrep/state.ts Update comment URL in embedded YAML example.
website/reference/yaml.md Update example metadata.url domain.
website/reference/cli/run.md Update documentation URLs in CLI reference text.
website/public/schema.json Update schema description doc links to astgrep.com.
website/public/CNAME Add custom domain for GitHub Pages output.
website/guide/rule-config.md Update inline reference URL domain.
website/catalog/c/match-function-call.md Update playground link domain in docs.
website/blog/yaml-vs-dsl.md Update og:url and in-article site link domain.
website/blog/typed-napi.md Update og:url and og:image domains.
website/blog/tree-sitter-rust-rewrite.md Update og:url domain.
website/blog/tree-sitter-rust-migration.md Update og:url domain.
website/blog/tree-sitter-glr-arena.md Update og:url domain.
website/blog/tree-sitter-end-to-end.md Update og:url domain.
website/blog/stars-8000.md Update og:url domain and in-article site links domain.
website/blog/stars-6000.md Update og:url domain and in-article site link domain.
website/blog/stars-5000.md Update og:url domain and in-article site link domain.
website/blog/stars-3000.md Update og:url domain and in-article site links domain.
website/blog/optimize-ast-grep.md Update og:url domain and in-article site links domain.
website/blog/new-ver-43.md Update og:url domain.
website/blog/new-ver-42.md Update og:url domain.
website/blog/new-ver-39.md Update og:url domain.
website/blog/new-ver-38.md Update og:url domain and in-article docs link domain.
website/blog/more-llm-support.md Update og:url domain and llms-full.txt link domain.
website/blog/migrate-bevy.md Update og:url domain.
website/blog/mastering-ast-grep.md Update og:url domain (but currently points at wrong path).
website/blog/interactive-demo.md Update og:url domain.
website/blog/how-to-debug.md Update og:url domain.
website/blog/fearless-concurrency.md Update og:url/og:image domains and in-article site link domain.
website/blog/code-search-design-space.md Update og:url/og:image domains.
website/blog/ast-grep-outline.md Update og:url domain.
website/blog/ast-grep-agent.md Update og:url domain.
website/advanced/prompting.md Update llms-full.txt link text domain.
website/advanced/find-n-patch.md Update in-article site link domain.
website/.vitepress/config.ts Update canonical URL base and sitemap hostname to astgrep.com.
Suppressed comments (1)

website/src/components/PatternConfig.vue:28

  • target="_blank" links should include rel="noopener noreferrer" to prevent reverse-tabnabbing.

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

<input class="tree-toggle" type="checkbox" v-model="showFullTree">
Show Full Tree
<a target="_blank" href="https://ast-grep.github.io/advanced/core-concepts">ⓘ</a>
<a target="_blank" href="https://astgrep.com/advanced/core-concepts">ⓘ</a>
:highlights="highlights"/>
<p class="pattern-separator">
<a target="_blank" href="https://ast-grep.github.io/guide/rewrite-code">ⓘ</a>
<a target="_blank" href="https://astgrep.com/guide/rewrite-code">ⓘ</a>
<div class="pattern-config">
<label title="Strictness determines how the pattern is matched against the code.">
<a target="_blank" href="https://ast-grep.github.io/advanced/match-algorithm">ⓘ</a>
<a target="_blank" href="https://astgrep.com/advanced/match-algorithm">ⓘ</a>
Comment on lines 13 to +14
- property: og:url
content: https://ast-grep.github.io/blog/optimize-ast-grep
content: https://astgrep.com/blog/optimize-ast-grep
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