feat(seo): add technical SEO metadata, Schema.org JSON-LD, sitemap, and GEO llms.txt suite

This commit is contained in:
Dnyo666 committed 2026-12-02 19:33:47 +08:00
1 parent 7d4ab929a4
commit 4dc89df0b5
23 files changed
+1109 -9

No files matched your search

+9
View File
@@ -34,9 +34,18 @@ bun run preview
## Deployment
- **Custom domain (SEO & GEO)**: Set `PUBLIC_SITE_URL=https://your-domain.com` in your build environment so canonical URLs, bidirectional `hreflang`, `sitemap.xml`, `robots.txt`, `llms.txt`, `llms-full.txt`, Open Graph tags, and Schema.org JSON-LD resolve to your production domain automatically.
- **Cloudflare Pages**: Build command `pnpm run build` (or `bun run build`), output directory `dist`.
- **Cloudflare Workers Static Assets**: Run `bun run build` then `npx wrangler deploy`.
## SEO & GEO Endpoints
- `/sitemap.xml` — Bilingual Sitemap 0.9 with bidirectional `xhtml:link` `hreflang` alternates
- `/robots.txt` — RFC 9309 directives with explicit AI search & grounding crawler support
- `/llms.txt` & `/llms-full.txt` — `llmstxt.org` standard index & full single-file Markdown context
- `/index.md`, `/docs/<slug>.md`, `/en/docs/<slug>.md` — Clean Markdown mirrors linked via `<link rel="alternate" type="text/markdown">`
- `/og-image.png` & `/site.webmanifest` — `1200×630` Open Graph card & Web App Manifest
## Notice
For personal study and research only. Reims-Go distributes no Apple files or system images. Platform names and schematic icons shown on this website are used solely for compatibility identification; all trademarks belong to their respective owners (Microsoft Corporation, Apple Inc., Khronos Group). Not affiliated with Apple Inc., Microsoft Corporation, or upstream `reims-vgpu`.
+3 -1
View File
@@ -3,8 +3,10 @@ import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import tailwindcss from '@tailwindcss/vite';
const SITE_URL = (process.env.PUBLIC_SITE_URL || process.env.SITE_URL || 'https://reims-go.pages.dev').replace(/\/+$/, '');
export default defineConfig({
site: 'https://reims-go.pages.dev',
site: SITE_URL,
output: 'static',
trailingSlash: 'ignore',
prefetch: {
+1
View File
@@ -6,6 +6,7 @@
"scripts": {
"dev": "astro dev",
"sync:data": "node scripts/sync-external-data.mjs",
"gen:og": "node scripts/generate-og.mjs",
"build": "astro check && astro build && pagefind --site dist",
"build:fast": "astro build && pagefind --site dist",
"preview": "astro preview",
+29
View File
@@ -8,3 +8,32 @@
/pagefind/*
Cache-Control: public, max-age=86400
X-Robots-Tag: noindex
/sitemap.xml
Content-Type: application/xml; charset=utf-8
Cache-Control: public, max-age=3600
/robots.txt
Content-Type: text/plain; charset=utf-8
Cache-Control: public, max-age=3600
/llms.txt
Content-Type: text/plain; charset=utf-8
Cache-Control: public, max-age=3600
/llms-full.txt
Content-Type: text/plain; charset=utf-8
Cache-Control: public, max-age=3600
/index.md
Content-Type: text/markdown; charset=utf-8
Cache-Control: public, max-age=3600
/docs/*.md
Content-Type: text/markdown; charset=utf-8
Cache-Control: public, max-age=3600
/en/docs/*.md
Content-Type: text/markdown; charset=utf-8
Cache-Control: public, max-age=3600
Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

+16
View File
@@ -0,0 +1,16 @@
{
"name": "Reims-Go — macOS Virtual Machine for Windows",
"short_name": "Reims-Go",
"description": "GPU-accelerated macOS virtual machine desktop launcher and CLI workbench for Windows 10/11 x64.",
"start_url": "/",
"display": "standalone",
"background_color": "#FFFFFF",
"theme_color": "#007AFF",
"icons": [
{
"src": "/logo.svg",
"sizes": "any",
"type": "image/svg+xml"
}
]
}
+133
View File
@@ -0,0 +1,133 @@
import { writeFileSync } from 'node:fs';
import { createRequire } from 'node:module';
import { resolve } from 'node:path';
const astroReq = createRequire(import.meta.resolve('astro'));
const sharp = astroReq('sharp');
const ogSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="goGrad" gradientUnits="userSpaceOnUse" x1="376" y1="0" x2="531" y2="0">
<stop offset="0" stop-color="#3b8cff" />
<stop offset="0.5" stop-color="#6d5dfc" />
<stop offset="1" stop-color="#ff7a9a" />
</linearGradient>
<linearGradient id="screenGrad" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stop-color="#35576b" />
<stop offset="48%" stop-color="#557586" />
<stop offset="100%" stop-color="#1d2d37" />
</linearGradient>
<linearGradient id="winGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#35A7FF" />
<stop offset="100%" stop-color="#0067D6" />
</linearGradient>
<linearGradient id="macLeft" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#45A9FF" />
<stop offset="100%" stop-color="#0056D6" />
</linearGradient>
</defs>
<!-- Crisp Tahoe Light Canvas -->
<rect width="1200" height="630" fill="#FFFFFF" />
<rect x="28" y="28" width="1144" height="574" rx="28" fill="#F4F6FA" stroke="#E5E7EB" stroke-width="1.5" />
<!-- Subtle Top Eyebrow Pill -->
<rect x="80" y="76" width="332" height="36" rx="18" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1.2" />
<circle cx="104" cy="94" r="5" fill="#007AFF" />
<text x="120" y="100" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="15.5" font-weight="600" fill="#1D1D1F">v0.2.11 · Apache-2.0 · Zero Telemetry</text>
<!-- Official reims-go Geometric Wordmark -->
<g transform="translate(76 225) scale(0.72)">
<g transform="translate(4 0)" fill="none" stroke-width="15" stroke-linecap="round" stroke-linejoin="round">
<path d="M7.5 -7.5V-36A24 28.5 0 0 1 31.5 -64.5" stroke="#1D1D1F" />
<path d="M50.5 -36H107.5A28.5 28.5 0 1 0 100.18 -16.93" stroke="#1D1D1F" />
<path d="M133.5 -64.5V-7.5" stroke="#1D1D1F" />
<circle cx="133.5" cy="-94" r="9" fill="#ff7a9a" stroke="none" />
<path d="M159.5 -7.5V-36A22 28.5 0 0 1 203.5 -36V-7.5M203.5 -36A22 28.5 0 0 1 247.5 -36V-7.5" stroke="#1D1D1F" />
<path d="M311.05 -59.02A21 14.25 0 0 0 273.5 -50.25A21 14.25 0 0 0 294.5 -36A21 14.25 0 0 1 315.5 -21.75A21 14.25 0 0 1 277.95 -12.98" stroke="#1D1D1F" />
<path d="M340.5 -36H358.5" stroke="#6E6E73" />
<path d="M440.5 -36A28.5 28.5 0 1 1 440.5 -36.01" stroke="url(#goGrad)" />
<path d="M440.5 -64.5V0A28.5 22.5 0 0 1 387.32 11.25" stroke="url(#goGrad)" />
<path d="M523.5 -36A28.5 28.5 0 1 1 523.5 -36.01" stroke="url(#goGrad)" />
</g>
</g>
<!-- Main Headline -->
<text x="80" y="302" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="42" font-weight="700" fill="#1D1D1F" letter-spacing="-1">A macOS virtual machine</text>
<text x="80" y="354" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="42" font-weight="700" fill="#1D1D1F" letter-spacing="-1">for Windows 10 &amp; 11</text>
<!-- Subhead -->
<text x="80" y="406" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="22" font-weight="400" fill="#6E6E73">Metal to Vulkan 1.3 discrete GPU acceleration.</text>
<text x="80" y="438" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="22" font-weight="400" fill="#6E6E73">Single EXE workbench, zero-CLI setup, Guest Tools v8.</text>
<!-- Bottom Feature Pills -->
<g transform="translate(80 486)">
<rect x="0" y="0" width="198" height="44" rx="22" fill="#007AFF" />
<text x="99" y="28" text-anchor="middle" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="16" font-weight="600" fill="#FFFFFF">Metal &#x2192; Vulkan 1.3</text>
<rect x="214" y="0" width="186" height="44" rx="22" fill="#FFFFFF" stroke="#D1D5DB" stroke-width="1.2" />
<text x="307" y="28" text-anchor="middle" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="16" font-weight="600" fill="#1D1D1F">macOS Tahoe 26</text>
<rect x="416" y="0" width="178" height="44" rx="22" fill="#FFFFFF" stroke="#D1D5DB" stroke-width="1.2" />
<text x="505" y="28" text-anchor="middle" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="16" font-weight="600" fill="#1D1D1F">GUI + CLI Single EXE</text>
</g>
<!-- Right Side Minimalist Desktop Preview Card -->
<g transform="translate(730 92)">
<rect x="0" y="0" width="392" height="446" rx="22" fill="#FFFFFF" stroke="#D8DEE8" stroke-width="1.5" />
<!-- Titlebar -->
<path d="M0 22C0 9.85 9.85 0 22 0H370C382.15 0 392 9.85 392 22V46H0V22Z" fill="#EEF3FA" />
<line x1="0" y1="46" x2="392" y2="46" stroke="#E5E7EB" stroke-width="1" />
<circle cx="24" cy="23" r="5" fill="#D1D5DB" />
<circle cx="42" cy="23" r="5" fill="#D1D5DB" />
<circle cx="60" cy="23" r="5" fill="#D1D5DB" />
<text x="84" y="28" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="13" font-weight="600" fill="#1D1D1F">Reims-Go</text>
<!-- Platform Pair Badges (Win11 -> macOS Tahoe 26) -->
<g transform="translate(96 78)">
<!-- Win11 Tile -->
<rect x="0" y="0" width="68" height="68" rx="16" fill="#F4F6FA" stroke="#D8DEE8" stroke-width="1.4" />
<g transform="translate(16 16)" fill="url(#winGrad)">
<rect x="0" y="0" width="16.5" height="16.5" rx="2" />
<rect x="19.5" y="0" width="16.5" height="16.5" rx="2" />
<rect x="0" y="19.5" width="16.5" height="16.5" rx="2" />
<rect x="19.5" y="19.5" width="16.5" height="16.5" rx="2" />
</g>
<!-- Bridge Arrow -->
<line x1="84" y1="34" x2="116" y2="34" stroke="#007AFF" stroke-width="2.5" stroke-linecap="round" />
<path d="M110 27L118 34L110 41" fill="none" stroke="#007AFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
<!-- macOS Tahoe 26 Tile (Left Blue + Right White) -->
<rect x="132" y="0" width="68" height="68" rx="16" fill="#FFFFFF" stroke="#D8DEE8" stroke-width="1.4" />
<g transform="translate(141 9) scale(1.25)">
<rect x="2" y="2" width="36" height="36" rx="9" fill="#F4F8FF" stroke="#D8DEE8" stroke-width="1" />
<path d="M2 11C2 6.03 6.03 2 11 2H21.6C19.6 8.1 18.2 14.3 17.5 21.1H21.7C20.5 26.8 20.6 32.5 22.1 38H11C6.03 38 2 33.97 2 29V11Z" fill="url(#macLeft)" />
<rect x="11.2" y="12.2" width="2.7" height="5.4" rx="1.35" fill="#14233C" />
<rect x="26.3" y="12.2" width="2.7" height="5.4" rx="1.35" fill="#14233C" />
<path d="M10.4 24.4C13.3 28.4 16.9 30.1 20.2 30.1C23.5 30.1 26.9 28.4 29.6 24.4" fill="none" stroke="#14233C" stroke-width="2.35" stroke-linecap="round" />
</g>
</g>
<!-- Mini Simulated iMac Screen -->
<g transform="translate(76 176)">
<rect x="0" y="0" width="240" height="148" rx="14" fill="#1C1D21" />
<rect x="7" y="7" width="226" height="134" rx="8" fill="url(#screenGrad)" />
<text x="120" y="78" text-anchor="middle" font-family="Segoe UI, Inter, Arial, sans-serif" font-size="30" font-weight="600" fill="#FFFFFF" opacity="0.92">09:41</text>
<rect x="86" y="114" width="68" height="12" rx="6" fill="#FFFFFF" opacity="0.28" />
<!-- Stand -->
<rect x="96" y="148" width="48" height="20" rx="2" fill="#D2D6DF" />
<rect x="78" y="168" width="84" height="5" rx="2.5" fill="#C4C9D4" />
</g>
<!-- Bottom Status Pill -->
<rect x="36" y="376" width="320" height="42" rx="12" fill="#F4F6FA" stroke="#E5E7EB" stroke-width="1" />
<circle cx="58" cy="397" r="5" fill="#28CD41" />
<text x="74" y="402" font-family="Consolas, monospace" font-size="13.5" font-weight="600" fill="#1D1D1F">reims-graphics-pci · Vulkan 1.3</text>
</g>
</svg>`;
const outPath = resolve(process.cwd(), 'public/og-image.png');
const pngBuffer = await sharp(Buffer.from(ogSvg)).png({ compressionLevel: 9 }).toBuffer();
writeFileSync(outPath, pngBuffer);
console.log(`Generated ${outPath} (${pngBuffer.length} bytes)`);
+9 -1
View File
@@ -3,6 +3,7 @@ import BaseLayout from '../../layouts/BaseLayout.astro';
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
import { FALLBACK_RELEASE } from '../../lib/releases';
import { buildHomeJsonLd } from '../../lib/seo';
import { WordmarkBrush } from '../brand/WordmarkBrush';
import { HeroHeadline } from './HeroHeadline';
import { HeroWindowPreview } from './HeroWindowPreview';
@@ -20,9 +21,16 @@ interface Props {
const { locale } = Astro.props;
const strings = t(locale);
const releaseVer = FALLBACK_RELEASE.version;
const homeJsonLd = buildHomeJsonLd(locale);
---
<BaseLayout locale={locale} activeSection="features" showFooterCta={true}>
<BaseLayout
locale={locale}
activeSection="features"
showFooterCta={true}
markdownAlternate="/index.md"
jsonLd={homeJsonLd}
>
<!-- Hero Section: Minimalist 4-Beat Header + Full-Bleed Scroll Parallax 1:1 Client -->
<section class="bg-canvas pb-16 pt-12 sm:pb-20 sm:pt-18">
<div class="mx-auto flex max-w-5xl flex-col items-center px-4 text-center sm:px-8">
+14 -2
View File
@@ -1,6 +1,8 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
import { buildSubpageJsonLd } from '../../lib/seo';
interface Props {
locale: Locale;
@@ -148,14 +150,24 @@ const releases = isZh
],
},
];
const pageTitle = isZh ? '更新日志' : 'Changelog';
const pageDesc = isZh ? 'Reims-Go 客户端各正式版本功能演进与修复记录' : 'Release history and improvements for Reims-Go';
const changelogJsonLd = buildSubpageJsonLd({
locale,
path: '/changelog',
title: pageTitle,
description: pageDesc,
navLabel: t(locale).nav.changelog,
});
---
<BaseLayout
locale={locale}
title={isZh ? '更新日志' : 'Changelog'}
description={isZh ? 'Reims-Go 客户端各正式版本功能演进与修复记录' : 'Release history and improvements for Reims-Go'}
title={pageTitle}
description={pageDesc}
activeSection="changelog"
showFooterCta={false}
jsonLd={changelogJsonLd}
>
<section class="border-b border-border bg-surface py-12 sm:py-14">
<div class="mx-auto flex max-w-4xl flex-wrap items-end justify-between gap-4 px-5 sm:px-8">
+16 -2
View File
@@ -1,6 +1,8 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
import { buildSubpageJsonLd } from '../../lib/seo';
interface Props {
locale: Locale;
@@ -38,14 +40,26 @@ const osRows = isZh
{ item: 'Storage', req: '150 GB+ free outside system drive (NVMe recommended)', detail: 'Defaults to NVMe qcow2 with extended_l2 subclusters; runtimes and images stay inside your chosen data folder' },
{ item: 'Guest macOS', req: 'Focused on macOS Tahoe 26', detail: 'Installers are downloaded directly from Apple by your machine; report other setups in community' },
];
const pageTitle = isZh ? '硬件兼容与运行要求' : 'Hardware Compatibility';
const pageDesc = isZh
? 'Reims-Go 显卡 Vulkan 1.3 兼容矩阵、Windows 10/11 虚拟化前提与 VMware SVGA 回退说明'
: 'GPU Vulkan 1.3 compatibility matrix, Windows WHPX requirements, and VMware SVGA fallback guide';
const compatJsonLd = buildSubpageJsonLd({
locale,
path: '/compatibility',
title: pageTitle,
description: pageDesc,
navLabel: t(locale).nav.compatibility,
});
---
<BaseLayout
locale={locale}
title={isZh ? '硬件兼容与运行要求' : 'Hardware Compatibility'}
description={isZh ? 'Reims-Go 显卡 Vulkan 1.3 兼容矩阵、Windows 10/11 虚拟化前提与 VMware SVGA 回退说明' : 'GPU Vulkan 1.3 compatibility matrix, Windows WHPX requirements, and VMware SVGA fallback guide'}
title={pageTitle}
description={pageDesc}
activeSection="compatibility"
showFooterCta={false}
jsonLd={compatJsonLd}
>
<section class="border-b border-border bg-surface py-12 sm:py-14">
<div class="mx-auto max-w-6xl px-5 sm:px-8">
+71 -2
View File
@@ -3,6 +3,16 @@ import { ClientRouter } from 'astro:transitions';
import '../styles/global.css';
import { t } from '../i18n/translations';
import type { Locale } from '../i18n/types';
import {
canonicalUrl,
getHreflangAlternates,
OG_IMAGE_HEIGHT,
OG_IMAGE_PATH,
OG_IMAGE_WIDTH,
SITE_KEYWORDS,
SITE_NAME,
SITE_URL,
} from '../lib/seo';
import Navbar from '../components/layout/Navbar.astro';
import Footer from '../components/layout/Footer.astro';
@@ -12,6 +22,10 @@ interface Props {
description?: string;
activeSection?: 'features' | 'docs' | 'plugins' | 'compatibility' | 'changelog';
showFooterCta?: boolean;
ogType?: 'website' | 'article';
noindex?: boolean;
markdownAlternate?: string;
jsonLd?: Record<string, unknown> | null;
}
const {
@@ -20,11 +34,29 @@ const {
description,
activeSection = 'features',
showFooterCta = true,
ogType = 'website',
noindex = false,
markdownAlternate,
jsonLd,
} = Astro.props;
const strings = t(locale);
const pageTitle = title ? `${title} · Reims-Go` : strings.meta.title;
const pageTitle = title ? `${title} · ${SITE_NAME}` : strings.meta.title;
const pageDesc = description || strings.meta.description;
const pathname = Astro.url.pathname;
const canonical = canonicalUrl(pathname);
const alternates = getHreflangAlternates(pathname);
const ogImageUrl = `${SITE_URL}${OG_IMAGE_PATH}`;
const ogImageAlt = locale === 'zh-CN'
? 'Reims-Go — 为 Windows 打造的 Metal 经 Vulkan 硬件加速 macOS 虚拟机'
: 'Reims-Go — Metal to Vulkan GPU-accelerated macOS virtual machine for Windows';
const ogLocale = locale === 'zh-CN' ? 'zh_CN' : 'en_US';
const ogAltLocale = locale === 'zh-CN' ? 'en_US' : 'zh_CN';
const robotsContent = noindex
? 'noindex, nofollow'
: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1';
const keywords = SITE_KEYWORDS[locale].join(', ');
const markdownAltUrl = markdownAlternate ? canonicalUrl(markdownAlternate) : null;
---
<!doctype html>
@@ -34,10 +66,47 @@ const pageDesc = description || strings.meta.description;
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{pageTitle}</title>
<meta name="description" content={pageDesc} />
<meta name="keywords" content={keywords} />
<meta name="author" content={SITE_NAME} />
<meta name="robots" content={robotsContent} />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#FFFFFF" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#121317" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />
<link rel="alternate" type="text/plain" title="LLMs Index" href="/llms.txt" />
{markdownAltUrl && <link rel="alternate" type="text/markdown" href={markdownAltUrl} />}
{!noindex && (
<>
<link rel="canonical" href={canonical} />
<link rel="alternate" hreflang="zh-CN" href={alternates.zhUrl} />
<link rel="alternate" hreflang="en" href={alternates.enUrl} />
<link rel="alternate" hreflang="x-default" href={alternates.xDefaultUrl} />
</>
)}
<meta property="og:type" content={ogType} />
<meta property="og:site_name" content={SITE_NAME} />
<meta property="og:url" content={canonical} />
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={pageDesc} />
<meta property="og:type" content="website" />
<meta property="og:locale" content={ogLocale} />
<meta property="og:locale:alternate" content={ogAltLocale} />
<meta property="og:image" content={ogImageUrl} />
<meta property="og:image:width" content={String(OG_IMAGE_WIDTH)} />
<meta property="og:image:height" content={String(OG_IMAGE_HEIGHT)} />
<meta property="og:image:alt" content={ogImageAlt} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={pageTitle} />
<meta name="twitter:description" content={pageDesc} />
<meta name="twitter:image" content={ogImageUrl} />
<meta name="twitter:image:alt" content={ogImageAlt} />
{jsonLd && <script type="application/ld+json" set:html={JSON.stringify(jsonLd)} />}
<ClientRouter />
<script is:inline>
(() => {
+13 -1
View File
@@ -2,6 +2,7 @@
import BaseLayout from './BaseLayout.astro';
import { t } from '../i18n/translations';
import { localizedPath, type Locale } from '../i18n/types';
import { buildDocsJsonLd } from '../lib/seo';
interface Heading {
depth: number;
@@ -25,9 +26,20 @@ const curIdx = flatItems.findIndex((item) => item.slug === currentSlug);
const prevItem = curIdx > 0 ? flatItems[curIdx - 1] : null;
const nextItem = curIdx >= 0 && curIdx < flatItems.length - 1 ? flatItems[curIdx + 1] : null;
const tocHeadings = headings.filter((h) => h.depth >= 2 && h.depth <= 3);
const docsJsonLd = buildDocsJsonLd({ locale, title, description, sectionTitle, slug: currentSlug });
const markdownAlternate = localizedPath(locale, `/docs/${currentSlug}.md`);
---
<BaseLayout locale={locale} title={title} description={description} activeSection="docs" showFooterCta={false}>
<BaseLayout
locale={locale}
title={title}
description={description}
activeSection="docs"
showFooterCta={false}
ogType="article"
markdownAlternate={markdownAlternate}
jsonLd={docsJsonLd}
>
<div class="mx-auto grid w-full max-w-[1440px] grid-cols-1 lg:grid-cols-[276px_minmax(0,1fr)] xl:grid-cols-[276px_minmax(0,1fr)_248px]">
<!-- Mobile Collapsible Docs Navigation (<lg) -->
<div class="border-b border-border bg-surface px-4 py-3 lg:hidden">
+354
View File
@@ -0,0 +1,354 @@
import { t } from '../i18n/translations';
import { localizedPath, switchLocalePath, type Locale } from '../i18n/types';
import { FALLBACK_PLUGIN_INDEX, pickLoc } from './plugins';
import { FALLBACK_RELEASE } from './releases';
export const SITE_URL = (
import.meta.env.PUBLIC_SITE_URL ||
import.meta.env.SITE ||
'https://reims-go.pages.dev'
).replace(/\/+$/, '');
export const SITE_NAME = 'Reims-Go';
export const GITHUB_REPO_URL = 'https://github.com/Nwflower/Reims-Go';
export const PLUGINS_REPO_URL = 'https://github.com/reims-go/plugins';
export const LANDING_REPO_URL = 'https://github.com/reims-go/Reims-landing';
export const DISCORD_URL = 'https://discord.gg/Tj682rW5rS';
export const OG_IMAGE_PATH = '/og-image.png';
export const OG_IMAGE_WIDTH = 1200;
export const OG_IMAGE_HEIGHT = 630;
export const SITE_KEYWORDS: Record<Locale, string[]> = {
'zh-CN': [
'Reims-Go',
'Windows macOS 虚拟机',
'macOS VM Windows',
'Metal Vulkan 显卡加速',
'metal2vulkan',
'reims-vgpu',
'macOS Tahoe 26',
'QEMU WHPX',
'OpenCore',
'Guest Tools',
'Windows 运行 macOS',
'开源虚拟机',
],
'en-US': [
'Reims-Go',
'macOS virtual machine for Windows',
'macOS VM on Windows 11',
'Metal to Vulkan GPU acceleration',
'metal2vulkan',
'reims-vgpu',
'macOS Tahoe 26',
'QEMU WHPX',
'OpenCore',
'Guest Tools',
'Windows macOS launcher',
'open source virtualization',
],
};
export function normalizePathname(pathname: string): string {
const clean = pathname.replace(/\/+$/, '');
return clean === '' ? '/' : clean;
}
export function canonicalUrl(pathname: string): string {
const norm = normalizePathname(pathname);
return norm === '/' ? `${SITE_URL}/` : `${SITE_URL}${norm}`;
}
export function getHreflangAlternates(pathname: string): {
zhUrl: string;
enUrl: string;
xDefaultUrl: string;
} {
const norm = normalizePathname(pathname);
const zhPath = switchLocalePath(norm, 'zh-CN');
const enPath = switchLocalePath(norm, 'en-US');
const zhUrl = canonicalUrl(zhPath);
const enUrl = canonicalUrl(enPath);
return {
zhUrl,
enUrl,
xDefaultUrl: zhUrl,
};
}
export function getOrganizationNode() {
return {
'@type': 'Organization',
'@id': `${SITE_URL}/#organization`,
name: SITE_NAME,
url: `${SITE_URL}/`,
logo: {
'@type': 'ImageObject',
url: `${SITE_URL}/logo.svg`,
},
sameAs: [GITHUB_REPO_URL, PLUGINS_REPO_URL, LANDING_REPO_URL, DISCORD_URL],
};
}
export function getWebsiteNode(locale: Locale) {
const strings = t(locale);
return {
'@type': 'WebSite',
'@id': `${SITE_URL}/#website`,
url: `${SITE_URL}/`,
name: SITE_NAME,
description: strings.meta.description,
inLanguage: ['zh-CN', 'en-US'],
publisher: { '@id': `${SITE_URL}/#organization` },
};
}
export function getSoftwareApplicationNode(locale: Locale) {
const isZh = locale === 'zh-CN';
const strings = t(locale);
const version = FALLBACK_RELEASE.version.replace(/^v/i, '');
return {
'@type': 'SoftwareApplication',
'@id': `${SITE_URL}/#software`,
name: SITE_NAME,
alternateName: isZh ? 'Reims-Go macOS 虚拟机工作台' : 'Reims-Go macOS VM Workbench',
url: canonicalUrl(localizedPath(locale, '/')),
image: `${SITE_URL}${OG_IMAGE_PATH}`,
description: strings.meta.description,
inLanguage: locale,
applicationCategory: 'UtilitiesApplication',
applicationSubCategory: 'Virtualization',
operatingSystem: 'Windows 10 (64-bit), Windows 11 (64-bit)',
processorRequirements: '64-bit x86-64 CPU with VT-x / AMD-V and Windows Hypervisor Platform (WHPX)',
memoryRequirements: '16 GB RAM minimum',
storageRequirements: '150 GB free disk space outside system drive (NVMe SSD recommended)',
softwareVersion: version,
datePublished: FALLBACK_RELEASE.published_at,
dateModified: FALLBACK_RELEASE.synced_at,
license: 'https://www.apache.org/licenses/LICENSE-2.0',
isAccessibleForFree: true,
codeRepository: GITHUB_REPO_URL,
downloadUrl: FALLBACK_RELEASE.exe?.url || FALLBACK_RELEASE.html_url,
releaseNotes: canonicalUrl(localizedPath(locale, '/changelog')),
softwareHelp: {
'@type': 'CreativeWork',
url: canonicalUrl(localizedPath(locale, '/docs/quick-start')),
},
featureList: isZh
? [
'Metal 经 Vulkan 1.3 独立显卡硬件加速(基于 reims-graphics-pci 与 metal2vulkan)',
'单一 reims-go.exe 双模架构:双击图形工作台,带子命令即 CLI 托管',
'零命令行五步装机:本机直连 Apple 并行分片下载离线镜像,自动构建 NVMe 磁盘与 OpenCore 引导',
'Guest Tools v8 本机回环五通道互通:双向剪贴板、按虚拟机共享文件夹、拖拽传文件、Windows 输入法直输与 SSH / VS Code Remote-SSH',
'支持恢复点、CoW 派生副本、Alpha 运行时热挂起(vm-suspend)、P/E/LP-E 混合核绑核与 1.5× HiDPI 显示',
'三层隔离插件生态(L1 声明式 / L3 Sidecar / L4 沙箱面板),支持 uiApi 2.0、bridgeApi 1.0 与 --safe-mode 安全模式',
'Apache-2.0 客户端开源、零遥测,不分发任何 Apple 文件或系统镜像,支持 SHA256SUMS.txt 核验',
]
: [
'Metal to Vulkan 1.3 discrete GPU hardware acceleration via reims-graphics-pci and metal2vulkan',
'Single reims-go.exe dual-mode binary: desktop workbench on double-click and full CLI subcommands in terminal',
'Zero-CLI five-step setup: direct parallel chunk download from Apple with automatic NVMe disk and OpenCore boot generation',
'Guest Tools v8 loopback-only interop: bidirectional clipboard, per-VM shared folders with path boundary checks, drag-and-drop, Windows IME forwarding, and SSH / VS Code Remote-SSH',
'Restore points, instant CoW derived clones, running Intel VM suspend/resume (Alpha vm-suspend), P/E/LP-E hybrid core pinning, and 1.5x HiDPI scaling',
'Three-tier isolated plugin ecosystem (L1 declarative, L3 Sidecar RPC, L4 sandboxed panels) with uiApi 2.0, bridgeApi 1.0, and --safe-mode recovery',
'Apache-2.0 licensed client with zero telemetry, no Apple files distributed, and SHA256SUMS.txt verification',
],
author: { '@id': `${SITE_URL}/#organization` },
offers: {
'@type': 'Offer',
price: '0',
priceCurrency: isZh ? 'CNY' : 'USD',
},
...(FALLBACK_RELEASE.stars > 0
? {
interactionStatistic: {
'@type': 'InteractionCounter',
interactionType: 'https://schema.org/LikeAction',
userInteractionCount: FALLBACK_RELEASE.stars,
},
}
: {}),
};
}
export function buildHomeJsonLd(locale: Locale) {
const strings = t(locale);
const homeUrl = canonicalUrl(localizedPath(locale, '/'));
return {
'@context': 'https://schema.org',
'@graph': [
getOrganizationNode(),
getWebsiteNode(locale),
getSoftwareApplicationNode(locale),
{
'@type': 'HowTo',
'@id': `${homeUrl}#install-howto`,
name: strings.install.title,
description: strings.install.subhead,
inLanguage: locale,
tool: [
{ '@type': 'HowToTool', name: 'reims-go.exe (Windows 10/11 x64)' },
{ '@type': 'HowToTool', name: 'Vulkan 1.3 Discrete GPU (NVIDIA RTX recommended)' },
],
step: strings.install.steps.map((s, idx) => ({
'@type': 'HowToStep',
position: idx + 1,
name: s.title,
text: `${s.desc}. ${s.detail}`,
})),
},
{
'@type': 'FAQPage',
'@id': `${homeUrl}#faq`,
inLanguage: locale,
mainEntity: strings.faq.items.map((item) => ({
'@type': 'Question',
name: item.q,
acceptedAnswer: {
'@type': 'Answer',
text: item.a,
},
})),
},
],
};
}
export function buildBreadcrumbNode(items: Array<{ name: string; url: string }>) {
return {
'@type': 'BreadcrumbList',
itemListElement: items.map((item, idx) => ({
'@type': 'ListItem',
position: idx + 1,
name: item.name,
item: item.url,
})),
};
}
export function buildDocsJsonLd(params: {
locale: Locale;
title: string;
description: string;
sectionTitle: string;
slug: string;
}) {
const { locale, title, description, sectionTitle, slug } = params;
const strings = t(locale);
const homeUrl = canonicalUrl(localizedPath(locale, '/'));
const docsRootUrl = canonicalUrl(localizedPath(locale, '/docs/quick-start'));
const pageUrl = canonicalUrl(localizedPath(locale, `/docs/${slug}`));
return {
'@context': 'https://schema.org',
'@graph': [
getOrganizationNode(),
getWebsiteNode(locale),
{
'@type': 'TechArticle',
'@id': `${pageUrl}#article`,
headline: title,
description,
articleSection: sectionTitle,
inLanguage: locale,
url: pageUrl,
image: `${SITE_URL}${OG_IMAGE_PATH}`,
dateModified: FALLBACK_RELEASE.synced_at,
author: { '@id': `${SITE_URL}/#organization` },
publisher: { '@id': `${SITE_URL}/#organization` },
isPartOf: { '@id': `${SITE_URL}/#website` },
about: { '@id': `${SITE_URL}/#software` },
},
buildBreadcrumbNode([
{ name: SITE_NAME, url: homeUrl },
{ name: strings.docs.badge, url: docsRootUrl },
{ name: title, url: pageUrl },
]),
],
};
}
export function buildPluginsJsonLd(locale: Locale) {
const strings = t(locale);
const homeUrl = canonicalUrl(localizedPath(locale, '/'));
const pageUrl = canonicalUrl(localizedPath(locale, '/plugins'));
return {
'@context': 'https://schema.org',
'@graph': [
getOrganizationNode(),
getWebsiteNode(locale),
{
'@type': 'CollectionPage',
'@id': `${pageUrl}#collection`,
name: strings.pluginsPage.title,
description: strings.pluginsPage.subhead,
inLanguage: locale,
url: pageUrl,
isPartOf: { '@id': `${SITE_URL}/#website` },
about: { '@id': `${SITE_URL}/#software` },
mainEntity: {
'@type': 'ItemList',
numberOfItems: FALLBACK_PLUGIN_INDEX.plugins.length,
itemListElement: FALLBACK_PLUGIN_INDEX.plugins.map((plugin, idx) => ({
'@type': 'ListItem',
position: idx + 1,
item: {
'@type': 'SoftwareApplication',
name: pickLoc(plugin.name, locale, plugin.id),
identifier: plugin.id,
softwareVersion: plugin.version,
description: pickLoc(plugin.description, locale, ''),
applicationCategory: 'UtilitiesApplication',
operatingSystem: 'Windows 10, Windows 11',
isAccessibleForFree: true,
downloadUrl: plugin.download_url,
...(plugin.homepage ? { url: plugin.homepage } : {}),
},
})),
},
},
buildBreadcrumbNode([
{ name: SITE_NAME, url: homeUrl },
{ name: strings.nav.plugins, url: pageUrl },
]),
],
};
}
export function buildSubpageJsonLd(params: {
locale: Locale;
path: string;
title: string;
description: string;
navLabel: string;
}) {
const { locale, path, title, description, navLabel } = params;
const homeUrl = canonicalUrl(localizedPath(locale, '/'));
const pageUrl = canonicalUrl(localizedPath(locale, path));
return {
'@context': 'https://schema.org',
'@graph': [
getOrganizationNode(),
getWebsiteNode(locale),
{
'@type': 'WebPage',
'@id': `${pageUrl}#webpage`,
name: title,
description,
inLanguage: locale,
url: pageUrl,
dateModified: FALLBACK_RELEASE.synced_at,
isPartOf: { '@id': `${SITE_URL}/#website` },
about: { '@id': `${SITE_URL}/#software` },
},
buildBreadcrumbNode([
{ name: SITE_NAME, url: homeUrl },
{ name: navLabel, url: pageUrl },
]),
],
};
}
+1
View File
@@ -7,6 +7,7 @@ import BaseLayout from '../layouts/BaseLayout.astro';
title="页面未找到 · 404"
description="未找到您访问的 Reims-Go 页面,请返回首页或查看文档中心。"
showFooterCta={false}
noindex={true}
>
<section class="mx-auto flex max-w-2xl flex-col items-center px-6 py-24 text-center sm:py-32">
<span class="rounded-full border border-border bg-surface px-3.5 py-1 font-mono text-xs font-medium text-accent">
+38
View File
@@ -0,0 +1,38 @@
import type { APIRoute, GetStaticPaths } from 'astro';
import { getCollection } from 'astro:content';
import { SITE_URL } from '../../lib/seo';
export const getStaticPaths: GetStaticPaths = async () => {
const entries = await getCollection('docs', ({ id }) => id.startsWith('zh-cn/'));
return entries.map((entry) => ({
params: { slug: entry.id.replace(/^zh-cn\//, '') },
props: { entry },
}));
};
export const GET: APIRoute = ({ params, props }) => {
const entry = props.entry as Awaited<ReturnType<typeof getCollection<'docs'>>>[number];
const slug = params.slug as string;
const md = [
`# ${entry.data.title}`,
'',
`> ${entry.data.description}`,
'',
`- **Canonical URL**: ${SITE_URL}/docs/${slug}`,
`- **English Version**: ${SITE_URL}/en/docs/${slug}.md`,
`- **Section**: ${entry.data.section}`,
`- **LLMs Index**: ${SITE_URL}/llms.txt`,
'',
'---',
'',
(entry.body || '').trim(),
'',
].join('\n');
return new Response(md, {
headers: {
'Content-Type': 'text/markdown; charset=utf-8',
},
});
};
+38
View File
@@ -0,0 +1,38 @@
import type { APIRoute, GetStaticPaths } from 'astro';
import { getCollection } from 'astro:content';
import { SITE_URL } from '../../../lib/seo';
export const getStaticPaths: GetStaticPaths = async () => {
const entries = await getCollection('docs', ({ id }) => id.startsWith('en/'));
return entries.map((entry) => ({
params: { slug: entry.id.replace(/^en\//, '') },
props: { entry },
}));
};
export const GET: APIRoute = ({ params, props }) => {
const entry = props.entry as Awaited<ReturnType<typeof getCollection<'docs'>>>[number];
const slug = params.slug as string;
const md = [
`# ${entry.data.title}`,
'',
`> ${entry.data.description}`,
'',
`- **Canonical URL**: ${SITE_URL}/en/docs/${slug}`,
`- **Chinese Version**: ${SITE_URL}/docs/${slug}.md`,
`- **Section**: ${entry.data.section}`,
`- **LLMs Index**: ${SITE_URL}/llms.txt`,
'',
'---',
'',
(entry.body || '').trim(),
'',
].join('\n');
return new Response(md, {
headers: {
'Content-Type': 'text/markdown; charset=utf-8',
},
});
};
+3
View File
@@ -2,8 +2,10 @@
import BaseLayout from '../../layouts/BaseLayout.astro';
import { PluginMarketBrowser } from '../../components/plugins/PluginMarketBrowser';
import { t } from '../../i18n/translations';
import { buildPluginsJsonLd } from '../../lib/seo';
const strings = t('en-US');
const pluginsJsonLd = buildPluginsJsonLd('en-US');
---
<BaseLayout
@@ -12,6 +14,7 @@ const strings = t('en-US');
description={strings.pluginsPage.subhead}
activeSection="plugins"
showFooterCta={false}
jsonLd={pluginsJsonLd}
>
<PluginMarketBrowser client:load locale="en-US" />
</BaseLayout>
+53
View File
@@ -0,0 +1,53 @@
import type { APIRoute } from 'astro';
import { t } from '../i18n/translations';
import { FALLBACK_RELEASE } from '../lib/releases';
import { GITHUB_REPO_URL, SITE_URL } from '../lib/seo';
export const GET: APIRoute = () => {
const zh = t('zh-CN');
const en = t('en-US');
const md = [
'# Reims-Go',
'',
`> ${zh.hero.headline} — ${zh.hero.subhead} (${FALLBACK_RELEASE.version})`,
`> ${en.hero.headline} — ${en.hero.subhead}`,
'',
`- **Canonical Website**: ${SITE_URL}/ (zh-CN) | ${SITE_URL}/en (en-US)`,
`- **LLMs Index**: ${SITE_URL}/llms.txt | **Full Context**: ${SITE_URL}/llms-full.txt`,
`- **GitHub Releases**: ${GITHUB_REPO_URL}/releases/latest`,
`- **License**: Apache-2.0 client, isolated GPL/LGPL portable runtime, zero telemetry`,
'',
'## Core Capabilities',
...en.trust.items.map((item) => `- **${item.title}**: ${item.desc}`),
'',
'## Metal -> Vulkan 1.3 GPU Pipeline',
...en.gpu.nodes.map((n) => `${n.step}. **${n.title}** (\`${n.mono}\`): ${n.detail}`),
'',
'## Zero-CLI 5-Step Setup',
...en.install.steps.map((s) => `${s.num}. **${s.title}** (${s.kind}): ${s.detail}`),
'',
'## Guest Tools v8 Interop (127.0.0.1 Loopback Only)',
...en.interop.channels.map((c) => `- **${c.left} ${c.bidir ? '<->' : '->'} ${c.right}** (${c.mid}): ${c.detail}`),
'',
'## System Requirements',
...en.download.reqs.map((r) => `- **${r.label}**: ${r.desc}`),
'',
'## FAQ',
...en.faq.items.flatMap((f) => [`### ${f.q}`, f.a, '']),
'## Documentation Links (Markdown)',
`- [Quick Start (EN)](${SITE_URL}/en/docs/quick-start.md) | [快速开始 (ZH)](${SITE_URL}/docs/quick-start.md)`,
`- [Daily Usage & Interop (EN)](${SITE_URL}/en/docs/daily-usage.md) | [日常使用与互通 (ZH)](${SITE_URL}/docs/daily-usage.md)`,
`- [CLI Reference (EN)](${SITE_URL}/en/docs/cli-reference.md) | [命令行参考 (ZH)](${SITE_URL}/docs/cli-reference.md)`,
`- [Architecture & Security (EN)](${SITE_URL}/en/docs/architecture-security.md) | [架构与安全边界 (ZH)](${SITE_URL}/docs/architecture-security.md)`,
`- [Plugin Development (EN)](${SITE_URL}/en/docs/plugin-development.md) | [插件开发指南 (ZH)](${SITE_URL}/docs/plugin-development.md)`,
`- [Troubleshooting & Safe Mode (EN)](${SITE_URL}/en/docs/troubleshooting.md) | [故障排查与安全模式 (ZH)](${SITE_URL}/docs/troubleshooting.md)`,
'',
].join('\n');
return new Response(md, {
headers: {
'Content-Type': 'text/markdown; charset=utf-8',
},
});
};
+102
View File
@@ -0,0 +1,102 @@
import type { APIRoute } from 'astro';
import { getCollection } from 'astro:content';
import { t } from '../i18n/translations';
import { FALLBACK_PLUGIN_INDEX } from '../lib/plugins';
import { FALLBACK_RELEASE } from '../lib/releases';
import { GITHUB_REPO_URL, PLUGINS_REPO_URL, SITE_URL } from '../lib/seo';
export const GET: APIRoute = async () => {
const enDocs = (await getCollection('docs', ({ id }) => id.startsWith('en/'))).sort(
(a, b) => a.data.order - b.data.order,
);
const zhDocs = (await getCollection('docs', ({ id }) => id.startsWith('zh-cn/'))).sort(
(a, b) => a.data.order - b.data.order,
);
const enStrings = t('en-US');
const zhStrings = t('zh-CN');
const sections: string[] = [
'# Reims-Go — Complete Knowledge Reference (llms-full.txt)',
'',
`> Canonical full-text technical documentation and structured facts for Reims-Go (${FALLBACK_RELEASE.version}), generated directly from official site sources at ${SITE_URL}/.`,
'',
'## 1. Entity & Release Summary',
'',
`- **Project Name**: Reims-Go`,
`- **Latest Version**: ${FALLBACK_RELEASE.version} (published ${FALLBACK_RELEASE.published_at.slice(0, 10)})`,
`- **Website**: ${SITE_URL}/ (zh-CN) | ${SITE_URL}/en (en-US)`,
`- **Repository**: ${GITHUB_REPO_URL}`,
`- **Plugin Registry**: ${PLUGINS_REPO_URL}`,
`- **Client License**: Apache-2.0 (isolated from GPL/LGPL portable runtime subprocesses shipped with matching source archives)`,
`- **Download (Windows x64 EXE)**: ${FALLBACK_RELEASE.exe?.url || FALLBACK_RELEASE.html_url}`,
`- **Download (Windows x64 ZIP)**: ${FALLBACK_RELEASE.zip?.url || FALLBACK_RELEASE.html_url}`,
`- **Checksum File**: ${FALLBACK_RELEASE.sha256_url || `${GITHUB_REPO_URL}/releases/latest`}`,
'- **Compliance**: For personal study and research only. No Apple files, system images, or proprietary firmware are bundled or distributed. Zero telemetry. Not affiliated with Apple Inc., Microsoft Corporation, or upstream `reims-vgpu`.',
'',
'## 2. Five-Stage Metal to Vulkan GPU Pipeline',
'',
...enStrings.gpu.nodes.map(
(n) => `${n.step}. **${n.title}** (\`${n.mono}\`): ${n.desc} — ${n.detail}`,
),
'',
'## 3. Hardware Compatibility & Requirements',
'',
...enStrings.download.reqs.map((r) => `- **${r.label}**: ${r.desc}`),
'- **NVIDIA GeForce RTX 20/30/40/50**: Primary tested platform with full Metal -> Vulkan 1.3 GPU acceleration.',
'- **AMD Radeon discrete GPUs (Vega / Polaris / RX 6600 XT)**: Known black-screen / `ERROR_DEVICE_LOST` risks flagged by `reims-go doctor`; switch to VMware SVGA fallback in settings if affected.',
'- **AMD Radeon iGPU / Intel Core Ultra Arc iGPU**: Detected since v0.2.8 with automatic stale Vulkan ICD cleanup; unverified acceleration, VMware SVGA fallback supported.',
'',
'## 4. Official Plugin Catalog Snapshot',
'',
...FALLBACK_PLUGIN_INDEX.plugins.map(
(p) =>
`- **${p.id}** (v${p.version}, trust=${p.trust}, tier=${p.tier || 'L1'}, license=${p.license}): ${p.description['en-US'] || p.description['zh-CN'] || ''} — CLI: \`reims-go plugin install ${p.id}\``,
),
'',
'## 5. Frequently Asked Questions (EN & ZH)',
'',
'### English FAQ',
...enStrings.faq.items.flatMap((f) => [`**Q: ${f.q}**`, `A: ${f.a}`, '']),
'### 中文常见问题',
...zhStrings.faq.items.flatMap((f) => [`**问:${f.q}**`, `答:${f.a}`, '']),
'---',
'',
'## 6. Complete English Documentation',
'',
...enDocs.flatMap((entry) => {
const slug = entry.id.replace(/^en\//, '');
return [
`### ${entry.data.title}`,
`Source URL: ${SITE_URL}/en/docs/${slug}`,
`Markdown URL: ${SITE_URL}/en/docs/${slug}.md`,
'',
(entry.body || '').trim(),
'',
'---',
'',
];
}),
'## 7. 完整简体中文文档',
'',
...zhDocs.flatMap((entry) => {
const slug = entry.id.replace(/^zh-cn\//, '');
return [
`### ${entry.data.title}`,
`页面地址: ${SITE_URL}/docs/${slug}`,
`Markdown 地址: ${SITE_URL}/docs/${slug}.md`,
'',
(entry.body || '').trim(),
'',
'---',
'',
];
}),
];
return new Response(sections.join('\n'), {
headers: {
'Content-Type': 'text/plain; charset=utf-8',
},
});
};
+64
View File
@@ -0,0 +1,64 @@
import type { APIRoute } from 'astro';
import { getCollection } from 'astro:content';
import { FALLBACK_PLUGIN_INDEX } from '../lib/plugins';
import { FALLBACK_RELEASE } from '../lib/releases';
import { DISCORD_URL, GITHUB_REPO_URL, PLUGINS_REPO_URL, SITE_URL } from '../lib/seo';
export const GET: APIRoute = async () => {
const zhDocs = (await getCollection('docs', ({ id }) => id.startsWith('zh-cn/'))).sort(
(a, b) => a.data.order - b.data.order,
);
const enDocs = (await getCollection('docs', ({ id }) => id.startsWith('en/'))).sort(
(a, b) => a.data.order - b.data.order,
);
const lines = [
'# Reims-Go',
'',
`> Reims-Go (${FALLBACK_RELEASE.version}) is a prebuilt, GPU-accelerated macOS virtual machine desktop launcher and single-EXE CLI workbench for 64-bit Windows 10 and Windows 11, translating guest Metal graphics to host Vulkan 1.3 via reims-graphics-pci and metal2vulkan.`,
'',
'Key verified facts for AI systems and coding agents:',
'- **Host OS**: 64-bit Windows 10 / 11 with BIOS virtualization (VT-x / AMD-V) and Windows Hypervisor Platform (WHPX).',
'- **GPU acceleration**: 5-stage pipeline (`Metal 3 API -> Reims Guest Driver -> reims-graphics-pci -> metal2vulkan -> Windows Vulkan 1.3 ICD`). Primary tested hardware: NVIDIA GeForce RTX discrete GPUs; unverified or flagged GPUs can fall back to VMware SVGA.',
'- **Primary guest OS**: macOS Tahoe 26 (offline installers downloaded directly from Apple by the user machine; zero Apple files or images distributed).',
'- **Architecture**: Single portable `reims-go.exe` (Apache-2.0, Go + Wails) combining GUI + CLI with seamless tray handoff. GPL/LGPL portable runtime (`QEMU`, `reims-vgpu`, `metal2vulkan`) runs as an isolated child process with matching source archives and `SHA256SUMS.txt`.',
'- **Host-guest interop (Guest Tools v8)**: Loopback-only (`127.0.0.1`) with per-VM 256-bit random tokens — bidirectional text/image clipboard, per-VM WebDAV shared folders with root path boundary enforcement (`~/Desktop/ReimsShare`), drag-and-drop, Windows IME forwarding, and SSH / VS Code Remote-SSH.',
'- **Plugin ecosystem**: Three-tier isolation (`L1` declarative, `L3` Sidecar RPC via `bridgeApi 1.0`, `L4` sandboxed panels via `uiApi 2.0`), static security scanning, SHA-256 verification, and `reims-go --safe-mode` recovery.',
'- **Compliance & privacy**: Personal study and research only; zero telemetry; not affiliated with Apple Inc., Microsoft Corporation, or upstream `reims-vgpu`.',
'',
'## Core Documentation (English · Clean Markdown)',
...enDocs.map((entry) => {
const slug = entry.id.replace(/^en\//, '');
return `- [${entry.data.title}](${SITE_URL}/en/docs/${slug}.md): ${entry.data.description}`;
}),
'',
'## 核心文档(简体中文 · Clean Markdown)',
...zhDocs.map((entry) => {
const slug = entry.id.replace(/^zh-cn\//, '');
return `- [${entry.data.title}](${SITE_URL}/docs/${slug}.md): ${entry.data.description}`;
}),
'',
'## Key Site Pages & Machine-Readable Endpoints',
`- [Full Single-File Context (llms-full.txt)](${SITE_URL}/llms-full.txt): Complete bilingual technical reference, CLI guide, GPU matrix, plugin catalog, FAQ, and full documentation text in one file.`,
`- [Site Overview Markdown](${SITE_URL}/index.md): Concise Markdown overview of Reims-Go features, requirements, download links, and FAQ.`,
`- [Official Website (zh-CN)](${SITE_URL}/): Interactive client showcase, GPU architecture, 5-step install guide, and downloads.`,
`- [Official Website (English)](${SITE_URL}/en): English landing page and interactive showcase.`,
`- [Official Plugin Marketplace](${SITE_URL}/plugins): Real-time browser synced with reims-go/plugins (${FALLBACK_PLUGIN_INDEX.plugins.length}+ indexed packages with SHA-256 checksums).`,
`- [Hardware Compatibility Matrix](${SITE_URL}/en/compatibility): Tested NVIDIA RTX GPUs, AMD/iGPU flags, VMware SVGA fallback, WHPX, RAM, and disk prerequisites.`,
`- [Release Changelog](${SITE_URL}/en/changelog): Version history up to ${FALLBACK_RELEASE.version}.`,
`- [XML Sitemap](${SITE_URL}/sitemap.xml): Canonical bilingual URL index with hreflang alternates.`,
'',
'## Optional',
`- [GitHub Repository & Releases](${GITHUB_REPO_URL}): Client source code (Apache-2.0), Windows x64 EXE/ZIP binaries, and SHA256SUMS.txt.`,
`- [Third-Party License Notices (NOTICE.md)](${GITHUB_REPO_URL}/blob/main/NOTICE.md): Complete license attribution for Apache-2.0 client and isolated GPL/LGPL portable runtime.`,
`- [Official Plugin Registry](${PLUGINS_REPO_URL}): Community PR submission repository for L1/L3/L4 plugins.`,
`- [Discord Community](${DISCORD_URL}): Community troubleshooting and hardware compatibility reports.`,
'',
].join('\n');
return new Response(lines, {
headers: {
'Content-Type': 'text/plain; charset=utf-8',
},
});
};
+3
View File
@@ -2,8 +2,10 @@
import BaseLayout from '../layouts/BaseLayout.astro';
import { PluginMarketBrowser } from '../components/plugins/PluginMarketBrowser';
import { t } from '../i18n/translations';
import { buildPluginsJsonLd } from '../lib/seo';
const strings = t('zh-CN');
const pluginsJsonLd = buildPluginsJsonLd('zh-CN');
---
<BaseLayout
@@ -12,6 +14,7 @@ const strings = t('zh-CN');
description={strings.pluginsPage.subhead}
activeSection="plugins"
showFooterCta={false}
jsonLd={pluginsJsonLd}
>
<PluginMarketBrowser client:load locale="zh-CN" />
</BaseLayout>
+58
View File
@@ -0,0 +1,58 @@
import type { APIRoute } from 'astro';
import { SITE_URL } from '../lib/seo';
const AI_CRAWLERS = [
'GPTBot',
'OAI-SearchBot',
'ChatGPT-User',
'ClaudeBot',
'Claude-SearchBot',
'Claude-User',
'PerplexityBot',
'Perplexity-User',
'Google-Extended',
'Applebot-Extended',
'Bingbot',
'Amazonbot',
'Bytespider',
];
export const GET: APIRoute = () => {
const aiBlocks = AI_CRAWLERS.map(
(bot) =>
[
`User-agent: ${bot}`,
'Allow: /',
'Allow: /llms.txt',
'Allow: /llms-full.txt',
'Allow: /index.md',
'Allow: /docs/',
'Allow: /en/docs/',
'Disallow: /pagefind/',
].join('\n'),
).join('\n\n');
const body = [
'# Reims-Go Official Website — robots.txt (RFC 9309)',
'# Search engines and AI answer / grounding crawlers are welcome to index documentation and Markdown mirrors.',
'',
'User-agent: *',
'Allow: /',
'Allow: /llms.txt',
'Allow: /llms-full.txt',
'Allow: /index.md',
'Disallow: /pagefind/',
'',
aiBlocks,
'',
`Sitemap: ${SITE_URL}/sitemap.xml`,
`Host: ${SITE_URL}`,
'',
].join('\n');
return new Response(body, {
headers: {
'Content-Type': 'text/plain; charset=utf-8',
},
});
};
+81
View File
@@ -0,0 +1,81 @@
import type { APIRoute } from 'astro';
import { getCollection } from 'astro:content';
import { FALLBACK_RELEASE } from '../lib/releases';
import { canonicalUrl } from '../lib/seo';
function escapeXml(str: string): string {
return str
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&apos;');
}
interface UrlPair {
zhPath: string;
enPath: string;
changefreq: 'daily' | 'weekly' | 'monthly';
priority: string;
}
export const GET: APIRoute = async () => {
const docs = await getCollection('docs', ({ id }) => id.startsWith('zh-cn/'));
const docSlugs = docs
.sort((a, b) => a.data.order - b.data.order)
.map((entry) => entry.id.replace(/^zh-cn\//, ''));
const pairs: UrlPair[] = [
{ zhPath: '/', enPath: '/en', changefreq: 'weekly', priority: '1.0' },
{ zhPath: '/plugins', enPath: '/en/plugins', changefreq: 'daily', priority: '0.9' },
{ zhPath: '/compatibility', enPath: '/en/compatibility', changefreq: 'weekly', priority: '0.8' },
{ zhPath: '/changelog', enPath: '/en/changelog', changefreq: 'weekly', priority: '0.8' },
...docSlugs.map((slug) => ({
zhPath: `/docs/${slug}`,
enPath: `/en/docs/${slug}`,
changefreq: 'weekly' as const,
priority: slug === 'quick-start' ? '0.9' : '0.8',
})),
];
const lastmod = (FALLBACK_RELEASE.synced_at || new Date().toISOString()).slice(0, 10);
const entries: string[] = [];
for (const pair of pairs) {
const zhLoc = canonicalUrl(pair.zhPath);
const enLoc = canonicalUrl(pair.enPath);
const alternates = [
` <xhtml:link rel="alternate" hreflang="zh-CN" href="${escapeXml(zhLoc)}" />`,
` <xhtml:link rel="alternate" hreflang="en" href="${escapeXml(enLoc)}" />`,
` <xhtml:link rel="alternate" hreflang="x-default" href="${escapeXml(zhLoc)}" />`,
].join('\n');
for (const loc of [zhLoc, enLoc]) {
entries.push(
[
' <url>',
` <loc>${escapeXml(loc)}</loc>`,
` <lastmod>${lastmod}</lastmod>`,
` <changefreq>${pair.changefreq}</changefreq>`,
` <priority>${pair.priority}</priority>`,
alternates,
' </url>',
].join('\n'),
);
}
}
const xml = [
'<?xml version="1.0" encoding="UTF-8"?>',
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">',
...entries,
'</urlset>',
'',
].join('\n');
return new Response(xml, {
headers: {
'Content-Type': 'application/xml; charset=utf-8',
},
});
};