Skip to content

Migrate to astro + starlight#12

Merged
DusKing1 merged 3 commits intomasterfrom
hugo-migrate-astro
Jan 14, 2026
Merged

Migrate to astro + starlight#12
DusKing1 merged 3 commits intomasterfrom
hugo-migrate-astro

Conversation

@DusKing1
Copy link
Contributor

No description provided.

Replaced MkDocs Material documentation site with Astro + Starlight. Added Astro config, custom components, content structure, and deployment workflow. Removed legacy MkDocs files and migrated all documentation content to the new format with bilingual support and improved project organization.
Implements a snap scroll experience for landing and documentation pages by introducing new CSS for section snapping and visual enhancements. Refactors index.mdx (en/zh) to use snap sections and moves feature cards from Hero.astro to the docs index pages. Simplifies language redirect logic in index.astro to use only client-side detection. Updates sponsor roadmaps and adds CNAME and favicon for deployment. Removes the legacy GitHub Actions CI workflow.
Copilot AI review requested due to automatic review settings January 14, 2026 15:00
Copy link

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

This pull request migrates the FlightNG documentation from MkDocs Material to Astro + Starlight, modernizing the documentation infrastructure with improved performance, better mobile experience, and enhanced customization capabilities.

Changes:

  • Complete migration from MkDocs Material to Astro + Starlight framework
  • Conversion of all Markdown documentation with updated syntax (MkDocs admonitions to Starlight)
  • Custom CSS styling system with Apple-inspired design and snap-scroll landing pages
  • Bilingual support (Chinese/English) with language detection and redirects

Reviewed changes

Copilot reviewed 56 out of 70 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
astro.config.mjs Main Astro configuration with Starlight integration, i18n setup, and sidebar navigation
package.json New dependencies for Astro and Starlight framework
src/pages/index.astro Root page with language detection and redirect logic
src/styles/custom.css Custom CSS with snap-scroll sections and Apple-inspired design tokens
src/content/docs/** All documentation files converted from MkDocs to Starlight format
src/components/Hero.astro Custom hero component for landing pages
.github/workflows/deploy.yml Updated CI/CD for Astro deployment to GitHub Pages
mkdocs.yml, requirements.txt Removed legacy MkDocs configuration files
.npmrc NPM registry configuration for China mirror

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

@@ -0,0 +1 @@
registry=https://registry.npmmirror.com
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The .npmrc file configures npm to use a China-specific mirror registry. This should be removed or moved to a local user configuration, as it forces all contributors to use this registry which may not be desired for international collaborators. Consider documenting this as an optional setup step in the README instead.

Copilot uses AI. Check for mistakes.
<head>
<meta charset="utf-8" />
<title>FlightNG - Redirecting...</title>
<meta http-equiv="refresh" content="0;url=/en/" />
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The meta refresh tag hardcodes '/en/' as the fallback, but the JavaScript below may redirect to '/zh/' based on browser language. This creates a race condition where both redirects compete. Remove the meta refresh and rely solely on the JavaScript redirect, or align the fallback with the defaultLocale setting in astro.config.mjs (which is 'zh').

Copilot uses AI. Check for mistakes.
import starlight from '@astrojs/starlight';

export default defineConfig({
site: 'https://flightng.com',
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The site configuration specifies 'https://flightng.com' but the deployment workflow and README reference GitHub Pages deployment. If deploying to GitHub Pages at flightng.github.io, this should be updated to match, or a 'base' property should be added if using a subdirectory. The CNAME file in public/ suggests custom domain usage, which should be confirmed and documented.

Copilot uses AI. Check for mistakes.
@DusKing1 DusKing1 merged commit 481c7d4 into master Jan 14, 2026
@DusKing1 DusKing1 deleted the hugo-migrate-astro branch January 14, 2026 15:07
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