Skip to content

feat: update site to astro platform - #204

Open
lxfu1 wants to merge 3 commits into
ai-friendlyfrom
feat/site-updates
Open

feat: update site to astro platform#204
lxfu1 wants to merge 3 commits into
ai-friendlyfrom
feat/site-updates

Conversation

@lxfu1

@lxfu1 lxfu1 commented Sep 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@lxfu1
lxfu1 requested review from hustcc and a lite review from Copilot September 3, 2026 02:43

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.

馃數 Needs a closer look

It鈥檚 a major platform migration with a large new homepage surface area and includes confirmed rendering/SEO-impacting issues that should be resolved and revalidated end-to-end.

Pull request overview

This PR migrates the AntV website to the Astro-based @antv/site platform, introducing a new Astro homepage slot and reworking TypeScript/build tooling to match the new stack.

Changes:

  • Switch project tooling to Astro + @antv/site (new astro.config.mjs, updated package.json, updated tsconfig.json).
  • Add new homepage implementation (site/Home.astro) and supporting home data/assets.
  • Update content configuration and documentation frontmatter to integrate with Astro content.
File summaries
File Description
tsconfig.json Adopt Astro strict TS config and narrow include/exclude to the new Astro sources.
src/content.config.ts Define Astro content collections using @antv/site loaders/schema.
site/Home.astro New Astro homepage slot implementation with inline script/styles.
site/data/link-charts.json Update/remove showcase links for the new site content.
site/data/home.ts Add structured home page data (updates, solutions, showcases, etc.).
site/assets/home/treemap.svg Add new home decorative asset.
site/assets/home/pie.svg Add new home decorative asset.
site/assets/home/column.svg Add new home decorative asset.
site/assets/home/ava.svg Add new home visual asset.
site/assets/home/antv.svg Add new home visual asset.
README.md Update contributor instructions to pnpm + Astro scripts.
public/CNAME Configure the custom domain for deployment.
package.json Switch to Astro scripts, pnpm, ESM module type, and updated dependencies.
docs/specification/principles/basic.en.md Add frontmatter metadata for the docs system.
astro.config.mjs Introduce @antv/site configuration and wire the home slot to site/Home.astro.
.gitignore Update ignored build artifacts for Astro / @antv/site.
Review details
  • Files reviewed: 9/26 changed files
  • Comments generated: 3
  • Review effort level: Lite

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

Comment thread astro.config.mjs
Comment on lines +4 to +8
site: {
title: 'AntV',
origin: 'https://antv.antgroup.com',
repository: 'https://github.com/antvis/antvis.github.io',
defaultLocale: 'zh',
Comment thread site/Home.astro
Comment on lines +931 to +933
.antv-solution-icon img {
object-fit: conver;
}
Comment thread site/Home.astro
Comment on lines +1111 to +1114
white-space: nowrap;
text-align: center;
background: rgba(107, 34, 255, 8%)
}
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