From 3690714a325c0c3be62d59de338964dbf54d53d5 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 9 Mar 2023 14:49:53 +0800 Subject: [PATCH] update domain + redirect --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 ++-- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- README.md | 2 +- docs/guide/what-is-vitepress.md | 2 +- docs/public/_redirects | 1 + docs/reference/default-theme-team-page.md | 2 +- src/client/app/devtools.ts | 2 +- template/.vitepress/config.js | 4 ++-- template/.vitepress/theme/Layout.vue | 2 +- template/.vitepress/theme/index.js | 4 ++-- template/api-examples.md | 2 +- template/index.md | 2 +- template/markdown-examples.md | 2 +- 13 files changed, 16 insertions(+), 15 deletions(-) create mode 100644 docs/public/_redirects diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 2fdce6f8..a698b98a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -6,7 +6,7 @@ body: attributes: value: | "Thanks for taking the time to fill out this bug report! - VitePress is still WIP, and it is not compatible with VuePress. + VitePress is still WIP, and it is not compatible with VuePress. Please do not open issue about default theme missing features or something doesn't work like VuePress." - type: textarea id: bug-description @@ -54,7 +54,7 @@ body: options: - label: Follow our [Code of Conduct](https://vuejs.org/about/coc.html) required: true - - label: Read the [docs](https://vitepress.vuejs.org). + - label: Read the [docs](https://vitepress.dev). required: true - label: Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 0750eb76..02f77543 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -37,7 +37,7 @@ body: options: - label: Follow our [Code of Conduct](https://vuejs.org/about/coc.html) required: true - - label: Read the [docs](https://vitepress.vuejs.org). + - label: Read the [docs](https://vitepress.dev). required: true - label: Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md). required: true diff --git a/README.md b/README.md index bf214cd9..fbd334c2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Currently, it's in the `alpha` stage. It is already suitable for out-of-the-box ## Documentation -To check out docs, visit [vitepress.vuejs.org](https://vitepress.vuejs.org). +To check out docs, visit [vitepress.dev](https://vitepress.dev). ## Changelog diff --git a/docs/guide/what-is-vitepress.md b/docs/guide/what-is-vitepress.md index ec92b375..df912861 100644 --- a/docs/guide/what-is-vitepress.md +++ b/docs/guide/what-is-vitepress.md @@ -38,7 +38,7 @@ Unlike many traditional SSGs, a website generated by VitePress is in fact a [Sin - **Fast Initial Load** - The initial visit to any page will be served the static, pre-rendered HTML for blazing fast loading speed and optimal SEO. The page then loads a JavaScript bundle that turns the page into a Vue SPA ("hydration"). The hydration process is extremely fast: on [PageSpeed Insights](https://pagespeed.web.dev/report?url=https%3A%2F%2Fvitepress.vuejs.org%2F), typical VitePress sites achieve near-perfect performance scores even on low-end mobile devices with a slow network. + The initial visit to any page will be served the static, pre-rendered HTML for blazing fast loading speed and optimal SEO. The page then loads a JavaScript bundle that turns the page into a Vue SPA ("hydration"). The hydration process is extremely fast: on [PageSpeed Insights](https://pagespeed.web.dev/report?url=https%3A%2F%2Fvitepress.dev%2F), typical VitePress sites achieve near-perfect performance scores even on low-end mobile devices with a slow network. - **Fast Post-load Navigation** diff --git a/docs/public/_redirects b/docs/public/_redirects new file mode 100644 index 00000000..50bd47b0 --- /dev/null +++ b/docs/public/_redirects @@ -0,0 +1 @@ +https://vitepress.dev/* https://vitepress.dev/:splat 301! diff --git a/docs/reference/default-theme-team-page.md b/docs/reference/default-theme-team-page.md index 576a56c5..f323dcdc 100644 --- a/docs/reference/default-theme-team-page.md +++ b/docs/reference/default-theme-team-page.md @@ -207,7 +207,7 @@ interface TeamMember { // Social links. e.g. GitHub, Twitter, etc. You may pass in // the Social Links object here. - // See: https://vitepress.vuejs.org/reference/default-theme-config.html#sociallinks + // See: https://vitepress.dev/reference/default-theme-config.html#sociallinks links?: SocialLink[] // URL for the sponsor page for the member. diff --git a/src/client/app/devtools.ts b/src/client/app/devtools.ts index 64f6d0f3..2a71e259 100644 --- a/src/client/app/devtools.ts +++ b/src/client/app/devtools.ts @@ -17,7 +17,7 @@ export const setupDevtools = ( id: 'org.vuejs.vitepress', label: 'VitePress', packageName: 'vitepress', - homepage: 'https://vitepress.vuejs.org', + homepage: 'https://vitepress.dev', componentStateTypes: [COMPONENT_STATE_TYPE] }, (api) => { diff --git a/template/.vitepress/config.js b/template/.vitepress/config.js index 7c927cf5..cf26cc23 100644 --- a/template/.vitepress/config.js +++ b/template/.vitepress/config.js @@ -1,11 +1,11 @@ import { defineConfig } from 'vitepress' -// https://vitepress.vuejs.org/reference/site-config +// https://vitepress.dev/reference/site-config export default defineConfig({ title: <%= title %>, description: <%= description %><% if (defaultTheme) { %>, themeConfig: { - // https://vitepress.vuejs.org/reference/default-theme-config + // https://vitepress.dev/reference/default-theme-config nav: [ { text: 'Home', link: '/' }, { text: 'Examples', link: '/markdown-examples' } diff --git a/template/.vitepress/theme/Layout.vue b/template/.vitepress/theme/Layout.vue index 637d031c..5a617971 100644 --- a/template/.vitepress/theme/Layout.vue +++ b/template/.vitepress/theme/Layout.vue @@ -1,7 +1,7 @@ diff --git a/template/.vitepress/theme/index.js b/template/.vitepress/theme/index.js index 65fc7bfc..2e1028af 100644 --- a/template/.vitepress/theme/index.js +++ b/template/.vitepress/theme/index.js @@ -1,4 +1,4 @@ -// https://vitepress.vuejs.org/guide/custom-theme +// https://vitepress.dev/guide/custom-theme <% if (!defaultTheme) { %>import Layout from './Layout.vue' import './style.css' @@ -16,7 +16,7 @@ export default { ...Theme, Layout: () => { return h(Theme.Layout, null, { - // https://vitepress.vuejs.org/guide/extending-default-theme#layout-slots + // https://vitepress.dev/guide/extending-default-theme#layout-slots }) }, enhanceApp({ app, router, siteData }) { diff --git a/template/api-examples.md b/template/api-examples.md index 0f6ab586..67f80328 100644 --- a/template/api-examples.md +++ b/template/api-examples.md @@ -52,4 +52,4 @@ const { site, theme, page, frontmatter } = useData() ## More -Check out the documentation for the [full list of runtime APIs](https://vitepress.vuejs.org/reference/runtime-api#usedata). +Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). diff --git a/template/index.md b/template/index.md index 5698e08b..fc4fd147 100644 --- a/template/index.md +++ b/template/index.md @@ -1,5 +1,5 @@ <% if (defaultTheme) { %>--- -# https://vitepress.vuejs.org/reference/default-theme-home-page +# https://vitepress.dev/reference/default-theme-home-page layout: home hero: diff --git a/template/markdown-examples.md b/template/markdown-examples.md index cc547eea..8e55eb8a 100644 --- a/template/markdown-examples.md +++ b/template/markdown-examples.md @@ -82,4 +82,4 @@ This is a details block. ## More -Check out the documentation for the [full list of markdown extensions](https://vitepress.vuejs.org/guide/markdown). +Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).