valaxy 0.15.9 → 0.15.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/valaxy.cjs +1 -1
- package/bin/valaxy.mjs +1 -1
- package/client/.vite-ssg-temp/tbbjcbuyn2/CNAME +1 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/PressAlgoliaSearch-2943719f.js +227 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/ValaxyMain-26e77dc6.js +752 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-080f97f3.js +31 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-5084a1b0.js +42 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/addon-f5fa83e1.js +172 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/best-pratice-0231a551.js +1105 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/client-496183a0.js +286 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/community-1b33ec3b.js +627 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/components-7000ddd3.js +2460 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/deploy-59948619.js +1071 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/docs-26abd7f8.js +490 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-975f8f72.js +1851 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-acd7107b.js +1444 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/faq-62ed7bfd.js +321 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/features-8acbd53d.js +2625 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-832227a9.js +244 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-9077df38.js +370 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/getting-started-52c30f03.js +3684 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hexo-7311896e.js +969 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hooks-67450cb3.js +517 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-4cd1bb86.js +4159 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-e1165bc4.js +676 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-002f83fb.js +768 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-3dec2b83.js +527 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-43565e48.js +424 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-5f07432e.js +563 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6024f010.js +3294 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6f0d6ec7.js +202 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-78c510e0.js +549 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-839c338e.js +4161 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-d39a48fd.js +1170 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-e633613c.js +1564 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/katex-32f21e80.js +6119 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/logo-bd69f816.js +180 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/markdown-050f3269.js +5895 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/news-ecba2d88.js +278 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/page-d48f3caa.js +752 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/post-ac89eaf5.js +1605 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/route-block-c0a8bdd8.js +4 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/schema-org-f60b7dac.js +477 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/site-6caa6511.js +286 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/style-f415f7fa.css +3742 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/styles-cdaadad2.js +548 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/templates-c97584f2.js +574 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/theme-192f77ef.js +172 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-3c036a47.js +669 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-851c0307.js +619 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vite-vue-f91b9792.js +830 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vscode-bc411e64.js +350 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/why-c98bbe8e.js +1131 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6a43d4d0.js +4963 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6bc2b77c.js +675 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/favicon.svg +33 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/main.mjs +6239 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/valaxy-logo.png +0 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/CNAME +1 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/PressAlgoliaSearch-2943719f.js +227 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/ValaxyMain-26e77dc6.js +752 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-080f97f3.js +31 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-5084a1b0.js +42 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/addon-f5fa83e1.js +172 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/best-pratice-0231a551.js +1105 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/client-496183a0.js +286 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/community-1b33ec3b.js +627 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/components-7000ddd3.js +2460 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/deploy-59948619.js +1071 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/docs-26abd7f8.js +490 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-975f8f72.js +1851 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-acd7107b.js +1444 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/faq-62ed7bfd.js +321 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/features-8acbd53d.js +2625 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-832227a9.js +244 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-9077df38.js +370 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/getting-started-bb7fc0a8.js +3684 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hexo-7311896e.js +969 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hooks-67450cb3.js +517 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-4cd1bb86.js +4159 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-e1165bc4.js +676 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-002f83fb.js +768 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-3dec2b83.js +527 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-43565e48.js +424 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-5f07432e.js +563 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6024f010.js +3294 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6f0d6ec7.js +202 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-78c510e0.js +549 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-839c338e.js +4161 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-d39a48fd.js +1170 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-e633613c.js +1564 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/katex-32f21e80.js +6119 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/logo-bd69f816.js +180 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/markdown-abdb17ca.js +5895 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/news-ecba2d88.js +278 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/page-d48f3caa.js +752 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/post-0ed0dfec.js +1605 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/route-block-c0a8bdd8.js +4 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/schema-org-f60b7dac.js +477 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/site-6caa6511.js +286 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/style-f415f7fa.css +3742 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/styles-cdaadad2.js +548 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/templates-c97584f2.js +574 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/theme-192f77ef.js +172 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-3c036a47.js +669 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-851c0307.js +619 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vite-vue-f91b9792.js +830 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vscode-bc411e64.js +350 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/why-c98bbe8e.js +1131 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6a43d4d0.js +4963 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6bc2b77c.js +675 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/favicon.svg +33 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/main.mjs +6239 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/valaxy-logo.png +0 -0
- package/client/App.vue +1 -1
- package/client/components/AppLink.vue +2 -2
- package/client/components/ValaxyMd.vue +1 -1
- package/client/components/ValaxyOverlay.vue +2 -2
- package/client/components/ValaxyPagination.vue +6 -6
- package/client/components/debug/ValaxyDevtools.vue +6 -0
- package/client/composables/dark.ts +39 -0
- package/client/layouts/404.vue +1 -1
- package/client/layouts/layout.vue +2 -2
- package/client/locales/zh-CN.yml +1 -1
- package/client/pages/[...all].vue +2 -0
- package/client/styles/common/transition.scss +1 -0
- package/client/styles/common/view-transition.css +21 -0
- package/dist/chunk-3EJGKTUH.mjs +130 -0
- package/dist/chunk-RDNVTVQ5.cjs +129 -0
- package/dist/{config-29a16f62.d.ts → config-e5704a2c.d.ts} +223 -1
- package/dist/node/cli/index.cjs +1 -0
- package/dist/node/cli/index.mjs +2 -0
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +14 -2
- package/dist/node/index.d.ts +14 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.cts +3 -220
- package/dist/types/index.d.ts +3 -220
- package/dist/types/index.mjs +1 -1
- package/package.json +19 -18
- package/types/config.ts +6 -0
- package/LICENSE +0 -21
- package/dist/chunk-57ETS265.mjs +0 -130
- package/dist/chunk-RAU3RNGI.cjs +0 -129
- package/dist/node/cli.cjs +0 -1
- package/dist/node/cli.mjs +0 -2
- /package/dist/node/{cli.d.cts → cli/index.d.cts} +0 -0
- /package/dist/node/{cli.d.ts → cli/index.d.ts} +0 -0
|
@@ -0,0 +1,969 @@
|
|
|
1
|
+
import { _ as _export_sfc, a as _sfc_main$1 } from "../main.mjs";
|
|
2
|
+
import { _ as __unplugin_components_0 } from "./ValaxyMain-26e77dc6.js";
|
|
3
|
+
import { provide, mergeProps, withCtx, createTextVNode, createVNode, renderSlot, useSSRContext } from "vue";
|
|
4
|
+
import { useRoute } from "vue-router";
|
|
5
|
+
import { ssrRenderComponent, ssrRenderSlot } from "vue/server-renderer";
|
|
6
|
+
import "vite-ssg";
|
|
7
|
+
import "pinia";
|
|
8
|
+
import "@vueuse/core";
|
|
9
|
+
import "dayjs";
|
|
10
|
+
import "dayjs/plugin/utc.js";
|
|
11
|
+
import "dayjs/plugin/timezone.js";
|
|
12
|
+
import "dayjs/locale/zh-cn.js";
|
|
13
|
+
import "body-scroll-lock";
|
|
14
|
+
import "@intlify/shared";
|
|
15
|
+
import "@intlify/core-base";
|
|
16
|
+
import "@vue/devtools-api";
|
|
17
|
+
import "@unhead/schema-org";
|
|
18
|
+
import "@unhead/vue";
|
|
19
|
+
import "dayjs/plugin/relativeTime.js";
|
|
20
|
+
import "defu";
|
|
21
|
+
import "nprogress";
|
|
22
|
+
import "medium-zoom";
|
|
23
|
+
import "vanilla-lazyload";
|
|
24
|
+
const __pageData = JSON.parse('{"title":"Migrate from Hexo to Valaxy","description":"","frontmatter":{"title_zh-CN":"从 Hexo 迁移至 Valaxy","title":"Migrate from Hexo to Valaxy","categories":["migration"],"end":true,"top":9},"headers":[{"level":2,"title":"迁移步骤","slug":"迁移步骤","link":"#迁移步骤","children":[]},{"level":2,"title":"Migration Steps","slug":"migration-steps","link":"#migration-steps","children":[{"level":3,"title":"迁移内容","slug":"迁移内容","link":"#迁移内容","children":[]},{"level":3,"title":"Migrate Contents","slug":"migrate-contents","link":"#migrate-contents","children":[]},{"level":3,"title":"迁移配置","slug":"迁移配置","link":"#迁移配置","children":[]},{"level":3,"title":"Migrate Configurations","slug":"migrate-configurations","link":"#migrate-configurations","children":[]}]},{"level":2,"title":"示例","slug":"示例","link":"#示例","children":[]},{"level":2,"title":"Example","slug":"example","link":"#example","children":[]}],"relativePath":"pages/migration/hexo.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\migration\\\\hexo.md","lastUpdated":1698506898000}');
|
|
25
|
+
const data = JSON.parse('{"title":"Migrate from Hexo to Valaxy","description":"","frontmatter":{"title_zh-CN":"从 Hexo 迁移至 Valaxy","title":"Migrate from Hexo to Valaxy","categories":["migration"],"end":true,"top":9},"headers":[{"level":2,"title":"迁移步骤","slug":"迁移步骤","link":"#迁移步骤","children":[]},{"level":2,"title":"Migration Steps","slug":"migration-steps","link":"#migration-steps","children":[{"level":3,"title":"迁移内容","slug":"迁移内容","link":"#迁移内容","children":[]},{"level":3,"title":"Migrate Contents","slug":"migrate-contents","link":"#migrate-contents","children":[]},{"level":3,"title":"迁移配置","slug":"迁移配置","link":"#迁移配置","children":[]},{"level":3,"title":"Migrate Configurations","slug":"migrate-configurations","link":"#migrate-configurations","children":[]}]},{"level":2,"title":"示例","slug":"示例","link":"#示例","children":[]},{"level":2,"title":"Example","slug":"example","link":"#example","children":[]}],"relativePath":"pages/migration/hexo.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\migration\\\\hexo.md","lastUpdated":1698506898000}');
|
|
26
|
+
const _sfc_main = {
|
|
27
|
+
name: "pages/migration/hexo.md",
|
|
28
|
+
data() {
|
|
29
|
+
return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter };
|
|
30
|
+
},
|
|
31
|
+
setup() {
|
|
32
|
+
const route = useRoute();
|
|
33
|
+
route.meta.frontmatter = Object.assign(route.meta.frontmatter, data.frontmatter);
|
|
34
|
+
provide("pageData", data);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
38
|
+
const _component_ValaxyMain = __unplugin_components_0;
|
|
39
|
+
const _component_AppLink = _sfc_main$1;
|
|
40
|
+
_push(ssrRenderComponent(_component_ValaxyMain, mergeProps({
|
|
41
|
+
frontmatter: $data.frontmatter,
|
|
42
|
+
data: $data.data
|
|
43
|
+
}, _attrs), {
|
|
44
|
+
"main-content-md": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
45
|
+
if (_push2) {
|
|
46
|
+
_push2(`<h2 lang="zh-CN" id="迁移步骤" tabindex="-1"${_scopeId}>迁移步骤 `);
|
|
47
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
48
|
+
class: "header-anchor",
|
|
49
|
+
href: "#迁移步骤",
|
|
50
|
+
"aria-label": 'Permalink to "迁移步骤 {lang="zh-CN"}"'
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
53
|
+
if (_push3) {
|
|
54
|
+
_push3(``);
|
|
55
|
+
} else {
|
|
56
|
+
return [
|
|
57
|
+
createTextVNode("")
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
_: 1
|
|
62
|
+
/* STABLE */
|
|
63
|
+
}, _parent2, _scopeId));
|
|
64
|
+
_push2(`</h2><h2 lang="en" id="migration-steps" tabindex="-1"${_scopeId}>Migration Steps `);
|
|
65
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
66
|
+
class: "header-anchor",
|
|
67
|
+
href: "#migration-steps",
|
|
68
|
+
"aria-label": 'Permalink to "Migration Steps {lang="en"}"'
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
71
|
+
if (_push3) {
|
|
72
|
+
_push3(``);
|
|
73
|
+
} else {
|
|
74
|
+
return [
|
|
75
|
+
createTextVNode("")
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, _parent2, _scopeId));
|
|
82
|
+
_push2(`</h2><h3 lang="zh-CN" id="迁移内容" tabindex="-1"${_scopeId}>迁移内容 `);
|
|
83
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
84
|
+
class: "header-anchor",
|
|
85
|
+
href: "#迁移内容",
|
|
86
|
+
"aria-label": 'Permalink to "迁移内容 {lang="zh-CN"}"'
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
89
|
+
if (_push3) {
|
|
90
|
+
_push3(``);
|
|
91
|
+
} else {
|
|
92
|
+
return [
|
|
93
|
+
createTextVNode("")
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
_: 1
|
|
98
|
+
/* STABLE */
|
|
99
|
+
}, _parent2, _scopeId));
|
|
100
|
+
_push2(`</h3><h3 lang="zh-CN" id="migrate-contents" tabindex="-1"${_scopeId}>Migrate Contents `);
|
|
101
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
102
|
+
class: "header-anchor",
|
|
103
|
+
href: "#migrate-contents",
|
|
104
|
+
"aria-label": 'Permalink to "Migrate Contents {lang="zh-CN"}"'
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
107
|
+
if (_push3) {
|
|
108
|
+
_push3(``);
|
|
109
|
+
} else {
|
|
110
|
+
return [
|
|
111
|
+
createTextVNode("")
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
_: 1
|
|
116
|
+
/* STABLE */
|
|
117
|
+
}, _parent2, _scopeId));
|
|
118
|
+
_push2(`</h3><div lang="zh-CN"${_scopeId}><p${_scopeId}>Hexo 博客目录与 Valaxy 博客目录对应关系如下,将相关内容复制至对应文件夹即可。</p><blockquote${_scopeId}><p${_scopeId}>譬如<strong${_scopeId}>迁移文章</strong>,即将 Hexo <code${_scopeId}>source/_posts</code> 目录下内容复制至 Valaxy <code${_scopeId}>pages/posts</code> 目录下。</p></blockquote><table${_scopeId}><thead${_scopeId}><tr${_scopeId}><th${_scopeId}>用途</th><th${_scopeId}>Hexo</th><th${_scopeId}>Valaxy</th></tr></thead><tbody${_scopeId}><tr${_scopeId}><td${_scopeId}>文章(Markdown 文件)</td><td${_scopeId}><code${_scopeId}>source/_posts</code></td><td${_scopeId}><code${_scopeId}>pages/posts</code></td></tr><tr${_scopeId}><td${_scopeId}>页面(Markdown / Html)</td><td${_scopeId}><code${_scopeId}>source</code></td><td${_scopeId}><code${_scopeId}>pages</code></td></tr><tr${_scopeId}><td${_scopeId}>静态资源(<code${_scopeId}>*.js</code> / <code${_scopeId}>*.css</code> / <code${_scopeId}>CNAME</code> etc.)</td><td${_scopeId}><code${_scopeId}>source</code></td><td${_scopeId}><code${_scopeId}>public</code></td></tr></tbody></table></div><div lang="en"${_scopeId}><p${_scopeId}>The relationship between Hexo blog directory and Valaxy blog directory is shown in the table below. Just copy the relevant contents to the corresponding folder.</p><blockquote${_scopeId}><p${_scopeId}>For example: <strong${_scopeId}>To migrate articles</strong>, just copy files from Hexo's <code${_scopeId}>source/_posts</code> to Valaxy's <code${_scopeId}>pages/posts</code> directory.</p></blockquote><table${_scopeId}><thead${_scopeId}><tr${_scopeId}><th${_scopeId}>Contents</th><th${_scopeId}>Hexo</th><th${_scopeId}>Valaxy</th></tr></thead><tbody${_scopeId}><tr${_scopeId}><td${_scopeId}>Posts (Markdown files)</td><td${_scopeId}><code${_scopeId}>source/_posts</code></td><td${_scopeId}><code${_scopeId}>pages/posts</code></td></tr><tr${_scopeId}><td${_scopeId}>Pages (Markdown / Html files)</td><td${_scopeId}><code${_scopeId}>source</code></td><td${_scopeId}><code${_scopeId}>pages</code></td></tr><tr${_scopeId}><td${_scopeId}>Static assets (<code${_scopeId}>*.js</code> / <code${_scopeId}>*.css</code> / <code${_scopeId}>CNAME</code> etc.)</td><td${_scopeId}><code${_scopeId}>source</code></td><td${_scopeId}><code${_scopeId}>public</code></td></tr></tbody></table></div><h3 lang="zh-CN" id="迁移配置" tabindex="-1"${_scopeId}>迁移配置 `);
|
|
119
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
120
|
+
class: "header-anchor",
|
|
121
|
+
href: "#迁移配置",
|
|
122
|
+
"aria-label": 'Permalink to "迁移配置 {lang="zh-CN"}"'
|
|
123
|
+
}, {
|
|
124
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
125
|
+
if (_push3) {
|
|
126
|
+
_push3(``);
|
|
127
|
+
} else {
|
|
128
|
+
return [
|
|
129
|
+
createTextVNode("")
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
}, _parent2, _scopeId));
|
|
136
|
+
_push2(`</h3><h3 lang="en" id="migrate-configurations" tabindex="-1"${_scopeId}>Migrate Configurations `);
|
|
137
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
138
|
+
class: "header-anchor",
|
|
139
|
+
href: "#migrate-configurations",
|
|
140
|
+
"aria-label": 'Permalink to "Migrate Configurations {lang="en"}"'
|
|
141
|
+
}, {
|
|
142
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
143
|
+
if (_push3) {
|
|
144
|
+
_push3(``);
|
|
145
|
+
} else {
|
|
146
|
+
return [
|
|
147
|
+
createTextVNode("")
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
_: 1
|
|
152
|
+
/* STABLE */
|
|
153
|
+
}, _parent2, _scopeId));
|
|
154
|
+
_push2(`</h3><div lang="zh-CN"${_scopeId}><p${_scopeId}>参考 `);
|
|
155
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/config/" }, {
|
|
156
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
157
|
+
if (_push3) {
|
|
158
|
+
_push3(`Valaxy 配置文档`);
|
|
159
|
+
} else {
|
|
160
|
+
return [
|
|
161
|
+
createTextVNode("Valaxy 配置文档")
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
}),
|
|
165
|
+
_: 1
|
|
166
|
+
/* STABLE */
|
|
167
|
+
}, _parent2, _scopeId));
|
|
168
|
+
_push2(` 将 Hexo <code${_scopeId}>_config.yml</code> 配置文件中的内容,迁移至 <code${_scopeId}>valaxy.config.ts</code> 文件中。</p><blockquote${_scopeId}><p${_scopeId}>配置示例:`);
|
|
169
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
170
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/demo/yun/valaxy.config.ts",
|
|
171
|
+
target: "_blank",
|
|
172
|
+
rel: "noreferrer"
|
|
173
|
+
}, {
|
|
174
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
175
|
+
if (_push3) {
|
|
176
|
+
_push3(`demo/yun/valaxy.config.ts`);
|
|
177
|
+
} else {
|
|
178
|
+
return [
|
|
179
|
+
createTextVNode("demo/yun/valaxy.config.ts")
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
}),
|
|
183
|
+
_: 1
|
|
184
|
+
/* STABLE */
|
|
185
|
+
}, _parent2, _scopeId));
|
|
186
|
+
_push2(`、`);
|
|
187
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
188
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/blob/valaxy/valaxy.config.ts",
|
|
189
|
+
target: "_blank",
|
|
190
|
+
rel: "noreferrer"
|
|
191
|
+
}, {
|
|
192
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
193
|
+
if (_push3) {
|
|
194
|
+
_push3(`yunyoujun.github.io/valaxy.config.ts`);
|
|
195
|
+
} else {
|
|
196
|
+
return [
|
|
197
|
+
createTextVNode("yunyoujun.github.io/valaxy.config.ts")
|
|
198
|
+
];
|
|
199
|
+
}
|
|
200
|
+
}),
|
|
201
|
+
_: 1
|
|
202
|
+
/* STABLE */
|
|
203
|
+
}, _parent2, _scopeId));
|
|
204
|
+
_push2(`<br${_scopeId}><code${_scopeId}>valaxy.config.ts</code> 提供了完备的类型提示,这意味着你在 VSCode 中可以直接鼠标悬浮查看各参数注释。</p></blockquote></div><div lang="en"${_scopeId}><p${_scopeId}>Refer to `);
|
|
205
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/config/" }, {
|
|
206
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
207
|
+
if (_push3) {
|
|
208
|
+
_push3(`Valaxy Config`);
|
|
209
|
+
} else {
|
|
210
|
+
return [
|
|
211
|
+
createTextVNode("Valaxy Config")
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
}),
|
|
215
|
+
_: 1
|
|
216
|
+
/* STABLE */
|
|
217
|
+
}, _parent2, _scopeId));
|
|
218
|
+
_push2(` to migrate configurations from Hexo's <code${_scopeId}>_config.yml</code> to Valaxy's <code${_scopeId}>valaxy.config.ts</code>.</p><blockquote${_scopeId}><p${_scopeId}>Examples of configuration: `);
|
|
219
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
220
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/demo/yun/valaxy.config.ts",
|
|
221
|
+
target: "_blank",
|
|
222
|
+
rel: "noreferrer"
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
225
|
+
if (_push3) {
|
|
226
|
+
_push3(`demo/yun/valaxy.config.ts`);
|
|
227
|
+
} else {
|
|
228
|
+
return [
|
|
229
|
+
createTextVNode("demo/yun/valaxy.config.ts")
|
|
230
|
+
];
|
|
231
|
+
}
|
|
232
|
+
}),
|
|
233
|
+
_: 1
|
|
234
|
+
/* STABLE */
|
|
235
|
+
}, _parent2, _scopeId));
|
|
236
|
+
_push2(`, `);
|
|
237
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
238
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/blob/valaxy/valaxy.config.ts",
|
|
239
|
+
target: "_blank",
|
|
240
|
+
rel: "noreferrer"
|
|
241
|
+
}, {
|
|
242
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
243
|
+
if (_push3) {
|
|
244
|
+
_push3(`yunyoujun.github.io/valaxy.config.ts`);
|
|
245
|
+
} else {
|
|
246
|
+
return [
|
|
247
|
+
createTextVNode("yunyoujun.github.io/valaxy.config.ts")
|
|
248
|
+
];
|
|
249
|
+
}
|
|
250
|
+
}),
|
|
251
|
+
_: 1
|
|
252
|
+
/* STABLE */
|
|
253
|
+
}, _parent2, _scopeId));
|
|
254
|
+
_push2(`.<br${_scopeId}><code${_scopeId}>valaxy.config.ts</code> provides a complete type prompt, which means that you can hover on configuration fields directly to view the comments in VSCode.</p></blockquote></div><h2 lang="zh-CN" id="示例" tabindex="-1"${_scopeId}>示例 `);
|
|
255
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
256
|
+
class: "header-anchor",
|
|
257
|
+
href: "#示例",
|
|
258
|
+
"aria-label": 'Permalink to "示例 {lang="zh-CN"}"'
|
|
259
|
+
}, {
|
|
260
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
261
|
+
if (_push3) {
|
|
262
|
+
_push3(``);
|
|
263
|
+
} else {
|
|
264
|
+
return [
|
|
265
|
+
createTextVNode("")
|
|
266
|
+
];
|
|
267
|
+
}
|
|
268
|
+
}),
|
|
269
|
+
_: 1
|
|
270
|
+
/* STABLE */
|
|
271
|
+
}, _parent2, _scopeId));
|
|
272
|
+
_push2(`</h2><h2 lang="en" id="example" tabindex="-1"${_scopeId}>Example `);
|
|
273
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
274
|
+
class: "header-anchor",
|
|
275
|
+
href: "#example",
|
|
276
|
+
"aria-label": 'Permalink to "Example {lang="en"}"'
|
|
277
|
+
}, {
|
|
278
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
279
|
+
if (_push3) {
|
|
280
|
+
_push3(``);
|
|
281
|
+
} else {
|
|
282
|
+
return [
|
|
283
|
+
createTextVNode("")
|
|
284
|
+
];
|
|
285
|
+
}
|
|
286
|
+
}),
|
|
287
|
+
_: 1
|
|
288
|
+
/* STABLE */
|
|
289
|
+
}, _parent2, _scopeId));
|
|
290
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>更复杂的迁移示例,您还可以对比 `);
|
|
291
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
292
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io",
|
|
293
|
+
target: "_blank",
|
|
294
|
+
rel: "noreferrer"
|
|
295
|
+
}, {
|
|
296
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
297
|
+
if (_push3) {
|
|
298
|
+
_push3(`yunyoujun.github.io | GitHub`);
|
|
299
|
+
} else {
|
|
300
|
+
return [
|
|
301
|
+
createTextVNode("yunyoujun.github.io | GitHub")
|
|
302
|
+
];
|
|
303
|
+
}
|
|
304
|
+
}),
|
|
305
|
+
_: 1
|
|
306
|
+
/* STABLE */
|
|
307
|
+
}, _parent2, _scopeId));
|
|
308
|
+
_push2(` 仓库 `);
|
|
309
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
310
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/hexo",
|
|
311
|
+
target: "_blank",
|
|
312
|
+
rel: "noreferrer"
|
|
313
|
+
}, {
|
|
314
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
315
|
+
if (_push3) {
|
|
316
|
+
_push3(`hexo`);
|
|
317
|
+
} else {
|
|
318
|
+
return [
|
|
319
|
+
createTextVNode("hexo")
|
|
320
|
+
];
|
|
321
|
+
}
|
|
322
|
+
}),
|
|
323
|
+
_: 1
|
|
324
|
+
/* STABLE */
|
|
325
|
+
}, _parent2, _scopeId));
|
|
326
|
+
_push2(` 分支与 `);
|
|
327
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
328
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/valaxy",
|
|
329
|
+
target: "_blank",
|
|
330
|
+
rel: "noreferrer"
|
|
331
|
+
}, {
|
|
332
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
333
|
+
if (_push3) {
|
|
334
|
+
_push3(`valaxy`);
|
|
335
|
+
} else {
|
|
336
|
+
return [
|
|
337
|
+
createTextVNode("valaxy")
|
|
338
|
+
];
|
|
339
|
+
}
|
|
340
|
+
}),
|
|
341
|
+
_: 1
|
|
342
|
+
/* STABLE */
|
|
343
|
+
}, _parent2, _scopeId));
|
|
344
|
+
_push2(` 的异同。</p></div><div lang="en"${_scopeId}><p${_scopeId}>For more complex migration examples, you can also compare `);
|
|
345
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
346
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/hexo",
|
|
347
|
+
target: "_blank",
|
|
348
|
+
rel: "noreferrer"
|
|
349
|
+
}, {
|
|
350
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
351
|
+
if (_push3) {
|
|
352
|
+
_push3(`hexo branch`);
|
|
353
|
+
} else {
|
|
354
|
+
return [
|
|
355
|
+
createTextVNode("hexo branch")
|
|
356
|
+
];
|
|
357
|
+
}
|
|
358
|
+
}),
|
|
359
|
+
_: 1
|
|
360
|
+
/* STABLE */
|
|
361
|
+
}, _parent2, _scopeId));
|
|
362
|
+
_push2(` and `);
|
|
363
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
364
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/valaxy",
|
|
365
|
+
target: "_blank",
|
|
366
|
+
rel: "noreferrer"
|
|
367
|
+
}, {
|
|
368
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
369
|
+
if (_push3) {
|
|
370
|
+
_push3(`valaxy branch`);
|
|
371
|
+
} else {
|
|
372
|
+
return [
|
|
373
|
+
createTextVNode("valaxy branch")
|
|
374
|
+
];
|
|
375
|
+
}
|
|
376
|
+
}),
|
|
377
|
+
_: 1
|
|
378
|
+
/* STABLE */
|
|
379
|
+
}, _parent2, _scopeId));
|
|
380
|
+
_push2(` in `);
|
|
381
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
382
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io",
|
|
383
|
+
target: "_blank",
|
|
384
|
+
rel: "noreferrer"
|
|
385
|
+
}, {
|
|
386
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
387
|
+
if (_push3) {
|
|
388
|
+
_push3(`yunyoujun.github.io | GitHub`);
|
|
389
|
+
} else {
|
|
390
|
+
return [
|
|
391
|
+
createTextVNode("yunyoujun.github.io | GitHub")
|
|
392
|
+
];
|
|
393
|
+
}
|
|
394
|
+
}),
|
|
395
|
+
_: 1
|
|
396
|
+
/* STABLE */
|
|
397
|
+
}, _parent2, _scopeId));
|
|
398
|
+
_push2(` to see the similarities and differences.</p></div>`);
|
|
399
|
+
} else {
|
|
400
|
+
return [
|
|
401
|
+
createVNode("h2", {
|
|
402
|
+
lang: "zh-CN",
|
|
403
|
+
id: "迁移步骤",
|
|
404
|
+
tabindex: "-1"
|
|
405
|
+
}, [
|
|
406
|
+
createTextVNode("迁移步骤 "),
|
|
407
|
+
createVNode(_component_AppLink, {
|
|
408
|
+
class: "header-anchor",
|
|
409
|
+
href: "#迁移步骤",
|
|
410
|
+
"aria-label": 'Permalink to "迁移步骤 {lang="zh-CN"}"'
|
|
411
|
+
}, {
|
|
412
|
+
default: withCtx(() => [
|
|
413
|
+
createTextVNode("")
|
|
414
|
+
]),
|
|
415
|
+
_: 1
|
|
416
|
+
/* STABLE */
|
|
417
|
+
})
|
|
418
|
+
]),
|
|
419
|
+
createVNode("h2", {
|
|
420
|
+
lang: "en",
|
|
421
|
+
id: "migration-steps",
|
|
422
|
+
tabindex: "-1"
|
|
423
|
+
}, [
|
|
424
|
+
createTextVNode("Migration Steps "),
|
|
425
|
+
createVNode(_component_AppLink, {
|
|
426
|
+
class: "header-anchor",
|
|
427
|
+
href: "#migration-steps",
|
|
428
|
+
"aria-label": 'Permalink to "Migration Steps {lang="en"}"'
|
|
429
|
+
}, {
|
|
430
|
+
default: withCtx(() => [
|
|
431
|
+
createTextVNode("")
|
|
432
|
+
]),
|
|
433
|
+
_: 1
|
|
434
|
+
/* STABLE */
|
|
435
|
+
})
|
|
436
|
+
]),
|
|
437
|
+
createVNode("h3", {
|
|
438
|
+
lang: "zh-CN",
|
|
439
|
+
id: "迁移内容",
|
|
440
|
+
tabindex: "-1"
|
|
441
|
+
}, [
|
|
442
|
+
createTextVNode("迁移内容 "),
|
|
443
|
+
createVNode(_component_AppLink, {
|
|
444
|
+
class: "header-anchor",
|
|
445
|
+
href: "#迁移内容",
|
|
446
|
+
"aria-label": 'Permalink to "迁移内容 {lang="zh-CN"}"'
|
|
447
|
+
}, {
|
|
448
|
+
default: withCtx(() => [
|
|
449
|
+
createTextVNode("")
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
/* STABLE */
|
|
453
|
+
})
|
|
454
|
+
]),
|
|
455
|
+
createVNode("h3", {
|
|
456
|
+
lang: "zh-CN",
|
|
457
|
+
id: "migrate-contents",
|
|
458
|
+
tabindex: "-1"
|
|
459
|
+
}, [
|
|
460
|
+
createTextVNode("Migrate Contents "),
|
|
461
|
+
createVNode(_component_AppLink, {
|
|
462
|
+
class: "header-anchor",
|
|
463
|
+
href: "#migrate-contents",
|
|
464
|
+
"aria-label": 'Permalink to "Migrate Contents {lang="zh-CN"}"'
|
|
465
|
+
}, {
|
|
466
|
+
default: withCtx(() => [
|
|
467
|
+
createTextVNode("")
|
|
468
|
+
]),
|
|
469
|
+
_: 1
|
|
470
|
+
/* STABLE */
|
|
471
|
+
})
|
|
472
|
+
]),
|
|
473
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
474
|
+
createVNode("p", null, "Hexo 博客目录与 Valaxy 博客目录对应关系如下,将相关内容复制至对应文件夹即可。"),
|
|
475
|
+
createVNode("blockquote", null, [
|
|
476
|
+
createVNode("p", null, [
|
|
477
|
+
createTextVNode("譬如"),
|
|
478
|
+
createVNode("strong", null, "迁移文章"),
|
|
479
|
+
createTextVNode(",即将 Hexo "),
|
|
480
|
+
createVNode("code", null, "source/_posts"),
|
|
481
|
+
createTextVNode(" 目录下内容复制至 Valaxy "),
|
|
482
|
+
createVNode("code", null, "pages/posts"),
|
|
483
|
+
createTextVNode(" 目录下。")
|
|
484
|
+
])
|
|
485
|
+
]),
|
|
486
|
+
createVNode("table", null, [
|
|
487
|
+
createVNode("thead", null, [
|
|
488
|
+
createVNode("tr", null, [
|
|
489
|
+
createVNode("th", null, "用途"),
|
|
490
|
+
createVNode("th", null, "Hexo"),
|
|
491
|
+
createVNode("th", null, "Valaxy")
|
|
492
|
+
])
|
|
493
|
+
]),
|
|
494
|
+
createVNode("tbody", null, [
|
|
495
|
+
createVNode("tr", null, [
|
|
496
|
+
createVNode("td", null, "文章(Markdown 文件)"),
|
|
497
|
+
createVNode("td", null, [
|
|
498
|
+
createVNode("code", null, "source/_posts")
|
|
499
|
+
]),
|
|
500
|
+
createVNode("td", null, [
|
|
501
|
+
createVNode("code", null, "pages/posts")
|
|
502
|
+
])
|
|
503
|
+
]),
|
|
504
|
+
createVNode("tr", null, [
|
|
505
|
+
createVNode("td", null, "页面(Markdown / Html)"),
|
|
506
|
+
createVNode("td", null, [
|
|
507
|
+
createVNode("code", null, "source")
|
|
508
|
+
]),
|
|
509
|
+
createVNode("td", null, [
|
|
510
|
+
createVNode("code", null, "pages")
|
|
511
|
+
])
|
|
512
|
+
]),
|
|
513
|
+
createVNode("tr", null, [
|
|
514
|
+
createVNode("td", null, [
|
|
515
|
+
createTextVNode("静态资源("),
|
|
516
|
+
createVNode("code", null, "*.js"),
|
|
517
|
+
createTextVNode(" / "),
|
|
518
|
+
createVNode("code", null, "*.css"),
|
|
519
|
+
createTextVNode(" / "),
|
|
520
|
+
createVNode("code", null, "CNAME"),
|
|
521
|
+
createTextVNode(" etc.)")
|
|
522
|
+
]),
|
|
523
|
+
createVNode("td", null, [
|
|
524
|
+
createVNode("code", null, "source")
|
|
525
|
+
]),
|
|
526
|
+
createVNode("td", null, [
|
|
527
|
+
createVNode("code", null, "public")
|
|
528
|
+
])
|
|
529
|
+
])
|
|
530
|
+
])
|
|
531
|
+
])
|
|
532
|
+
]),
|
|
533
|
+
createVNode("div", { lang: "en" }, [
|
|
534
|
+
createVNode("p", null, "The relationship between Hexo blog directory and Valaxy blog directory is shown in the table below. Just copy the relevant contents to the corresponding folder."),
|
|
535
|
+
createVNode("blockquote", null, [
|
|
536
|
+
createVNode("p", null, [
|
|
537
|
+
createTextVNode("For example: "),
|
|
538
|
+
createVNode("strong", null, "To migrate articles"),
|
|
539
|
+
createTextVNode(", just copy files from Hexo's "),
|
|
540
|
+
createVNode("code", null, "source/_posts"),
|
|
541
|
+
createTextVNode(" to Valaxy's "),
|
|
542
|
+
createVNode("code", null, "pages/posts"),
|
|
543
|
+
createTextVNode(" directory.")
|
|
544
|
+
])
|
|
545
|
+
]),
|
|
546
|
+
createVNode("table", null, [
|
|
547
|
+
createVNode("thead", null, [
|
|
548
|
+
createVNode("tr", null, [
|
|
549
|
+
createVNode("th", null, "Contents"),
|
|
550
|
+
createVNode("th", null, "Hexo"),
|
|
551
|
+
createVNode("th", null, "Valaxy")
|
|
552
|
+
])
|
|
553
|
+
]),
|
|
554
|
+
createVNode("tbody", null, [
|
|
555
|
+
createVNode("tr", null, [
|
|
556
|
+
createVNode("td", null, "Posts (Markdown files)"),
|
|
557
|
+
createVNode("td", null, [
|
|
558
|
+
createVNode("code", null, "source/_posts")
|
|
559
|
+
]),
|
|
560
|
+
createVNode("td", null, [
|
|
561
|
+
createVNode("code", null, "pages/posts")
|
|
562
|
+
])
|
|
563
|
+
]),
|
|
564
|
+
createVNode("tr", null, [
|
|
565
|
+
createVNode("td", null, "Pages (Markdown / Html files)"),
|
|
566
|
+
createVNode("td", null, [
|
|
567
|
+
createVNode("code", null, "source")
|
|
568
|
+
]),
|
|
569
|
+
createVNode("td", null, [
|
|
570
|
+
createVNode("code", null, "pages")
|
|
571
|
+
])
|
|
572
|
+
]),
|
|
573
|
+
createVNode("tr", null, [
|
|
574
|
+
createVNode("td", null, [
|
|
575
|
+
createTextVNode("Static assets ("),
|
|
576
|
+
createVNode("code", null, "*.js"),
|
|
577
|
+
createTextVNode(" / "),
|
|
578
|
+
createVNode("code", null, "*.css"),
|
|
579
|
+
createTextVNode(" / "),
|
|
580
|
+
createVNode("code", null, "CNAME"),
|
|
581
|
+
createTextVNode(" etc.)")
|
|
582
|
+
]),
|
|
583
|
+
createVNode("td", null, [
|
|
584
|
+
createVNode("code", null, "source")
|
|
585
|
+
]),
|
|
586
|
+
createVNode("td", null, [
|
|
587
|
+
createVNode("code", null, "public")
|
|
588
|
+
])
|
|
589
|
+
])
|
|
590
|
+
])
|
|
591
|
+
])
|
|
592
|
+
]),
|
|
593
|
+
createVNode("h3", {
|
|
594
|
+
lang: "zh-CN",
|
|
595
|
+
id: "迁移配置",
|
|
596
|
+
tabindex: "-1"
|
|
597
|
+
}, [
|
|
598
|
+
createTextVNode("迁移配置 "),
|
|
599
|
+
createVNode(_component_AppLink, {
|
|
600
|
+
class: "header-anchor",
|
|
601
|
+
href: "#迁移配置",
|
|
602
|
+
"aria-label": 'Permalink to "迁移配置 {lang="zh-CN"}"'
|
|
603
|
+
}, {
|
|
604
|
+
default: withCtx(() => [
|
|
605
|
+
createTextVNode("")
|
|
606
|
+
]),
|
|
607
|
+
_: 1
|
|
608
|
+
/* STABLE */
|
|
609
|
+
})
|
|
610
|
+
]),
|
|
611
|
+
createVNode("h3", {
|
|
612
|
+
lang: "en",
|
|
613
|
+
id: "migrate-configurations",
|
|
614
|
+
tabindex: "-1"
|
|
615
|
+
}, [
|
|
616
|
+
createTextVNode("Migrate Configurations "),
|
|
617
|
+
createVNode(_component_AppLink, {
|
|
618
|
+
class: "header-anchor",
|
|
619
|
+
href: "#migrate-configurations",
|
|
620
|
+
"aria-label": 'Permalink to "Migrate Configurations {lang="en"}"'
|
|
621
|
+
}, {
|
|
622
|
+
default: withCtx(() => [
|
|
623
|
+
createTextVNode("")
|
|
624
|
+
]),
|
|
625
|
+
_: 1
|
|
626
|
+
/* STABLE */
|
|
627
|
+
})
|
|
628
|
+
]),
|
|
629
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
630
|
+
createVNode("p", null, [
|
|
631
|
+
createTextVNode("参考 "),
|
|
632
|
+
createVNode(_component_AppLink, { href: "/guide/config/" }, {
|
|
633
|
+
default: withCtx(() => [
|
|
634
|
+
createTextVNode("Valaxy 配置文档")
|
|
635
|
+
]),
|
|
636
|
+
_: 1
|
|
637
|
+
/* STABLE */
|
|
638
|
+
}),
|
|
639
|
+
createTextVNode(" 将 Hexo "),
|
|
640
|
+
createVNode("code", null, "_config.yml"),
|
|
641
|
+
createTextVNode(" 配置文件中的内容,迁移至 "),
|
|
642
|
+
createVNode("code", null, "valaxy.config.ts"),
|
|
643
|
+
createTextVNode(" 文件中。")
|
|
644
|
+
]),
|
|
645
|
+
createVNode("blockquote", null, [
|
|
646
|
+
createVNode("p", null, [
|
|
647
|
+
createTextVNode("配置示例:"),
|
|
648
|
+
createVNode(_component_AppLink, {
|
|
649
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/demo/yun/valaxy.config.ts",
|
|
650
|
+
target: "_blank",
|
|
651
|
+
rel: "noreferrer"
|
|
652
|
+
}, {
|
|
653
|
+
default: withCtx(() => [
|
|
654
|
+
createTextVNode("demo/yun/valaxy.config.ts")
|
|
655
|
+
]),
|
|
656
|
+
_: 1
|
|
657
|
+
/* STABLE */
|
|
658
|
+
}),
|
|
659
|
+
createTextVNode("、"),
|
|
660
|
+
createVNode(_component_AppLink, {
|
|
661
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/blob/valaxy/valaxy.config.ts",
|
|
662
|
+
target: "_blank",
|
|
663
|
+
rel: "noreferrer"
|
|
664
|
+
}, {
|
|
665
|
+
default: withCtx(() => [
|
|
666
|
+
createTextVNode("yunyoujun.github.io/valaxy.config.ts")
|
|
667
|
+
]),
|
|
668
|
+
_: 1
|
|
669
|
+
/* STABLE */
|
|
670
|
+
}),
|
|
671
|
+
createVNode("br"),
|
|
672
|
+
createVNode("code", null, "valaxy.config.ts"),
|
|
673
|
+
createTextVNode(" 提供了完备的类型提示,这意味着你在 VSCode 中可以直接鼠标悬浮查看各参数注释。")
|
|
674
|
+
])
|
|
675
|
+
])
|
|
676
|
+
]),
|
|
677
|
+
createVNode("div", { lang: "en" }, [
|
|
678
|
+
createVNode("p", null, [
|
|
679
|
+
createTextVNode("Refer to "),
|
|
680
|
+
createVNode(_component_AppLink, { href: "/guide/config/" }, {
|
|
681
|
+
default: withCtx(() => [
|
|
682
|
+
createTextVNode("Valaxy Config")
|
|
683
|
+
]),
|
|
684
|
+
_: 1
|
|
685
|
+
/* STABLE */
|
|
686
|
+
}),
|
|
687
|
+
createTextVNode(" to migrate configurations from Hexo's "),
|
|
688
|
+
createVNode("code", null, "_config.yml"),
|
|
689
|
+
createTextVNode(" to Valaxy's "),
|
|
690
|
+
createVNode("code", null, "valaxy.config.ts"),
|
|
691
|
+
createTextVNode(".")
|
|
692
|
+
]),
|
|
693
|
+
createVNode("blockquote", null, [
|
|
694
|
+
createVNode("p", null, [
|
|
695
|
+
createTextVNode("Examples of configuration: "),
|
|
696
|
+
createVNode(_component_AppLink, {
|
|
697
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/demo/yun/valaxy.config.ts",
|
|
698
|
+
target: "_blank",
|
|
699
|
+
rel: "noreferrer"
|
|
700
|
+
}, {
|
|
701
|
+
default: withCtx(() => [
|
|
702
|
+
createTextVNode("demo/yun/valaxy.config.ts")
|
|
703
|
+
]),
|
|
704
|
+
_: 1
|
|
705
|
+
/* STABLE */
|
|
706
|
+
}),
|
|
707
|
+
createTextVNode(", "),
|
|
708
|
+
createVNode(_component_AppLink, {
|
|
709
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/blob/valaxy/valaxy.config.ts",
|
|
710
|
+
target: "_blank",
|
|
711
|
+
rel: "noreferrer"
|
|
712
|
+
}, {
|
|
713
|
+
default: withCtx(() => [
|
|
714
|
+
createTextVNode("yunyoujun.github.io/valaxy.config.ts")
|
|
715
|
+
]),
|
|
716
|
+
_: 1
|
|
717
|
+
/* STABLE */
|
|
718
|
+
}),
|
|
719
|
+
createTextVNode("."),
|
|
720
|
+
createVNode("br"),
|
|
721
|
+
createVNode("code", null, "valaxy.config.ts"),
|
|
722
|
+
createTextVNode(" provides a complete type prompt, which means that you can hover on configuration fields directly to view the comments in VSCode.")
|
|
723
|
+
])
|
|
724
|
+
])
|
|
725
|
+
]),
|
|
726
|
+
createVNode("h2", {
|
|
727
|
+
lang: "zh-CN",
|
|
728
|
+
id: "示例",
|
|
729
|
+
tabindex: "-1"
|
|
730
|
+
}, [
|
|
731
|
+
createTextVNode("示例 "),
|
|
732
|
+
createVNode(_component_AppLink, {
|
|
733
|
+
class: "header-anchor",
|
|
734
|
+
href: "#示例",
|
|
735
|
+
"aria-label": 'Permalink to "示例 {lang="zh-CN"}"'
|
|
736
|
+
}, {
|
|
737
|
+
default: withCtx(() => [
|
|
738
|
+
createTextVNode("")
|
|
739
|
+
]),
|
|
740
|
+
_: 1
|
|
741
|
+
/* STABLE */
|
|
742
|
+
})
|
|
743
|
+
]),
|
|
744
|
+
createVNode("h2", {
|
|
745
|
+
lang: "en",
|
|
746
|
+
id: "example",
|
|
747
|
+
tabindex: "-1"
|
|
748
|
+
}, [
|
|
749
|
+
createTextVNode("Example "),
|
|
750
|
+
createVNode(_component_AppLink, {
|
|
751
|
+
class: "header-anchor",
|
|
752
|
+
href: "#example",
|
|
753
|
+
"aria-label": 'Permalink to "Example {lang="en"}"'
|
|
754
|
+
}, {
|
|
755
|
+
default: withCtx(() => [
|
|
756
|
+
createTextVNode("")
|
|
757
|
+
]),
|
|
758
|
+
_: 1
|
|
759
|
+
/* STABLE */
|
|
760
|
+
})
|
|
761
|
+
]),
|
|
762
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
763
|
+
createVNode("p", null, [
|
|
764
|
+
createTextVNode("更复杂的迁移示例,您还可以对比 "),
|
|
765
|
+
createVNode(_component_AppLink, {
|
|
766
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io",
|
|
767
|
+
target: "_blank",
|
|
768
|
+
rel: "noreferrer"
|
|
769
|
+
}, {
|
|
770
|
+
default: withCtx(() => [
|
|
771
|
+
createTextVNode("yunyoujun.github.io | GitHub")
|
|
772
|
+
]),
|
|
773
|
+
_: 1
|
|
774
|
+
/* STABLE */
|
|
775
|
+
}),
|
|
776
|
+
createTextVNode(" 仓库 "),
|
|
777
|
+
createVNode(_component_AppLink, {
|
|
778
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/hexo",
|
|
779
|
+
target: "_blank",
|
|
780
|
+
rel: "noreferrer"
|
|
781
|
+
}, {
|
|
782
|
+
default: withCtx(() => [
|
|
783
|
+
createTextVNode("hexo")
|
|
784
|
+
]),
|
|
785
|
+
_: 1
|
|
786
|
+
/* STABLE */
|
|
787
|
+
}),
|
|
788
|
+
createTextVNode(" 分支与 "),
|
|
789
|
+
createVNode(_component_AppLink, {
|
|
790
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/valaxy",
|
|
791
|
+
target: "_blank",
|
|
792
|
+
rel: "noreferrer"
|
|
793
|
+
}, {
|
|
794
|
+
default: withCtx(() => [
|
|
795
|
+
createTextVNode("valaxy")
|
|
796
|
+
]),
|
|
797
|
+
_: 1
|
|
798
|
+
/* STABLE */
|
|
799
|
+
}),
|
|
800
|
+
createTextVNode(" 的异同。")
|
|
801
|
+
])
|
|
802
|
+
]),
|
|
803
|
+
createVNode("div", { lang: "en" }, [
|
|
804
|
+
createVNode("p", null, [
|
|
805
|
+
createTextVNode("For more complex migration examples, you can also compare "),
|
|
806
|
+
createVNode(_component_AppLink, {
|
|
807
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/hexo",
|
|
808
|
+
target: "_blank",
|
|
809
|
+
rel: "noreferrer"
|
|
810
|
+
}, {
|
|
811
|
+
default: withCtx(() => [
|
|
812
|
+
createTextVNode("hexo branch")
|
|
813
|
+
]),
|
|
814
|
+
_: 1
|
|
815
|
+
/* STABLE */
|
|
816
|
+
}),
|
|
817
|
+
createTextVNode(" and "),
|
|
818
|
+
createVNode(_component_AppLink, {
|
|
819
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io/tree/valaxy",
|
|
820
|
+
target: "_blank",
|
|
821
|
+
rel: "noreferrer"
|
|
822
|
+
}, {
|
|
823
|
+
default: withCtx(() => [
|
|
824
|
+
createTextVNode("valaxy branch")
|
|
825
|
+
]),
|
|
826
|
+
_: 1
|
|
827
|
+
/* STABLE */
|
|
828
|
+
}),
|
|
829
|
+
createTextVNode(" in "),
|
|
830
|
+
createVNode(_component_AppLink, {
|
|
831
|
+
href: "https://github.com/YunYouJun/yunyoujun.github.io",
|
|
832
|
+
target: "_blank",
|
|
833
|
+
rel: "noreferrer"
|
|
834
|
+
}, {
|
|
835
|
+
default: withCtx(() => [
|
|
836
|
+
createTextVNode("yunyoujun.github.io | GitHub")
|
|
837
|
+
]),
|
|
838
|
+
_: 1
|
|
839
|
+
/* STABLE */
|
|
840
|
+
}),
|
|
841
|
+
createTextVNode(" to see the similarities and differences.")
|
|
842
|
+
])
|
|
843
|
+
])
|
|
844
|
+
];
|
|
845
|
+
}
|
|
846
|
+
}),
|
|
847
|
+
"main-header": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
848
|
+
if (_push2) {
|
|
849
|
+
ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
|
|
850
|
+
} else {
|
|
851
|
+
return [
|
|
852
|
+
renderSlot(_ctx.$slots, "main-header")
|
|
853
|
+
];
|
|
854
|
+
}
|
|
855
|
+
}),
|
|
856
|
+
"main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
857
|
+
if (_push2) {
|
|
858
|
+
ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
|
|
859
|
+
} else {
|
|
860
|
+
return [
|
|
861
|
+
renderSlot(_ctx.$slots, "main-header-after")
|
|
862
|
+
];
|
|
863
|
+
}
|
|
864
|
+
}),
|
|
865
|
+
"main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
866
|
+
if (_push2) {
|
|
867
|
+
ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
|
|
868
|
+
} else {
|
|
869
|
+
return [
|
|
870
|
+
renderSlot(_ctx.$slots, "main-nav")
|
|
871
|
+
];
|
|
872
|
+
}
|
|
873
|
+
}),
|
|
874
|
+
"main-content": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
875
|
+
if (_push2) {
|
|
876
|
+
ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
|
|
877
|
+
} else {
|
|
878
|
+
return [
|
|
879
|
+
renderSlot(_ctx.$slots, "main-content")
|
|
880
|
+
];
|
|
881
|
+
}
|
|
882
|
+
}),
|
|
883
|
+
"main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
884
|
+
if (_push2) {
|
|
885
|
+
ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
|
|
886
|
+
} else {
|
|
887
|
+
return [
|
|
888
|
+
renderSlot(_ctx.$slots, "main-content-after")
|
|
889
|
+
];
|
|
890
|
+
}
|
|
891
|
+
}),
|
|
892
|
+
"main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
893
|
+
if (_push2) {
|
|
894
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
|
|
895
|
+
} else {
|
|
896
|
+
return [
|
|
897
|
+
renderSlot(_ctx.$slots, "main-nav-before")
|
|
898
|
+
];
|
|
899
|
+
}
|
|
900
|
+
}),
|
|
901
|
+
"main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
902
|
+
if (_push2) {
|
|
903
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
|
|
904
|
+
} else {
|
|
905
|
+
return [
|
|
906
|
+
renderSlot(_ctx.$slots, "main-nav-after")
|
|
907
|
+
];
|
|
908
|
+
}
|
|
909
|
+
}),
|
|
910
|
+
comment: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
911
|
+
if (_push2) {
|
|
912
|
+
ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
|
|
913
|
+
} else {
|
|
914
|
+
return [
|
|
915
|
+
renderSlot(_ctx.$slots, "comment")
|
|
916
|
+
];
|
|
917
|
+
}
|
|
918
|
+
}),
|
|
919
|
+
footer: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
920
|
+
if (_push2) {
|
|
921
|
+
ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
|
|
922
|
+
} else {
|
|
923
|
+
return [
|
|
924
|
+
renderSlot(_ctx.$slots, "footer")
|
|
925
|
+
];
|
|
926
|
+
}
|
|
927
|
+
}),
|
|
928
|
+
aside: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
929
|
+
if (_push2) {
|
|
930
|
+
ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
|
|
931
|
+
} else {
|
|
932
|
+
return [
|
|
933
|
+
renderSlot(_ctx.$slots, "aside")
|
|
934
|
+
];
|
|
935
|
+
}
|
|
936
|
+
}),
|
|
937
|
+
"aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
938
|
+
if (_push2) {
|
|
939
|
+
ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
|
|
940
|
+
} else {
|
|
941
|
+
return [
|
|
942
|
+
renderSlot(_ctx.$slots, "aside-custom")
|
|
943
|
+
];
|
|
944
|
+
}
|
|
945
|
+
}),
|
|
946
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
947
|
+
if (_push2) {
|
|
948
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
949
|
+
} else {
|
|
950
|
+
return [
|
|
951
|
+
renderSlot(_ctx.$slots, "default")
|
|
952
|
+
];
|
|
953
|
+
}
|
|
954
|
+
}),
|
|
955
|
+
_: 3
|
|
956
|
+
/* FORWARDED */
|
|
957
|
+
}, _parent));
|
|
958
|
+
}
|
|
959
|
+
const _sfc_setup = _sfc_main.setup;
|
|
960
|
+
_sfc_main.setup = (props, ctx) => {
|
|
961
|
+
const ssrContext = useSSRContext();
|
|
962
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/migration/hexo.md");
|
|
963
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
964
|
+
};
|
|
965
|
+
const hexo = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
966
|
+
export {
|
|
967
|
+
__pageData,
|
|
968
|
+
hexo as default
|
|
969
|
+
};
|