Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
chore: remove unused GitHub Pages setup
rpone1f1d70eca0fc
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 21f98b9a..69393d63 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -3,9 +3,8 @@ name: CIon:push:branches: [main]- # Documentation-only changes are covered by deploy-pages.yml, which builds the site and runs- # the same repository hygiene checks. Nothing under docs/ is in tsconfig's include or reachable- # from the test suite, so type checking and the full test suite would prove nothing here.+ # Nothing under docs/ is in tsconfig's include or reachable from the test suite, so+ # documentation-only changes are intentionally excluded from this package CI.paths-ignore:- "docs/**"pull_request:diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.ymldeleted file mode 100644index 5e5a3ac7..00000000--- a/.github/workflows/deploy-pages.yml+++ /dev/null@@ -1,67 +0,0 @@-name: Deploy documentation to GitHub Pages--on:- push:- branches: [main]- paths:- - "docs/**"- - ".github/workflows/deploy-pages.yml"- - "package.json"- - "pnpm-lock.yaml"- workflow_dispatch:--permissions:- contents: read- pages: write- id-token: write--concurrency:- group: pages- cancel-in-progress: false--jobs:- build:- runs-on: ubuntu-latest- env:- VITEPRESS_BASE: /- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Set up pnpm- uses: pnpm/action-setup@v4-- - name: Set up Node.js- uses: actions/setup-node@v4- with:- node-version: 22- cache: pnpm-- - name: Configure Pages- uses: actions/configure-pages@v5-- - name: Install dependencies- run: pnpm install --frozen-lockfile-- # CI skips documentation-only pushes, so the hygiene checks that scan docs/ run here.- - name: Repository hygiene- run: pnpm test:release-- - name: Build documentation- run: pnpm docs:build-- - name: Upload Pages artifact- uses: actions/upload-pages-artifact@v3- with:- path: docs/.vitepress/dist-- deploy:- environment:- name: github-pages- url: ${{ steps.deployment.outputs.page_url }}- runs-on: ubuntu-latest- needs: build- steps:- - name: Deploy to GitHub Pages- id: deployment- uses: actions/deploy-pages@v4diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.tsdeleted file mode 100644index 44e423ef..00000000--- a/docs/.vitepress/config.ts+++ /dev/null@@ -1,286 +0,0 @@-import { defineConfig } from "vitepress";-import type { ShikiTransformer } from "shiki";--// Keep the server deployment at /docs/ while allowing the custom-domain-// GitHub Pages workflow to publish the same site at the domain root.-const base = process.env.VITEPRESS_BASE || "/docs/";--function svmlSelectionHighlighter(): ShikiTransformer {- return {- name: "svml-selection-highlighter",- span(node) {- const text = node.children?.[0];- if (!text || text.type !== "text") return;- const v = text.value;- const re = /(~?@\/?[A-Za-z][\w-]*[!~]?| \| )/g;- const parts: Array<{ value: string; highlight: boolean }> = [];- let last = 0;- let m: RegExpExecArray | null;- while ((m = re.exec(v)) !== null) {- if (m[1].startsWith("@")) {- const after = v[re.lastIndex];- if (after === "/") continue;- }- if (m.index > last) parts.push({ value: v.slice(last, m.index), highlight: false });- parts.push({ value: m[1], highlight: true });- last = re.lastIndex;- }- if (parts.length === 0) return;- if (last < v.length) parts.push({ value: v.slice(last), highlight: false });- node.children = parts.map((p) =>- p.highlight- ? { type: "element", tagName: "span", properties: { class: "svml-selection" }, children: [{ type: "text", value: p.value }] }- : { type: "text", value: p.value },- );- },- };-}--const svsLanguage: Record<string, unknown> = {- name: "svs",- scopeName: "source.svs",- patterns: [- { include: "#processing-instruction" },- { include: "#close-tag" },- { include: "#open-tag" },- { include: "#comment" },- { include: "#recipe-block" },- ],- repository: {- "processing-instruction": {- begin: "<\\?",- end: "\\?>",- beginCaptures: { "0": { name: "punctuation.definition.tag.xml" } },- endCaptures: { "0": { name: "punctuation.definition.tag.xml" } },- name: "meta.tag.preprocessor.xml",- patterns: [- { match: "\\bsvml\\b", name: "entity.name.tag.xml" },- { include: "#attribute" },- ],- },- "open-tag": {- begin: "(<)(sheet)\\b",- beginCaptures: {- "1": { name: "punctuation.definition.tag.xml" },- "2": { name: "entity.name.tag.xml" },- },- end: ">",- endCaptures: { "0": { name: "punctuation.definition.tag.xml" } },- patterns: [{ include: "#attribute" }],- },- "close-tag": {- match: "(</)(sheet)(>)",- captures: {- "1": { name: "punctuation.definition.tag.xml" },- "2": { name: "entity.name.tag.xml" },- "3": { name: "punctuation.definition.tag.xml" },- },- },- attribute: {- match: '([\\w-]+)(=)("[^"]*")',- captures: {- "1": { name: "entity.other.attribute-name.xml" },- "2": { name: "punctuation.separator.key-value.xml" },- "3": { name: "string.quoted.double.xml" },- },- },- comment: {- name: "comment.block.css",- begin: "/\\*",- end: "\\*/",- },- "recipe-block": {- begin: "([a-z][\\w-]*)(\\.)(\\S+)\\s*(\\{)",- beginCaptures: {- "1": { name: "entity.name.tag.css" },- "2": { name: "punctuation.accessor.css" },- "3": { name: "entity.other.attribute-name.class.css" },- "4": { name: "punctuation.section.block.begin.css" },- },- end: "\\}",- endCaptures: { "0": { name: "punctuation.section.block.end.css" } },- patterns: [{ include: "#comment" }, { include: "#property-declaration" }],- },- "property-declaration": {- begin: "([a-z][\\w-]*)\\s*(:)",- beginCaptures: {- "1": { name: "support.type.property-name.css" },- "2": { name: "punctuation.separator.key-value.css" },- },- end: ";",- endCaptures: { "0": { name: "punctuation.terminator.rule.css" } },- patterns: [{ include: "#property-value" }],- },- "property-value": {- patterns: [- { match: "#[0-9A-Fa-f]{3,8}\\b", name: "constant.other.color.css" },- { match: "\\b\\d+(?:\\.\\d+)?\\b", name: "constant.numeric.css" },- { match: "\\./[^;\\s]+", name: "string.unquoted.css" },- { match: "[a-zA-Z][\\w:-]+", name: "support.constant.property-value.css" },- ],- },- },-};--const sharedTheme = {- siteTitle: "HYPIT",- logo: {- light: "/hypit-logo-dark.svg",- dark: "/hypit-logo-light.svg",- alt: "Hypit",- },- logoLink: "https://hypit.ai",- socialLinks: [- { icon: "github" as const, link: "https://github.com/hypit-ai/hypit" },- ],- search: { provider: "local" as const },-};--const enTheme = {- ...sharedTheme,- nav: [- { text: "Quickstart", link: "/quickstart" },- { text: "Develop", link: "/guide/develop" },- ],- sidebar: {- "/quickstart": [- {- text: "Getting Started",- items: [- { text: "Overview", link: "/quickstart" },- { text: "Script", link: "/quickstart/script" },- { text: "SVS Stylesheets", link: "/quickstart/styles" },- { text: "Media & Generation", link: "/quickstart/generation" },- { text: "Timing & Assembly", link: "/quickstart/timing" },- { text: "Tracks", link: "/quickstart/tracks" },- { text: "Image Operations", link: "/quickstart/images" },- { text: "Film & Rendering", link: "/quickstart/composition" },- { text: "Studio", link: "/quickstart/preview" },- { text: "Run Source & Builds", link: "/quickstart/run" },- ],- },- ],- "/guide/": [- {- text: "Develop",- items: [- { text: "Overview", link: "/guide/develop" },- { text: "Hypit Skill Architecture", link: "/guide/skill" },- { text: "Package Architecture", link: "/guide/packages" },- { text: "Adding an Author Package", link: "/guide/author-packages" },- { text: "Component Anatomy", link: "/guide/component-anatomy" },- { text: "Adding a Provider", link: "/guide/providers" },- { text: "Runtime", link: "/guide/runtime" },- { text: "Studio Companions", link: "/guide/studio-companion-architecture" },- { text: "Studio Temporal Lineage", link: "/guide/studio-temporal-windows" },- { text: "Testing", link: "/guide/testing" },- { text: "Conventions", link: "/guide/conventions" },- ],- },- ],- },- outline: { level: [2, 3] as [number, number], label: "On this page" },- docFooter: { prev: "Previous", next: "Next" },-};--const zhTheme = {- ...sharedTheme,- nav: [- { text: "快速开始", link: "/zh/quickstart" },- { text: "开发指南", link: "/zh/guide/develop" },- ],- sidebar: {- "/zh/quickstart": [- {- text: "开始使用",- items: [- { text: "概览", link: "/zh/quickstart" },- { text: "Script", link: "/zh/quickstart/script" },- { text: "SVS 样式表", link: "/zh/quickstart/styles" },- { text: "媒体与生成", link: "/zh/quickstart/generation" },- { text: "时序与装配", link: "/zh/quickstart/timing" },- { text: "轨道", link: "/zh/quickstart/tracks" },- { text: "图片操作", link: "/zh/quickstart/images" },- { text: "Film 与渲染", link: "/zh/quickstart/composition" },- { text: "Studio", link: "/zh/quickstart/preview" },- { text: "Run Source 与 Build", link: "/zh/quickstart/run" },- ],- },- ],- "/zh/guide/": [- {- text: "开发指南",- items: [- { text: "概览", link: "/zh/guide/develop" },- { text: "Hypit Skill 架构", link: "/zh/guide/skill" },- { text: "包架构", link: "/zh/guide/packages" },- { text: "添加 Author 包", link: "/zh/guide/author-packages" },- { text: "添加 Provider", link: "/zh/guide/providers" },- { text: "Runtime", link: "/zh/guide/runtime" },- { text: "Studio Companion", link: "/zh/guide/studio-companion-adapter-architecture" },- { text: "Studio 时间谱系", link: "/zh/guide/studio-temporal-windows" },- { text: "测试", link: "/zh/guide/testing" },- { text: "代码规范", link: "/zh/guide/conventions" },- ],- },- ],- },- outline: { level: [2, 3] as [number, number], label: "本页目录" },- docFooter: { prev: "上一页", next: "下一页" },-};--export default defineConfig({- base,- lang: "en-US",- title: "Hypit",- description: "Write the story. Compile the video.",- appearance: true,- cleanUrls: true,- markdown: {- theme: {- light: "github-light",- dark: "github-dark",- },- languages: [svsLanguage as never],- languageAlias: {- svml: "xml",- svk: "xml",- },- codeTransformers: [svmlSelectionHighlighter()],- },- head: [- // Paints the selection tokens `svmlSelectionHighlighter` marks up inside every- // SVML, SVS and SVRun code block. It is the one rule the stock theme needs.- [- "style",- {},- ".svml-selection{--shiki-light:#8250DF !important;--shiki-dark:#D2A8FF !important;font-weight:600}",- ],- ],- vite: {- plugins: [- {- name: "section-root-redirect",- // The two section roots are static pages in public/, which the build copies- // into the output and the deploy serves directly. The dev server routes the- // same paths through VitePress, which has no page there, so it would answer- // with its 404. Redirect them here to keep dev and the deploy in agreement.- configureServer(server) {- server.middlewares.use((request, response, next) => {- const path = request.url?.split("?")[0];- const target =- path === base ? `${base}quickstart` : path === `${base}zh/` ? `${base}zh/quickstart` : null;- if (!target) return next();- response.writeHead(302, { Location: target });- response.end();- });- },- },- ],- },- locales: {- root: { label: "English", lang: "en-US", themeConfig: enTheme },- zh: { label: "简体中文", lang: "zh-CN", link: "/zh/", themeConfig: zhTheme },- },- themeConfig: enTheme,-});diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vuedeleted file mode 100644index 2c37f203..00000000--- a/docs/.vitepress/theme/Layout.vue+++ /dev/null@@ -1,12 +0,0 @@-<script setup lang="ts">-import DefaultTheme from "vitepress/theme";-import LocalePreference from "./components/LocalePreference.vue";--const DefaultLayout = DefaultTheme.Layout;-</script>--<template>- <DefaultLayout>- <template #layout-top><LocalePreference /></template>- </DefaultLayout>-</template>diff --git a/docs/.vitepress/theme/components/LocalePreference.vue b/docs/.vitepress/theme/components/LocalePreference.vuedeleted file mode 100644index 2f329b9e..00000000--- a/docs/.vitepress/theme/components/LocalePreference.vue+++ /dev/null@@ -1,41 +0,0 @@-<script setup lang="ts">-import { onBeforeUnmount, onMounted } from "vue";--const storageKey = "hypit-locale";--// The dev server serves the site under `/docs/`; the Pages deploy builds with-// VITEPRESS_BASE=/ and serves it at the domain root. Vite substitutes the right-// one at build time, so neither can be hard-coded here.-const base = import.meta.env.BASE_URL;-const zhRoot = `${base}zh`;--function localeFromPath(pathname: string) {- return pathname === zhRoot || pathname.startsWith(`${zhRoot}/`) ? "zh" : "en";-}--function rememberLocale(event: MouseEvent) {- const target = event.target as HTMLElement | null;- const link = target?.closest<HTMLAnchorElement>("a[href]");- if (!link) return;- const url = new URL(link.href, window.location.href);- if (!url.pathname.startsWith(base)) return;- try {- window.localStorage.setItem(storageKey, localeFromPath(url.pathname));- } catch {- // Storage can be unavailable in private or restricted browser contexts.- }-}--onMounted(() => {- try {- window.localStorage.setItem(storageKey, localeFromPath(window.location.pathname));- } catch {- // Storage can be unavailable in private or restricted browser contexts.- }- document.addEventListener("click", rememberLocale, true);-});--onBeforeUnmount(() => document.removeEventListener("click", rememberLocale, true));-</script>--<template></template>diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.tsdeleted file mode 100644index 6e75f89a..00000000--- a/docs/.vitepress/theme/index.ts+++ /dev/null@@ -1,9 +0,0 @@-import DefaultTheme from "vitepress/theme";-import type { Theme } from "vitepress";-import Layout from "./Layout.vue";-import "./style.css";--export default {- extends: DefaultTheme,- Layout,-} satisfies Theme;diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.cssdeleted file mode 100644index e3f3bbd3..00000000--- a/docs/.vitepress/theme/style.css+++ /dev/null@@ -1,145 +0,0 @@-/* Hypihub's documentation surface: warm paper, hairline rules and pink ink.- Keep this file limited to VitePress chrome and rendered Markdown so the- source documents remain framework-agnostic. */--:root {- --paper: #fff;- --paper-alt: #faf9f7;- --surface: #f4f3f0;- --ink: #1b1a18;- --muted: #6b6963;- --line: #d1cdc7;- --line-soft: #e5e2dd;- --accent: #de3b67;- --accent-hover: #c7325a;- --accent-soft: rgba(222, 59, 103, .12);- --vp-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;- --vp-font-family-mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;- --vp-c-brand-1: var(--accent);- --vp-c-brand-2: var(--accent-hover);- --vp-c-brand-3: #ad294d;- --vp-c-brand-soft: var(--accent-soft);- --vp-c-bg: var(--paper);- --vp-c-bg-alt: var(--paper-alt);- --vp-c-bg-elv: var(--paper);- --vp-c-bg-soft: var(--surface);- --vp-c-text-1: var(--ink);- --vp-c-text-2: var(--muted);- --vp-c-text-3: #8b8881;- --vp-c-divider: var(--line-soft);- --vp-c-gutter: var(--line-soft);- --vp-sidebar-bg-color: var(--paper);- --vp-nav-bg-color: rgba(255, 255, 255, .94);- --vp-code-block-bg: var(--paper-alt);- --vp-code-line-highlight-color: var(--accent-soft);- --vp-button-brand-bg: var(--accent);- --vp-button-brand-hover-bg: var(--accent-hover);- --vp-button-brand-active-bg: #ad294d;-}--.dark {- --paper: #141312;- --paper-alt: #1a1817;- --surface: #24211f;- --ink: #e9e5db;- --muted: rgba(233, 229, 219, .68);- --line: rgba(233, 229, 219, .2);- --line-soft: rgba(233, 229, 219, .11);- --accent: #f06b8d;- --accent-hover: #ff8eaa;- --accent-soft: rgba(240, 107, 141, .16);- --vp-c-brand-1: var(--accent);- --vp-c-brand-2: var(--accent-hover);- --vp-c-brand-3: #ffb3c5;- --vp-c-bg: var(--paper);- --vp-c-bg-alt: var(--paper-alt);- --vp-c-bg-elv: var(--paper-alt);- --vp-c-bg-soft: var(--surface);- --vp-c-text-1: var(--ink);- --vp-c-text-2: var(--muted);- --vp-c-text-3: rgba(233, 229, 219, .5);- --vp-c-divider: var(--line-soft);- --vp-c-gutter: var(--line-soft);- --vp-sidebar-bg-color: var(--paper-alt);- --vp-nav-bg-color: rgba(20, 19, 18, .94);- --vp-code-block-bg: var(--paper-alt);-}--html, body { background: var(--paper); color: var(--ink); }-body { font-size: 16px; line-height: 1.75; }--.VPNav { border-bottom: 1px solid var(--line-soft); background: var(--vp-nav-bg-color); backdrop-filter: blur(10px); }-.VPNavBar { border-bottom: 0; }-.VPNavBar .container { max-width: 1376px; }-.VPNavBarTitle { min-width: 150px; }-.VPNavBarTitle .title { color: var(--ink); font-weight: 700; letter-spacing: -.03em; }-.VPNavBarTitle .title > span { display: none; }-.VPNavBarTitle img { display: block; width: 66px !important; height: 20px !important; max-width: none !important; max-height: none !important; object-fit: contain; }-.VPNavBarMenuLink, .VPNavBarMenuGroup .text { color: var(--muted); font-size: 13px; font-weight: 600; }-.VPNavBarMenuLink:hover, .VPNavBarMenuLink.active, .VPNavBarMenuGroup:hover .text { color: var(--accent); }-.VPNavBarAppearance button, .VPNavBarMenuGroup .button { color: var(--muted); }-.VPNavBarAppearance button:hover, .VPNavBarMenuGroup .button:hover { color: var(--accent); }-.VPNavScreen { background: var(--paper); }--.VPSidebar {- top: 64px;- border-right: 1px solid var(--line-soft);- background: var(--paper);- padding: 24px 24px 40px max(32px, calc((100vw - 1440px) / 2 + 32px));-}-.VPSidebarItem .text { color: var(--muted); font-size: 14.5px; }-.VPSidebarItem.level-0 > .item > .text { color: var(--ink); font-size: 14px; font-weight: 600; }-.VPSidebarItem.is-link .link { padding: 7px 0; }-.VPSidebarItem.is-active > .item .link-text,-.VPSidebarItem.is-active > .item .text { color: var(--accent); }-.VPSidebarItem.is-active > .item::before { background: var(--accent); }--.VPContent { background: var(--paper); }-.VPDoc { padding: 40px 48px 96px; }-.VPDoc .content-container { width: min(688px, 100%); margin: 0 auto; }-.VPDocAside { padding-top: 56px; }-.VPDocAsideOutline .outline-title { color: var(--ink); font-size: 15px; font-weight: 600; }-.VPDocAsideOutline .outline-link { color: var(--muted); font-size: 14px; line-height: 30px; }-.VPDocAsideOutline .outline-link:hover, .VPDocAsideOutline .outline-link.active { color: var(--accent); }--.vp-doc { color: var(--ink); font-size: 16px; line-height: 1.75; }-.vp-doc h1, .vp-doc h2, .vp-doc h3, .vp-doc h4 { color: var(--ink); font-weight: 600; letter-spacing: -.025em; }-.vp-doc h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.2; letter-spacing: -.04em; }-.vp-doc h2 { margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 26px; line-height: 1.25; }-.vp-doc h3 { margin-top: 32px; font-size: 19px; line-height: 1.45; }-.vp-doc p { margin: 16px 0; }-.vp-doc a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }-.vp-doc a:hover { color: var(--accent-hover); }-.vp-doc strong { font-weight: 600; }-.vp-doc li + li { margin-top: 8px; }-.vp-doc blockquote { border-left: 2px solid var(--line); color: var(--muted); }-.vp-doc table { display: block; overflow-x: auto; border-collapse: collapse; }-.vp-doc th, .vp-doc td { border: 1px solid var(--line-soft); }-.vp-doc th { background: var(--surface); }-.vp-doc :not(pre) > code { border-radius: 5px; background: var(--surface); color: var(--accent); font-family: var(--vp-font-family-mono); }-.vp-doc div[class*="language-"] { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper-alt); }-.vp-doc div[class*="language-"] pre { margin: 0; padding: 22px 24px; background: var(--paper-alt) !important; font-size: 14px; line-height: 24px; }-.vp-doc .copy-code { border: 1px solid var(--line-soft); background: var(--surface); color: var(--muted); }-.vp-doc .copy-code:hover { color: var(--accent); }--.VPFooter { border-top: 1px solid var(--line-soft); background: var(--paper); }-.VPFooter .message, .VPFooter .copyright { color: var(--muted); }--@media (min-width: 1440px) {- .VPDoc { padding-inline: 112px; }- .VPDoc .content-container { margin-left: 0; }-}--@media (max-width: 959px) {- .VPSidebar { padding-left: 24px; }- .VPDoc { padding-inline: clamp(32px, 8vw, 96px); }- .VPDoc .content-container { margin: 0 auto; }-}--@media (max-width: 767px) {- .VPNavBarTitle { min-width: 0; }- .VPNavBarTitle img { width: 66px !important; height: 20px !important; }- .VPDoc { padding: 28px 24px 72px; }- .vp-doc h1 { font-size: 34px; }- .vp-doc h2 { margin-top: 40px; }-}diff --git a/docs/CNAME b/docs/CNAMEdeleted file mode 100644index 1028ec02..00000000--- a/docs/CNAME+++ /dev/null@@ -1 +0,0 @@-narratage.hypit.aidiff --git a/docs/public/CNAME b/docs/public/CNAMEdeleted file mode 100644index 1028ec02..00000000--- a/docs/public/CNAME+++ /dev/null@@ -1 +0,0 @@-narratage.hypit.aidiff --git a/docs/public/index.html b/docs/public/index.htmldeleted file mode 100644index cc647363..00000000--- a/docs/public/index.html+++ /dev/null@@ -1,39 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <meta name="robots" content="noindex" />- <title>Hypit documentation</title>- <link rel="canonical" href="quickstart" />- <!--- The site root is not a page. It sends a reader to the quickstart in the- language they last read, falling back to the browser's own preference.- `hypit-locale` is the key LocalePreference.vue writes on every doc page.-- Every path here is relative, so this file works both under the dev- server's /docs/ base and at the domain root the Pages deploy publishes.- -->- <script>- (function () {- var locale;- try {- locale = window.localStorage.getItem("hypit-locale");- } catch (error) {- // Storage can be unavailable in private or restricted browser contexts.- }- if (!locale) {- locale = (navigator.language || "").toLowerCase().indexOf("zh") === 0 ? "zh" : "en";- }- var target = locale === "zh" ? "zh/quickstart" : "quickstart";- location.replace(target + location.search + location.hash);- })();- </script>- </head>- <body>- <noscript>- <p><a href="quickstart">Quickstart</a></p>- <p><a href="zh/quickstart">快速开始</a></p>- </noscript>- </body>-</html>