From b694900e69e50228f0506e3a21e0af1636b5b8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=92=E8=A8=80?= Date: Fri, 28 Jun 2024 15:46:16 +0800 Subject: [PATCH] docs: separate directory for en [lunaria-ignore] (#3996) Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- docs/.vitepress/config/shared.ts | 4 ++++ docs/{ => en}/guide/asset-handling.md | 0 docs/{ => en}/guide/cms.md | 0 docs/{ => en}/guide/custom-theme.md | 0 docs/{ => en}/guide/data-loading.md | 0 docs/{ => en}/guide/deploy.md | 0 docs/{ => en}/guide/extending-default-theme.md | 0 docs/{ => en}/guide/frontmatter.md | 0 docs/{ => en}/guide/getting-started.md | 0 docs/{ => en}/guide/i18n.md | 0 docs/{ => en}/guide/markdown.md | 0 docs/{ => en}/guide/migration-from-vitepress-0.md | 0 docs/{ => en}/guide/migration-from-vuepress.md | 0 docs/{ => en}/guide/mpa-mode.md | 0 docs/{ => en}/guide/routing.md | 0 docs/{ => en}/guide/sitemap-generation.md | 0 docs/{ => en}/guide/ssr-compat.md | 0 docs/{ => en}/guide/using-vue.md | 4 ++-- docs/{ => en}/guide/what-is-vitepress.md | 0 docs/{ => en}/index.md | 0 docs/{ => en}/reference/cli.md | 0 docs/{ => en}/reference/default-theme-badge.md | 0 docs/{ => en}/reference/default-theme-carbon-ads.md | 0 docs/{ => en}/reference/default-theme-config.md | 0 docs/{ => en}/reference/default-theme-edit-link.md | 0 docs/{ => en}/reference/default-theme-footer.md | 0 docs/{ => en}/reference/default-theme-home-page.md | 0 docs/{ => en}/reference/default-theme-last-updated.md | 0 docs/{ => en}/reference/default-theme-layout.md | 0 docs/{ => en}/reference/default-theme-nav.md | 0 docs/{ => en}/reference/default-theme-prev-next-links.md | 0 docs/{ => en}/reference/default-theme-search.md | 0 docs/{ => en}/reference/default-theme-sidebar.md | 0 docs/{ => en}/reference/default-theme-team-page.md | 0 docs/{ => en}/reference/frontmatter-config.md | 0 docs/{ => en}/reference/runtime-api.md | 0 docs/{ => en}/reference/site-config.md | 0 37 files changed, 6 insertions(+), 2 deletions(-) rename docs/{ => en}/guide/asset-handling.md (100%) rename docs/{ => en}/guide/cms.md (100%) rename docs/{ => en}/guide/custom-theme.md (100%) rename docs/{ => en}/guide/data-loading.md (100%) rename docs/{ => en}/guide/deploy.md (100%) rename docs/{ => en}/guide/extending-default-theme.md (100%) rename docs/{ => en}/guide/frontmatter.md (100%) rename docs/{ => en}/guide/getting-started.md (100%) rename docs/{ => en}/guide/i18n.md (100%) rename docs/{ => en}/guide/markdown.md (100%) rename docs/{ => en}/guide/migration-from-vitepress-0.md (100%) rename docs/{ => en}/guide/migration-from-vuepress.md (100%) rename docs/{ => en}/guide/mpa-mode.md (100%) rename docs/{ => en}/guide/routing.md (100%) rename docs/{ => en}/guide/sitemap-generation.md (100%) rename docs/{ => en}/guide/ssr-compat.md (100%) rename docs/{ => en}/guide/using-vue.md (98%) rename docs/{ => en}/guide/what-is-vitepress.md (100%) rename docs/{ => en}/index.md (100%) rename docs/{ => en}/reference/cli.md (100%) rename docs/{ => en}/reference/default-theme-badge.md (100%) rename docs/{ => en}/reference/default-theme-carbon-ads.md (100%) rename docs/{ => en}/reference/default-theme-config.md (100%) rename docs/{ => en}/reference/default-theme-edit-link.md (100%) rename docs/{ => en}/reference/default-theme-footer.md (100%) rename docs/{ => en}/reference/default-theme-home-page.md (100%) rename docs/{ => en}/reference/default-theme-last-updated.md (100%) rename docs/{ => en}/reference/default-theme-layout.md (100%) rename docs/{ => en}/reference/default-theme-nav.md (100%) rename docs/{ => en}/reference/default-theme-prev-next-links.md (100%) rename docs/{ => en}/reference/default-theme-search.md (100%) rename docs/{ => en}/reference/default-theme-sidebar.md (100%) rename docs/{ => en}/reference/default-theme-team-page.md (100%) rename docs/{ => en}/reference/frontmatter-config.md (100%) rename docs/{ => en}/reference/runtime-api.md (100%) rename docs/{ => en}/reference/site-config.md (100%) diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index 23a3af8a..e6f48ad0 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -7,6 +7,10 @@ import { search as esSearch } from './es' export const shared = defineConfig({ title: 'VitePress', + rewrites: { + 'en/:rest*': ':rest*' + }, + lastUpdated: true, cleanUrls: true, metaChunk: true, diff --git a/docs/guide/asset-handling.md b/docs/en/guide/asset-handling.md similarity index 100% rename from docs/guide/asset-handling.md rename to docs/en/guide/asset-handling.md diff --git a/docs/guide/cms.md b/docs/en/guide/cms.md similarity index 100% rename from docs/guide/cms.md rename to docs/en/guide/cms.md diff --git a/docs/guide/custom-theme.md b/docs/en/guide/custom-theme.md similarity index 100% rename from docs/guide/custom-theme.md rename to docs/en/guide/custom-theme.md diff --git a/docs/guide/data-loading.md b/docs/en/guide/data-loading.md similarity index 100% rename from docs/guide/data-loading.md rename to docs/en/guide/data-loading.md diff --git a/docs/guide/deploy.md b/docs/en/guide/deploy.md similarity index 100% rename from docs/guide/deploy.md rename to docs/en/guide/deploy.md diff --git a/docs/guide/extending-default-theme.md b/docs/en/guide/extending-default-theme.md similarity index 100% rename from docs/guide/extending-default-theme.md rename to docs/en/guide/extending-default-theme.md diff --git a/docs/guide/frontmatter.md b/docs/en/guide/frontmatter.md similarity index 100% rename from docs/guide/frontmatter.md rename to docs/en/guide/frontmatter.md diff --git a/docs/guide/getting-started.md b/docs/en/guide/getting-started.md similarity index 100% rename from docs/guide/getting-started.md rename to docs/en/guide/getting-started.md diff --git a/docs/guide/i18n.md b/docs/en/guide/i18n.md similarity index 100% rename from docs/guide/i18n.md rename to docs/en/guide/i18n.md diff --git a/docs/guide/markdown.md b/docs/en/guide/markdown.md similarity index 100% rename from docs/guide/markdown.md rename to docs/en/guide/markdown.md diff --git a/docs/guide/migration-from-vitepress-0.md b/docs/en/guide/migration-from-vitepress-0.md similarity index 100% rename from docs/guide/migration-from-vitepress-0.md rename to docs/en/guide/migration-from-vitepress-0.md diff --git a/docs/guide/migration-from-vuepress.md b/docs/en/guide/migration-from-vuepress.md similarity index 100% rename from docs/guide/migration-from-vuepress.md rename to docs/en/guide/migration-from-vuepress.md diff --git a/docs/guide/mpa-mode.md b/docs/en/guide/mpa-mode.md similarity index 100% rename from docs/guide/mpa-mode.md rename to docs/en/guide/mpa-mode.md diff --git a/docs/guide/routing.md b/docs/en/guide/routing.md similarity index 100% rename from docs/guide/routing.md rename to docs/en/guide/routing.md diff --git a/docs/guide/sitemap-generation.md b/docs/en/guide/sitemap-generation.md similarity index 100% rename from docs/guide/sitemap-generation.md rename to docs/en/guide/sitemap-generation.md diff --git a/docs/guide/ssr-compat.md b/docs/en/guide/ssr-compat.md similarity index 100% rename from docs/guide/ssr-compat.md rename to docs/en/guide/ssr-compat.md diff --git a/docs/guide/using-vue.md b/docs/en/guide/using-vue.md similarity index 98% rename from docs/guide/using-vue.md rename to docs/en/guide/using-vue.md index 1cbb2d59..70d18bce 100644 --- a/docs/guide/using-vue.md +++ b/docs/en/guide/using-vue.md @@ -243,8 +243,8 @@ VitePress currently has SSG support for teleports to body only. For other target ```