valaxy 0.15.11-alpha.0 → 0.15.12
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/LICENSE +21 -0
- package/bin/valaxy.cjs +0 -0
- package/bin/valaxy.mjs +0 -0
- package/dist/{chunk-3EJGKTUH.mjs → chunk-HAVGXIHI.mjs} +1 -1
- package/dist/{chunk-RDNVTVQ5.cjs → chunk-HZFTOKBG.cjs} +1 -1
- package/dist/{config-e5704a2c.d.ts → config-0d4945ff.d.ts} +12 -2
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +1 -2
- package/dist/node/index.d.ts +1 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -4
- package/dist/types/index.d.ts +2 -4
- package/dist/types/index.mjs +1 -1
- package/package.json +8 -9
- package/types/config.ts +3 -1
- package/types/{default-theme.d.ts → default-theme.ts} +2 -1
- package/types/index.ts +2 -1
- package/client/.vite-ssg-temp/tbbjcbuyn2/CNAME +0 -1
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/PressAlgoliaSearch-2943719f.js +0 -227
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/ValaxyMain-26e77dc6.js +0 -752
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-080f97f3.js +0 -31
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-5084a1b0.js +0 -42
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/addon-f5fa83e1.js +0 -172
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/best-pratice-0231a551.js +0 -1105
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/client-496183a0.js +0 -286
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/community-1b33ec3b.js +0 -627
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/components-7000ddd3.js +0 -2460
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/deploy-59948619.js +0 -1071
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/docs-26abd7f8.js +0 -490
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-975f8f72.js +0 -1851
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-acd7107b.js +0 -1444
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/faq-62ed7bfd.js +0 -321
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/features-8acbd53d.js +0 -2625
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-832227a9.js +0 -244
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-9077df38.js +0 -370
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/getting-started-52c30f03.js +0 -3684
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hexo-7311896e.js +0 -969
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hooks-67450cb3.js +0 -517
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-4cd1bb86.js +0 -4159
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-e1165bc4.js +0 -676
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-002f83fb.js +0 -768
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-3dec2b83.js +0 -527
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-43565e48.js +0 -424
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-5f07432e.js +0 -563
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6024f010.js +0 -3294
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6f0d6ec7.js +0 -202
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-78c510e0.js +0 -549
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-839c338e.js +0 -4161
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-d39a48fd.js +0 -1170
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-e633613c.js +0 -1564
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/katex-32f21e80.js +0 -6119
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/logo-bd69f816.js +0 -180
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/markdown-050f3269.js +0 -5895
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/news-ecba2d88.js +0 -278
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/page-d48f3caa.js +0 -752
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/post-ac89eaf5.js +0 -1605
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/route-block-c0a8bdd8.js +0 -4
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/schema-org-f60b7dac.js +0 -477
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/site-6caa6511.js +0 -286
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/style-f415f7fa.css +0 -3742
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/styles-cdaadad2.js +0 -548
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/templates-c97584f2.js +0 -574
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/theme-192f77ef.js +0 -172
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-3c036a47.js +0 -669
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-851c0307.js +0 -619
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vite-vue-f91b9792.js +0 -830
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vscode-bc411e64.js +0 -350
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/why-c98bbe8e.js +0 -1131
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6a43d4d0.js +0 -4963
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6bc2b77c.js +0 -675
- package/client/.vite-ssg-temp/tbbjcbuyn2/favicon.svg +0 -33
- package/client/.vite-ssg-temp/tbbjcbuyn2/main.mjs +0 -6239
- package/client/.vite-ssg-temp/tbbjcbuyn2/valaxy-logo.png +0 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/CNAME +0 -1
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/PressAlgoliaSearch-2943719f.js +0 -227
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/ValaxyMain-26e77dc6.js +0 -752
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-080f97f3.js +0 -31
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-5084a1b0.js +0 -42
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/addon-f5fa83e1.js +0 -172
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/best-pratice-0231a551.js +0 -1105
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/client-496183a0.js +0 -286
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/community-1b33ec3b.js +0 -627
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/components-7000ddd3.js +0 -2460
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/deploy-59948619.js +0 -1071
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/docs-26abd7f8.js +0 -490
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-975f8f72.js +0 -1851
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-acd7107b.js +0 -1444
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/faq-62ed7bfd.js +0 -321
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/features-8acbd53d.js +0 -2625
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-832227a9.js +0 -244
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-9077df38.js +0 -370
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/getting-started-bb7fc0a8.js +0 -3684
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hexo-7311896e.js +0 -969
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hooks-67450cb3.js +0 -517
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-4cd1bb86.js +0 -4159
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-e1165bc4.js +0 -676
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-002f83fb.js +0 -768
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-3dec2b83.js +0 -527
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-43565e48.js +0 -424
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-5f07432e.js +0 -563
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6024f010.js +0 -3294
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6f0d6ec7.js +0 -202
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-78c510e0.js +0 -549
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-839c338e.js +0 -4161
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-d39a48fd.js +0 -1170
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-e633613c.js +0 -1564
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/katex-32f21e80.js +0 -6119
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/logo-bd69f816.js +0 -180
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/markdown-abdb17ca.js +0 -5895
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/news-ecba2d88.js +0 -278
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/page-d48f3caa.js +0 -752
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/post-0ed0dfec.js +0 -1605
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/route-block-c0a8bdd8.js +0 -4
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/schema-org-f60b7dac.js +0 -477
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/site-6caa6511.js +0 -286
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/style-f415f7fa.css +0 -3742
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/styles-cdaadad2.js +0 -548
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/templates-c97584f2.js +0 -574
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/theme-192f77ef.js +0 -172
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-3c036a47.js +0 -669
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-851c0307.js +0 -619
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vite-vue-f91b9792.js +0 -830
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vscode-bc411e64.js +0 -350
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/why-c98bbe8e.js +0 -1131
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6a43d4d0.js +0 -4963
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6bc2b77c.js +0 -675
- package/client/.vite-ssg-temp/vp12eb5cgm/favicon.svg +0 -33
- package/client/.vite-ssg-temp/vp12eb5cgm/main.mjs +0 -6239
- package/client/.vite-ssg-temp/vp12eb5cgm/valaxy-logo.png +0 -0
|
@@ -1,1071 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeProps, useSSRContext, provide, withCtx, createTextVNode, createVNode, renderSlot } from "vue";
|
|
2
|
-
import { ssrRenderAttrs, ssrRenderAttr, ssrRenderClass, ssrRenderComponent, ssrRenderStyle, ssrRenderSlot } from "vue/server-renderer";
|
|
3
|
-
import { _ as _export_sfc, a as _sfc_main$2 } from "../main.mjs";
|
|
4
|
-
import { _ as __unplugin_components_0 } from "./ValaxyMain-26e77dc6.js";
|
|
5
|
-
import { useRoute } from "vue-router";
|
|
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 _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
25
|
-
__name: "BrandIcon",
|
|
26
|
-
__ssrInlineRender: true,
|
|
27
|
-
props: {
|
|
28
|
-
icon: {},
|
|
29
|
-
link: {}
|
|
30
|
-
},
|
|
31
|
-
setup(__props) {
|
|
32
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
33
|
-
_push(`<p${ssrRenderAttrs(mergeProps({ class: "leading-0!" }, _attrs))}><a class="inline text-xl leading-0"${ssrRenderAttr("href", _ctx.link)} target="_blank" rel="noopener noreferrer"><div class="${ssrRenderClass(_ctx.icon)}"></div></a></p>`);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
38
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
39
|
-
const ssrContext = useSSRContext();
|
|
40
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/components/BrandIcon.vue");
|
|
41
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
42
|
-
};
|
|
43
|
-
const __pageData = JSON.parse('{"title":"Deployment","description":"","frontmatter":{"title":"Deployment","title_zh-CN":"部署","categories":["getting-started"],"end":false,"top":99},"headers":[{"level":3,"title":"自行部署","slug":"自行部署","link":"#自行部署","children":[]},{"level":3,"title":"Manual Deployment","slug":"manual-deployment","link":"#manual-deployment","children":[]},{"level":3,"title":"第三方部署","slug":"第三方部署","link":"#第三方部署","children":[]},{"level":3,"title":"Third Party Deployment","slug":"third-party-deployment","link":"#third-party-deployment","children":[]}],"relativePath":"pages/guide/deploy.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\deploy.md","lastUpdated":1696528959000}');
|
|
44
|
-
const data = JSON.parse('{"title":"Deployment","description":"","frontmatter":{"title":"Deployment","title_zh-CN":"部署","categories":["getting-started"],"end":false,"top":99},"headers":[{"level":3,"title":"自行部署","slug":"自行部署","link":"#自行部署","children":[]},{"level":3,"title":"Manual Deployment","slug":"manual-deployment","link":"#manual-deployment","children":[]},{"level":3,"title":"第三方部署","slug":"第三方部署","link":"#第三方部署","children":[]},{"level":3,"title":"Third Party Deployment","slug":"third-party-deployment","link":"#third-party-deployment","children":[]}],"relativePath":"pages/guide/deploy.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\deploy.md","lastUpdated":1696528959000}');
|
|
45
|
-
const _sfc_main = {
|
|
46
|
-
name: "pages/guide/deploy.md",
|
|
47
|
-
data() {
|
|
48
|
-
return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter };
|
|
49
|
-
},
|
|
50
|
-
setup() {
|
|
51
|
-
const route = useRoute();
|
|
52
|
-
route.meta.frontmatter = Object.assign(route.meta.frontmatter, data.frontmatter);
|
|
53
|
-
provide("pageData", data);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
57
|
-
const _component_ValaxyMain = __unplugin_components_0;
|
|
58
|
-
const _component_AppLink = _sfc_main$2;
|
|
59
|
-
const _component_BrandIcon = _sfc_main$1;
|
|
60
|
-
_push(ssrRenderComponent(_component_ValaxyMain, mergeProps({
|
|
61
|
-
frontmatter: $data.frontmatter,
|
|
62
|
-
data: $data.data
|
|
63
|
-
}, _attrs), {
|
|
64
|
-
"main-content-md": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
65
|
-
if (_push2) {
|
|
66
|
-
_push2(`<div lang="zh-CN"${_scopeId}><p${_scopeId}>Valaxy 的部署非常简单,我们推荐你直接通过第三方的 CI 构建并托管到任意平台。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Deploying Valaxy is very easy. We suggest that you build and deploy to any platform using third party CI.</p></div><h3 lang="zh-CN" id="自行部署" tabindex="-1"${_scopeId}>自行部署 `);
|
|
67
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
68
|
-
class: "header-anchor",
|
|
69
|
-
href: "#自行部署",
|
|
70
|
-
"aria-label": 'Permalink to "自行部署 {lang="zh-CN"}"'
|
|
71
|
-
}, {
|
|
72
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
73
|
-
if (_push3) {
|
|
74
|
-
_push3(``);
|
|
75
|
-
} else {
|
|
76
|
-
return [
|
|
77
|
-
createTextVNode("")
|
|
78
|
-
];
|
|
79
|
-
}
|
|
80
|
-
}),
|
|
81
|
-
_: 1
|
|
82
|
-
/* STABLE */
|
|
83
|
-
}, _parent2, _scopeId));
|
|
84
|
-
_push2(`</h3><h3 lang="en" id="manual-deployment" tabindex="-1"${_scopeId}>Manual Deployment `);
|
|
85
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
86
|
-
class: "header-anchor",
|
|
87
|
-
href: "#manual-deployment",
|
|
88
|
-
"aria-label": 'Permalink to "Manual Deployment {lang="en"}"'
|
|
89
|
-
}, {
|
|
90
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
91
|
-
if (_push3) {
|
|
92
|
-
_push3(``);
|
|
93
|
-
} else {
|
|
94
|
-
return [
|
|
95
|
-
createTextVNode("")
|
|
96
|
-
];
|
|
97
|
-
}
|
|
98
|
-
}),
|
|
99
|
-
_: 1
|
|
100
|
-
/* STABLE */
|
|
101
|
-
}, _parent2, _scopeId));
|
|
102
|
-
_push2(`</h3><div lang="zh-CN"${_scopeId}><div class="language-bash"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>bash</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># 构建打包</span></span>
|
|
103
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>npm</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>run</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>build</span></span>
|
|
104
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># dist 文件夹为构建后的内容</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># 构建打包</span></span>
|
|
105
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>npm</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>run</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>build</span></span>
|
|
106
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># dist 文件夹为构建后的内容</span></span></code></pre></div></div><div lang="en"${_scopeId}><div class="language-bash"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>bash</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># Build the package</span></span>
|
|
107
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>npm</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>run</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>build</span></span>
|
|
108
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># The \`dist/\` directory contains the artifact</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># Build the package</span></span>
|
|
109
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>npm</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>run</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>build</span></span>
|
|
110
|
-
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># The \`dist/\` directory contains the artifact</span></span></code></pre></div></div><h3 lang="zh-CN" id="第三方部署" tabindex="-1"${_scopeId}>第三方部署 `);
|
|
111
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
112
|
-
class: "header-anchor",
|
|
113
|
-
href: "#第三方部署",
|
|
114
|
-
"aria-label": 'Permalink to "第三方部署 {lang="zh-CN"}"'
|
|
115
|
-
}, {
|
|
116
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
117
|
-
if (_push3) {
|
|
118
|
-
_push3(``);
|
|
119
|
-
} else {
|
|
120
|
-
return [
|
|
121
|
-
createTextVNode("")
|
|
122
|
-
];
|
|
123
|
-
}
|
|
124
|
-
}),
|
|
125
|
-
_: 1
|
|
126
|
-
/* STABLE */
|
|
127
|
-
}, _parent2, _scopeId));
|
|
128
|
-
_push2(`</h3><h3 lang="en" id="third-party-deployment" tabindex="-1"${_scopeId}>Third Party Deployment `);
|
|
129
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
130
|
-
class: "header-anchor",
|
|
131
|
-
href: "#third-party-deployment",
|
|
132
|
-
"aria-label": 'Permalink to "Third Party Deployment {lang="en"}"'
|
|
133
|
-
}, {
|
|
134
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
135
|
-
if (_push3) {
|
|
136
|
-
_push3(``);
|
|
137
|
-
} else {
|
|
138
|
-
return [
|
|
139
|
-
createTextVNode("")
|
|
140
|
-
];
|
|
141
|
-
}
|
|
142
|
-
}),
|
|
143
|
-
_: 1
|
|
144
|
-
/* STABLE */
|
|
145
|
-
}, _parent2, _scopeId));
|
|
146
|
-
_push2(`</h3><h4 id="github-pages" tabindex="-1"${_scopeId}>GitHub Pages `);
|
|
147
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
148
|
-
class: "header-anchor",
|
|
149
|
-
href: "#github-pages",
|
|
150
|
-
"aria-label": 'Permalink to "GitHub Pages"'
|
|
151
|
-
}, {
|
|
152
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
153
|
-
if (_push3) {
|
|
154
|
-
_push3(``);
|
|
155
|
-
} else {
|
|
156
|
-
return [
|
|
157
|
-
createTextVNode("")
|
|
158
|
-
];
|
|
159
|
-
}
|
|
160
|
-
}),
|
|
161
|
-
_: 1
|
|
162
|
-
/* STABLE */
|
|
163
|
-
}, _parent2, _scopeId));
|
|
164
|
-
_push2(`</h4>`);
|
|
165
|
-
_push2(ssrRenderComponent(_component_BrandIcon, {
|
|
166
|
-
icon: "i-simple-icons-github",
|
|
167
|
-
link: "https://pages.github.com/"
|
|
168
|
-
}, null, _parent2, _scopeId));
|
|
169
|
-
_push2(`<div lang="zh-CN"${_scopeId}><p${_scopeId}>在使用 <code${_scopeId}>pnpm create valaxy</code> 创建模版项目时,已内置文件`);
|
|
170
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
171
|
-
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/create-valaxy/template-blog/.github/workflows/gh-pages.yml",
|
|
172
|
-
target: "_blank",
|
|
173
|
-
rel: "noreferrer"
|
|
174
|
-
}, {
|
|
175
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
176
|
-
if (_push3) {
|
|
177
|
-
_push3(`<code${_scopeId2}>.github/workflows/gh-pages.yml</code>`);
|
|
178
|
-
} else {
|
|
179
|
-
return [
|
|
180
|
-
createVNode("code", null, ".github/workflows/gh-pages.yml")
|
|
181
|
-
];
|
|
182
|
-
}
|
|
183
|
-
}),
|
|
184
|
-
_: 1
|
|
185
|
-
/* STABLE */
|
|
186
|
-
}, _parent2, _scopeId));
|
|
187
|
-
_push2(` 以实现 GitHub Actions 的自动部署工作流。</p><ul${_scopeId}><li${_scopeId}>选择 Github Repo,打开 <code${_scopeId}>Settings</code>-> <code${_scopeId}>Action</code> -> <code${_scopeId}>General</code> -> <code${_scopeId}>Workflow permissions</code>,选择 <code${_scopeId}>read and write permissions</code>。</li><li${_scopeId}>上传至 GitHub Repo,打开 <code${_scopeId}>Settings</code> -> <code${_scopeId}>Pages</code>,选择 <code${_scopeId}>gh-pages</code> 分支。</li></ul><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>gh-pages</code> 已由 <code${_scopeId}>.github/workflows/gh-pages.yml</code> 自动部署。</p></blockquote><blockquote${_scopeId}><p${_scopeId}>注意修改 <code${_scopeId}>gh-pages.yml</code> 中的 <code${_scopeId}>on.push.branches</code> 为你源代码所在的分支,默认为 <code${_scopeId}>main</code>。</p></blockquote></div><div lang="en"${_scopeId}><p${_scopeId}>When you use <code${_scopeId}>pnpm create valaxy</code> to create a template project, it contains the file `);
|
|
188
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
189
|
-
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/create-valaxy/template-blog/.github/workflows/gh-pages.yml",
|
|
190
|
-
target: "_blank",
|
|
191
|
-
rel: "noreferrer"
|
|
192
|
-
}, {
|
|
193
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
194
|
-
if (_push3) {
|
|
195
|
-
_push3(`<code${_scopeId2}>.github/workflows/gh-pages.yml</code>`);
|
|
196
|
-
} else {
|
|
197
|
-
return [
|
|
198
|
-
createVNode("code", null, ".github/workflows/gh-pages.yml")
|
|
199
|
-
];
|
|
200
|
-
}
|
|
201
|
-
}),
|
|
202
|
-
_: 1
|
|
203
|
-
/* STABLE */
|
|
204
|
-
}, _parent2, _scopeId));
|
|
205
|
-
_push2(` for the CI workflow of GitHub Actions.</p><ul${_scopeId}><li${_scopeId}>Select the Github repository, go to <code${_scopeId}>Settings</code>-> <code${_scopeId}>Action</code> -> <code${_scopeId}>General</code> -> <code${_scopeId}>Workflow permissions</code>, and select <code${_scopeId}>read and write permissions</code>。</li><li${_scopeId}>Push to your GitHub repository, and go to <code${_scopeId}>Settings</code> -> <code${_scopeId}>Pages</code>. Select <code${_scopeId}>gh-pages</code> branch.</li></ul><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>gh-pages</code> has been automatically deployed by <code${_scopeId}>.github/workflows/gh-pages.yml</code>.</p></blockquote><blockquote${_scopeId}><p${_scopeId}>Please note that the 'on.push.branches' in' gh-pages.yml' should be modified to the branch where your source code is located, and the default is 'main'.</p></blockquote></div><h4 id="netlify" tabindex="-1"${_scopeId}>Netlify `);
|
|
206
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
207
|
-
class: "header-anchor",
|
|
208
|
-
href: "#netlify",
|
|
209
|
-
"aria-label": 'Permalink to "Netlify"'
|
|
210
|
-
}, {
|
|
211
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
212
|
-
if (_push3) {
|
|
213
|
-
_push3(``);
|
|
214
|
-
} else {
|
|
215
|
-
return [
|
|
216
|
-
createTextVNode("")
|
|
217
|
-
];
|
|
218
|
-
}
|
|
219
|
-
}),
|
|
220
|
-
_: 1
|
|
221
|
-
/* STABLE */
|
|
222
|
-
}, _parent2, _scopeId));
|
|
223
|
-
_push2(`</h4>`);
|
|
224
|
-
_push2(ssrRenderComponent(_component_BrandIcon, {
|
|
225
|
-
icon: "i-simple-icons-netlify",
|
|
226
|
-
link: "https://www.netlify.com/"
|
|
227
|
-
}, null, _parent2, _scopeId));
|
|
228
|
-
_push2(`<div lang="zh-CN"${_scopeId}><p${_scopeId}>已内置 <code${_scopeId}>netlify.toml</code>。</p><ul${_scopeId}><li${_scopeId}>连接 GitHub 仓库,可自动部署。</li></ul></div><div lang="en"${_scopeId}><p${_scopeId}><code${_scopeId}>netlify.toml</code> is built-in.</p></div><h4 id="vercel" tabindex="-1"${_scopeId}>Vercel `);
|
|
229
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
230
|
-
class: "header-anchor",
|
|
231
|
-
href: "#vercel",
|
|
232
|
-
"aria-label": 'Permalink to "Vercel"'
|
|
233
|
-
}, {
|
|
234
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
235
|
-
if (_push3) {
|
|
236
|
-
_push3(``);
|
|
237
|
-
} else {
|
|
238
|
-
return [
|
|
239
|
-
createTextVNode("")
|
|
240
|
-
];
|
|
241
|
-
}
|
|
242
|
-
}),
|
|
243
|
-
_: 1
|
|
244
|
-
/* STABLE */
|
|
245
|
-
}, _parent2, _scopeId));
|
|
246
|
-
_push2(`</h4>`);
|
|
247
|
-
_push2(ssrRenderComponent(_component_BrandIcon, {
|
|
248
|
-
icon: "i-simple-icons-vercel",
|
|
249
|
-
link: "https://vercel.com/"
|
|
250
|
-
}, null, _parent2, _scopeId));
|
|
251
|
-
_push2(`<div lang="zh-CN"${_scopeId}><ul${_scopeId}><li${_scopeId}>在 Vercel 的 Dashboard 上,点击 <code${_scopeId}>Add New...</code>,随后点击 <code${_scopeId}>Project</code> 新建一个项目。</li><li${_scopeId}>在左侧选择要部署的仓库,点击 <code${_scopeId}>Import</code>,随后将 <code${_scopeId}>Framework Preset</code> 设置为 <code${_scopeId}>Other</code> 并更改 <code${_scopeId}>Build and Output Settings</code>。</li><li${_scopeId}>将 <code${_scopeId}>Output Directory</code> 设置为 <code${_scopeId}>dist</code> 后,点击 <code${_scopeId}>Deploy</code>。</li><li${_scopeId}>等待屏幕上撒下彩带后访问即可。</li></ul></div><div lang="en"${_scopeId}><ul${_scopeId}><li${_scopeId}>On Vercel Dashboard, click <code${_scopeId}>Add New...</code>, then click <code${_scopeId}>Project</code> to create a project.</li><li${_scopeId}>Select the repository you want to deploy and click <code${_scopeId}>Import</code> and then set <code${_scopeId}>Framework Preset</code> to <code${_scopeId}>Other</code> and modify <code${_scopeId}>Build and Output Settings</code>.</li><li${_scopeId}>Turn on the switch on the right of the textbox and type <code${_scopeId}>dist</code>, click <code${_scopeId}>Deploy</code>.</li><li${_scopeId}>Wait for ribbons to drop on the screen, then visit your website.</li></ul></div><h4 id="cloudflare-pages" tabindex="-1"${_scopeId}>Cloudflare Pages `);
|
|
252
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
253
|
-
class: "header-anchor",
|
|
254
|
-
href: "#cloudflare-pages",
|
|
255
|
-
"aria-label": 'Permalink to "Cloudflare Pages"'
|
|
256
|
-
}, {
|
|
257
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
258
|
-
if (_push3) {
|
|
259
|
-
_push3(``);
|
|
260
|
-
} else {
|
|
261
|
-
return [
|
|
262
|
-
createTextVNode("")
|
|
263
|
-
];
|
|
264
|
-
}
|
|
265
|
-
}),
|
|
266
|
-
_: 1
|
|
267
|
-
/* STABLE */
|
|
268
|
-
}, _parent2, _scopeId));
|
|
269
|
-
_push2(`</h4>`);
|
|
270
|
-
_push2(ssrRenderComponent(_component_BrandIcon, {
|
|
271
|
-
icon: "i-simple-icons-cloudflare",
|
|
272
|
-
link: "https://pages.cloudflare.com/"
|
|
273
|
-
}, null, _parent2, _scopeId));
|
|
274
|
-
_push2(`<div lang="zh-CN"${_scopeId}><ul${_scopeId}><li${_scopeId}>登录你的 Cloudflare 账号,导航到 “Pages” 页面。</li><li${_scopeId}>点击 <code${_scopeId}>创建项目</code>、<code${_scopeId}>连接到 Git</code>,选择你的 GitHub 或者 GitLab 仓库,并点击 <code${_scopeId}>开始设置</code>。</li><li${_scopeId}>选择你的部署分支,将 <code${_scopeId}>构建输出目录</code> 设置为 <code${_scopeId}>dist</code> 后添加一个环境变量。</li></ul><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>NODE_VERSION</code>: <code${_scopeId}>16</code> (设置 Node 版本)</p></blockquote><ul${_scopeId}><li${_scopeId}>点击 <code${_scopeId}>保存并部署</code>。</li></ul></div><div lang="en"${_scopeId}><ul${_scopeId}><li${_scopeId}>Login to your Cloudflare account and navigate to "Pages" page.</li><li${_scopeId}>Click <code${_scopeId}>Create a project</code> and <code${_scopeId}>Connect to Git</code>, then select your GitHub or GitLab repository and click <code${_scopeId}>Begin setup</code>.</li><li${_scopeId}>Select your Production branch, set <code${_scopeId}>Build output directory</code> to <code${_scopeId}>dist</code> and add an environment variable.</li></ul><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>NODE_VERSION</code>: <code${_scopeId}>16</code> (Set Node version)</p></blockquote><ul${_scopeId}><li${_scopeId}>Then click "Save and Deploy".</li></ul></div><h4 lang="zh-CN" id="其他" tabindex="-1"${_scopeId}>其他 `);
|
|
275
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
276
|
-
class: "header-anchor",
|
|
277
|
-
href: "#其他",
|
|
278
|
-
"aria-label": 'Permalink to "其他 {lang="zh-CN"}"'
|
|
279
|
-
}, {
|
|
280
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
281
|
-
if (_push3) {
|
|
282
|
-
_push3(``);
|
|
283
|
-
} else {
|
|
284
|
-
return [
|
|
285
|
-
createTextVNode("")
|
|
286
|
-
];
|
|
287
|
-
}
|
|
288
|
-
}),
|
|
289
|
-
_: 1
|
|
290
|
-
/* STABLE */
|
|
291
|
-
}, _parent2, _scopeId));
|
|
292
|
-
_push2(`</h4><h4 lang="en" id="others" tabindex="-1"${_scopeId}>Others `);
|
|
293
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
294
|
-
class: "header-anchor",
|
|
295
|
-
href: "#others",
|
|
296
|
-
"aria-label": 'Permalink to "Others {lang="en"}"'
|
|
297
|
-
}, {
|
|
298
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
299
|
-
if (_push3) {
|
|
300
|
-
_push3(``);
|
|
301
|
-
} else {
|
|
302
|
-
return [
|
|
303
|
-
createTextVNode("")
|
|
304
|
-
];
|
|
305
|
-
}
|
|
306
|
-
}),
|
|
307
|
-
_: 1
|
|
308
|
-
/* STABLE */
|
|
309
|
-
}, _parent2, _scopeId));
|
|
310
|
-
_push2(`</h4>`);
|
|
311
|
-
_push2(ssrRenderComponent(_component_BrandIcon, {
|
|
312
|
-
icon: "i-simple-icons-render",
|
|
313
|
-
link: "https://render.com/"
|
|
314
|
-
}, null, _parent2, _scopeId));
|
|
315
|
-
_push2(`<div lang="zh-CN"${_scopeId}><p${_scopeId}>你还可以使用 `);
|
|
316
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
317
|
-
href: "https://render.com/",
|
|
318
|
-
target: "_blank",
|
|
319
|
-
rel: "noreferrer"
|
|
320
|
-
}, {
|
|
321
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
322
|
-
if (_push3) {
|
|
323
|
-
_push3(`Render`);
|
|
324
|
-
} else {
|
|
325
|
-
return [
|
|
326
|
-
createTextVNode("Render")
|
|
327
|
-
];
|
|
328
|
-
}
|
|
329
|
-
}),
|
|
330
|
-
_: 1
|
|
331
|
-
/* STABLE */
|
|
332
|
-
}, _parent2, _scopeId));
|
|
333
|
-
_push2(` 等进行托管。</p></div><div lang="en"${_scopeId}><p${_scopeId}>You can also use `);
|
|
334
|
-
_push2(ssrRenderComponent(_component_AppLink, {
|
|
335
|
-
href: "https://render.com/",
|
|
336
|
-
target: "_blank",
|
|
337
|
-
rel: "noreferrer"
|
|
338
|
-
}, {
|
|
339
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
340
|
-
if (_push3) {
|
|
341
|
-
_push3(`Render`);
|
|
342
|
-
} else {
|
|
343
|
-
return [
|
|
344
|
-
createTextVNode("Render")
|
|
345
|
-
];
|
|
346
|
-
}
|
|
347
|
-
}),
|
|
348
|
-
_: 1
|
|
349
|
-
/* STABLE */
|
|
350
|
-
}, _parent2, _scopeId));
|
|
351
|
-
_push2(` to host your website.</p></div>`);
|
|
352
|
-
} else {
|
|
353
|
-
return [
|
|
354
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
355
|
-
createVNode("p", null, "Valaxy 的部署非常简单,我们推荐你直接通过第三方的 CI 构建并托管到任意平台。")
|
|
356
|
-
]),
|
|
357
|
-
createVNode("div", { lang: "en" }, [
|
|
358
|
-
createVNode("p", null, "Deploying Valaxy is very easy. We suggest that you build and deploy to any platform using third party CI.")
|
|
359
|
-
]),
|
|
360
|
-
createVNode("h3", {
|
|
361
|
-
lang: "zh-CN",
|
|
362
|
-
id: "自行部署",
|
|
363
|
-
tabindex: "-1"
|
|
364
|
-
}, [
|
|
365
|
-
createTextVNode("自行部署 "),
|
|
366
|
-
createVNode(_component_AppLink, {
|
|
367
|
-
class: "header-anchor",
|
|
368
|
-
href: "#自行部署",
|
|
369
|
-
"aria-label": 'Permalink to "自行部署 {lang="zh-CN"}"'
|
|
370
|
-
}, {
|
|
371
|
-
default: withCtx(() => [
|
|
372
|
-
createTextVNode("")
|
|
373
|
-
]),
|
|
374
|
-
_: 1
|
|
375
|
-
/* STABLE */
|
|
376
|
-
})
|
|
377
|
-
]),
|
|
378
|
-
createVNode("h3", {
|
|
379
|
-
lang: "en",
|
|
380
|
-
id: "manual-deployment",
|
|
381
|
-
tabindex: "-1"
|
|
382
|
-
}, [
|
|
383
|
-
createTextVNode("Manual Deployment "),
|
|
384
|
-
createVNode(_component_AppLink, {
|
|
385
|
-
class: "header-anchor",
|
|
386
|
-
href: "#manual-deployment",
|
|
387
|
-
"aria-label": 'Permalink to "Manual Deployment {lang="en"}"'
|
|
388
|
-
}, {
|
|
389
|
-
default: withCtx(() => [
|
|
390
|
-
createTextVNode("")
|
|
391
|
-
]),
|
|
392
|
-
_: 1
|
|
393
|
-
/* STABLE */
|
|
394
|
-
})
|
|
395
|
-
]),
|
|
396
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
397
|
-
createVNode("div", { class: "language-bash" }, [
|
|
398
|
-
createVNode("button", {
|
|
399
|
-
title: "Copy Code",
|
|
400
|
-
class: "copy"
|
|
401
|
-
}),
|
|
402
|
-
createVNode("span", { class: "lang" }, "bash"),
|
|
403
|
-
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
404
|
-
createVNode("code", null, [
|
|
405
|
-
createVNode("span", { class: "line" }, [
|
|
406
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# 构建打包")
|
|
407
|
-
]),
|
|
408
|
-
createTextVNode("\n"),
|
|
409
|
-
createVNode("span", { class: "line" }, [
|
|
410
|
-
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
411
|
-
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
412
|
-
createVNode("span", { style: { "color": "#9ECBFF" } }, "run"),
|
|
413
|
-
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
414
|
-
createVNode("span", { style: { "color": "#9ECBFF" } }, "build")
|
|
415
|
-
]),
|
|
416
|
-
createTextVNode("\n"),
|
|
417
|
-
createVNode("span", { class: "line" }, [
|
|
418
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# dist 文件夹为构建后的内容")
|
|
419
|
-
])
|
|
420
|
-
])
|
|
421
|
-
]),
|
|
422
|
-
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
423
|
-
createVNode("code", null, [
|
|
424
|
-
createVNode("span", { class: "line" }, [
|
|
425
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# 构建打包")
|
|
426
|
-
]),
|
|
427
|
-
createTextVNode("\n"),
|
|
428
|
-
createVNode("span", { class: "line" }, [
|
|
429
|
-
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
430
|
-
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
431
|
-
createVNode("span", { style: { "color": "#032F62" } }, "run"),
|
|
432
|
-
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
433
|
-
createVNode("span", { style: { "color": "#032F62" } }, "build")
|
|
434
|
-
]),
|
|
435
|
-
createTextVNode("\n"),
|
|
436
|
-
createVNode("span", { class: "line" }, [
|
|
437
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# dist 文件夹为构建后的内容")
|
|
438
|
-
])
|
|
439
|
-
])
|
|
440
|
-
])
|
|
441
|
-
])
|
|
442
|
-
]),
|
|
443
|
-
createVNode("div", { lang: "en" }, [
|
|
444
|
-
createVNode("div", { class: "language-bash" }, [
|
|
445
|
-
createVNode("button", {
|
|
446
|
-
title: "Copy Code",
|
|
447
|
-
class: "copy"
|
|
448
|
-
}),
|
|
449
|
-
createVNode("span", { class: "lang" }, "bash"),
|
|
450
|
-
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
451
|
-
createVNode("code", null, [
|
|
452
|
-
createVNode("span", { class: "line" }, [
|
|
453
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# Build the package")
|
|
454
|
-
]),
|
|
455
|
-
createTextVNode("\n"),
|
|
456
|
-
createVNode("span", { class: "line" }, [
|
|
457
|
-
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
458
|
-
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
459
|
-
createVNode("span", { style: { "color": "#9ECBFF" } }, "run"),
|
|
460
|
-
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
461
|
-
createVNode("span", { style: { "color": "#9ECBFF" } }, "build")
|
|
462
|
-
]),
|
|
463
|
-
createTextVNode("\n"),
|
|
464
|
-
createVNode("span", { class: "line" }, [
|
|
465
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# The `dist/` directory contains the artifact")
|
|
466
|
-
])
|
|
467
|
-
])
|
|
468
|
-
]),
|
|
469
|
-
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
470
|
-
createVNode("code", null, [
|
|
471
|
-
createVNode("span", { class: "line" }, [
|
|
472
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# Build the package")
|
|
473
|
-
]),
|
|
474
|
-
createTextVNode("\n"),
|
|
475
|
-
createVNode("span", { class: "line" }, [
|
|
476
|
-
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
477
|
-
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
478
|
-
createVNode("span", { style: { "color": "#032F62" } }, "run"),
|
|
479
|
-
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
480
|
-
createVNode("span", { style: { "color": "#032F62" } }, "build")
|
|
481
|
-
]),
|
|
482
|
-
createTextVNode("\n"),
|
|
483
|
-
createVNode("span", { class: "line" }, [
|
|
484
|
-
createVNode("span", { style: { "color": "#6A737D" } }, "# The `dist/` directory contains the artifact")
|
|
485
|
-
])
|
|
486
|
-
])
|
|
487
|
-
])
|
|
488
|
-
])
|
|
489
|
-
]),
|
|
490
|
-
createVNode("h3", {
|
|
491
|
-
lang: "zh-CN",
|
|
492
|
-
id: "第三方部署",
|
|
493
|
-
tabindex: "-1"
|
|
494
|
-
}, [
|
|
495
|
-
createTextVNode("第三方部署 "),
|
|
496
|
-
createVNode(_component_AppLink, {
|
|
497
|
-
class: "header-anchor",
|
|
498
|
-
href: "#第三方部署",
|
|
499
|
-
"aria-label": 'Permalink to "第三方部署 {lang="zh-CN"}"'
|
|
500
|
-
}, {
|
|
501
|
-
default: withCtx(() => [
|
|
502
|
-
createTextVNode("")
|
|
503
|
-
]),
|
|
504
|
-
_: 1
|
|
505
|
-
/* STABLE */
|
|
506
|
-
})
|
|
507
|
-
]),
|
|
508
|
-
createVNode("h3", {
|
|
509
|
-
lang: "en",
|
|
510
|
-
id: "third-party-deployment",
|
|
511
|
-
tabindex: "-1"
|
|
512
|
-
}, [
|
|
513
|
-
createTextVNode("Third Party Deployment "),
|
|
514
|
-
createVNode(_component_AppLink, {
|
|
515
|
-
class: "header-anchor",
|
|
516
|
-
href: "#third-party-deployment",
|
|
517
|
-
"aria-label": 'Permalink to "Third Party Deployment {lang="en"}"'
|
|
518
|
-
}, {
|
|
519
|
-
default: withCtx(() => [
|
|
520
|
-
createTextVNode("")
|
|
521
|
-
]),
|
|
522
|
-
_: 1
|
|
523
|
-
/* STABLE */
|
|
524
|
-
})
|
|
525
|
-
]),
|
|
526
|
-
createVNode("h4", {
|
|
527
|
-
id: "github-pages",
|
|
528
|
-
tabindex: "-1"
|
|
529
|
-
}, [
|
|
530
|
-
createTextVNode("GitHub Pages "),
|
|
531
|
-
createVNode(_component_AppLink, {
|
|
532
|
-
class: "header-anchor",
|
|
533
|
-
href: "#github-pages",
|
|
534
|
-
"aria-label": 'Permalink to "GitHub Pages"'
|
|
535
|
-
}, {
|
|
536
|
-
default: withCtx(() => [
|
|
537
|
-
createTextVNode("")
|
|
538
|
-
]),
|
|
539
|
-
_: 1
|
|
540
|
-
/* STABLE */
|
|
541
|
-
})
|
|
542
|
-
]),
|
|
543
|
-
createVNode(_component_BrandIcon, {
|
|
544
|
-
icon: "i-simple-icons-github",
|
|
545
|
-
link: "https://pages.github.com/"
|
|
546
|
-
}),
|
|
547
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
548
|
-
createVNode("p", null, [
|
|
549
|
-
createTextVNode("在使用 "),
|
|
550
|
-
createVNode("code", null, "pnpm create valaxy"),
|
|
551
|
-
createTextVNode(" 创建模版项目时,已内置文件"),
|
|
552
|
-
createVNode(_component_AppLink, {
|
|
553
|
-
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/create-valaxy/template-blog/.github/workflows/gh-pages.yml",
|
|
554
|
-
target: "_blank",
|
|
555
|
-
rel: "noreferrer"
|
|
556
|
-
}, {
|
|
557
|
-
default: withCtx(() => [
|
|
558
|
-
createVNode("code", null, ".github/workflows/gh-pages.yml")
|
|
559
|
-
]),
|
|
560
|
-
_: 1
|
|
561
|
-
/* STABLE */
|
|
562
|
-
}),
|
|
563
|
-
createTextVNode(" 以实现 GitHub Actions 的自动部署工作流。")
|
|
564
|
-
]),
|
|
565
|
-
createVNode("ul", null, [
|
|
566
|
-
createVNode("li", null, [
|
|
567
|
-
createTextVNode("选择 Github Repo,打开 "),
|
|
568
|
-
createVNode("code", null, "Settings"),
|
|
569
|
-
createTextVNode("-> "),
|
|
570
|
-
createVNode("code", null, "Action"),
|
|
571
|
-
createTextVNode(" -> "),
|
|
572
|
-
createVNode("code", null, "General"),
|
|
573
|
-
createTextVNode(" -> "),
|
|
574
|
-
createVNode("code", null, "Workflow permissions"),
|
|
575
|
-
createTextVNode(",选择 "),
|
|
576
|
-
createVNode("code", null, "read and write permissions"),
|
|
577
|
-
createTextVNode("。")
|
|
578
|
-
]),
|
|
579
|
-
createVNode("li", null, [
|
|
580
|
-
createTextVNode("上传至 GitHub Repo,打开 "),
|
|
581
|
-
createVNode("code", null, "Settings"),
|
|
582
|
-
createTextVNode(" -> "),
|
|
583
|
-
createVNode("code", null, "Pages"),
|
|
584
|
-
createTextVNode(",选择 "),
|
|
585
|
-
createVNode("code", null, "gh-pages"),
|
|
586
|
-
createTextVNode(" 分支。")
|
|
587
|
-
])
|
|
588
|
-
]),
|
|
589
|
-
createVNode("blockquote", null, [
|
|
590
|
-
createVNode("p", null, [
|
|
591
|
-
createVNode("code", null, "gh-pages"),
|
|
592
|
-
createTextVNode(" 已由 "),
|
|
593
|
-
createVNode("code", null, ".github/workflows/gh-pages.yml"),
|
|
594
|
-
createTextVNode(" 自动部署。")
|
|
595
|
-
])
|
|
596
|
-
]),
|
|
597
|
-
createVNode("blockquote", null, [
|
|
598
|
-
createVNode("p", null, [
|
|
599
|
-
createTextVNode("注意修改 "),
|
|
600
|
-
createVNode("code", null, "gh-pages.yml"),
|
|
601
|
-
createTextVNode(" 中的 "),
|
|
602
|
-
createVNode("code", null, "on.push.branches"),
|
|
603
|
-
createTextVNode(" 为你源代码所在的分支,默认为 "),
|
|
604
|
-
createVNode("code", null, "main"),
|
|
605
|
-
createTextVNode("。")
|
|
606
|
-
])
|
|
607
|
-
])
|
|
608
|
-
]),
|
|
609
|
-
createVNode("div", { lang: "en" }, [
|
|
610
|
-
createVNode("p", null, [
|
|
611
|
-
createTextVNode("When you use "),
|
|
612
|
-
createVNode("code", null, "pnpm create valaxy"),
|
|
613
|
-
createTextVNode(" to create a template project, it contains the file "),
|
|
614
|
-
createVNode(_component_AppLink, {
|
|
615
|
-
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/create-valaxy/template-blog/.github/workflows/gh-pages.yml",
|
|
616
|
-
target: "_blank",
|
|
617
|
-
rel: "noreferrer"
|
|
618
|
-
}, {
|
|
619
|
-
default: withCtx(() => [
|
|
620
|
-
createVNode("code", null, ".github/workflows/gh-pages.yml")
|
|
621
|
-
]),
|
|
622
|
-
_: 1
|
|
623
|
-
/* STABLE */
|
|
624
|
-
}),
|
|
625
|
-
createTextVNode(" for the CI workflow of GitHub Actions.")
|
|
626
|
-
]),
|
|
627
|
-
createVNode("ul", null, [
|
|
628
|
-
createVNode("li", null, [
|
|
629
|
-
createTextVNode("Select the Github repository, go to "),
|
|
630
|
-
createVNode("code", null, "Settings"),
|
|
631
|
-
createTextVNode("-> "),
|
|
632
|
-
createVNode("code", null, "Action"),
|
|
633
|
-
createTextVNode(" -> "),
|
|
634
|
-
createVNode("code", null, "General"),
|
|
635
|
-
createTextVNode(" -> "),
|
|
636
|
-
createVNode("code", null, "Workflow permissions"),
|
|
637
|
-
createTextVNode(", and select "),
|
|
638
|
-
createVNode("code", null, "read and write permissions"),
|
|
639
|
-
createTextVNode("。")
|
|
640
|
-
]),
|
|
641
|
-
createVNode("li", null, [
|
|
642
|
-
createTextVNode("Push to your GitHub repository, and go to "),
|
|
643
|
-
createVNode("code", null, "Settings"),
|
|
644
|
-
createTextVNode(" -> "),
|
|
645
|
-
createVNode("code", null, "Pages"),
|
|
646
|
-
createTextVNode(". Select "),
|
|
647
|
-
createVNode("code", null, "gh-pages"),
|
|
648
|
-
createTextVNode(" branch.")
|
|
649
|
-
])
|
|
650
|
-
]),
|
|
651
|
-
createVNode("blockquote", null, [
|
|
652
|
-
createVNode("p", null, [
|
|
653
|
-
createVNode("code", null, "gh-pages"),
|
|
654
|
-
createTextVNode(" has been automatically deployed by "),
|
|
655
|
-
createVNode("code", null, ".github/workflows/gh-pages.yml"),
|
|
656
|
-
createTextVNode(".")
|
|
657
|
-
])
|
|
658
|
-
]),
|
|
659
|
-
createVNode("blockquote", null, [
|
|
660
|
-
createVNode("p", null, "Please note that the 'on.push.branches' in' gh-pages.yml' should be modified to the branch where your source code is located, and the default is 'main'.")
|
|
661
|
-
])
|
|
662
|
-
]),
|
|
663
|
-
createVNode("h4", {
|
|
664
|
-
id: "netlify",
|
|
665
|
-
tabindex: "-1"
|
|
666
|
-
}, [
|
|
667
|
-
createTextVNode("Netlify "),
|
|
668
|
-
createVNode(_component_AppLink, {
|
|
669
|
-
class: "header-anchor",
|
|
670
|
-
href: "#netlify",
|
|
671
|
-
"aria-label": 'Permalink to "Netlify"'
|
|
672
|
-
}, {
|
|
673
|
-
default: withCtx(() => [
|
|
674
|
-
createTextVNode("")
|
|
675
|
-
]),
|
|
676
|
-
_: 1
|
|
677
|
-
/* STABLE */
|
|
678
|
-
})
|
|
679
|
-
]),
|
|
680
|
-
createVNode(_component_BrandIcon, {
|
|
681
|
-
icon: "i-simple-icons-netlify",
|
|
682
|
-
link: "https://www.netlify.com/"
|
|
683
|
-
}),
|
|
684
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
685
|
-
createVNode("p", null, [
|
|
686
|
-
createTextVNode("已内置 "),
|
|
687
|
-
createVNode("code", null, "netlify.toml"),
|
|
688
|
-
createTextVNode("。")
|
|
689
|
-
]),
|
|
690
|
-
createVNode("ul", null, [
|
|
691
|
-
createVNode("li", null, "连接 GitHub 仓库,可自动部署。")
|
|
692
|
-
])
|
|
693
|
-
]),
|
|
694
|
-
createVNode("div", { lang: "en" }, [
|
|
695
|
-
createVNode("p", null, [
|
|
696
|
-
createVNode("code", null, "netlify.toml"),
|
|
697
|
-
createTextVNode(" is built-in.")
|
|
698
|
-
])
|
|
699
|
-
]),
|
|
700
|
-
createVNode("h4", {
|
|
701
|
-
id: "vercel",
|
|
702
|
-
tabindex: "-1"
|
|
703
|
-
}, [
|
|
704
|
-
createTextVNode("Vercel "),
|
|
705
|
-
createVNode(_component_AppLink, {
|
|
706
|
-
class: "header-anchor",
|
|
707
|
-
href: "#vercel",
|
|
708
|
-
"aria-label": 'Permalink to "Vercel"'
|
|
709
|
-
}, {
|
|
710
|
-
default: withCtx(() => [
|
|
711
|
-
createTextVNode("")
|
|
712
|
-
]),
|
|
713
|
-
_: 1
|
|
714
|
-
/* STABLE */
|
|
715
|
-
})
|
|
716
|
-
]),
|
|
717
|
-
createVNode(_component_BrandIcon, {
|
|
718
|
-
icon: "i-simple-icons-vercel",
|
|
719
|
-
link: "https://vercel.com/"
|
|
720
|
-
}),
|
|
721
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
722
|
-
createVNode("ul", null, [
|
|
723
|
-
createVNode("li", null, [
|
|
724
|
-
createTextVNode("在 Vercel 的 Dashboard 上,点击 "),
|
|
725
|
-
createVNode("code", null, "Add New..."),
|
|
726
|
-
createTextVNode(",随后点击 "),
|
|
727
|
-
createVNode("code", null, "Project"),
|
|
728
|
-
createTextVNode(" 新建一个项目。")
|
|
729
|
-
]),
|
|
730
|
-
createVNode("li", null, [
|
|
731
|
-
createTextVNode("在左侧选择要部署的仓库,点击 "),
|
|
732
|
-
createVNode("code", null, "Import"),
|
|
733
|
-
createTextVNode(",随后将 "),
|
|
734
|
-
createVNode("code", null, "Framework Preset"),
|
|
735
|
-
createTextVNode(" 设置为 "),
|
|
736
|
-
createVNode("code", null, "Other"),
|
|
737
|
-
createTextVNode(" 并更改 "),
|
|
738
|
-
createVNode("code", null, "Build and Output Settings"),
|
|
739
|
-
createTextVNode("。")
|
|
740
|
-
]),
|
|
741
|
-
createVNode("li", null, [
|
|
742
|
-
createTextVNode("将 "),
|
|
743
|
-
createVNode("code", null, "Output Directory"),
|
|
744
|
-
createTextVNode(" 设置为 "),
|
|
745
|
-
createVNode("code", null, "dist"),
|
|
746
|
-
createTextVNode(" 后,点击 "),
|
|
747
|
-
createVNode("code", null, "Deploy"),
|
|
748
|
-
createTextVNode("。")
|
|
749
|
-
]),
|
|
750
|
-
createVNode("li", null, "等待屏幕上撒下彩带后访问即可。")
|
|
751
|
-
])
|
|
752
|
-
]),
|
|
753
|
-
createVNode("div", { lang: "en" }, [
|
|
754
|
-
createVNode("ul", null, [
|
|
755
|
-
createVNode("li", null, [
|
|
756
|
-
createTextVNode("On Vercel Dashboard, click "),
|
|
757
|
-
createVNode("code", null, "Add New..."),
|
|
758
|
-
createTextVNode(", then click "),
|
|
759
|
-
createVNode("code", null, "Project"),
|
|
760
|
-
createTextVNode(" to create a project.")
|
|
761
|
-
]),
|
|
762
|
-
createVNode("li", null, [
|
|
763
|
-
createTextVNode("Select the repository you want to deploy and click "),
|
|
764
|
-
createVNode("code", null, "Import"),
|
|
765
|
-
createTextVNode(" and then set "),
|
|
766
|
-
createVNode("code", null, "Framework Preset"),
|
|
767
|
-
createTextVNode(" to "),
|
|
768
|
-
createVNode("code", null, "Other"),
|
|
769
|
-
createTextVNode(" and modify "),
|
|
770
|
-
createVNode("code", null, "Build and Output Settings"),
|
|
771
|
-
createTextVNode(".")
|
|
772
|
-
]),
|
|
773
|
-
createVNode("li", null, [
|
|
774
|
-
createTextVNode("Turn on the switch on the right of the textbox and type "),
|
|
775
|
-
createVNode("code", null, "dist"),
|
|
776
|
-
createTextVNode(", click "),
|
|
777
|
-
createVNode("code", null, "Deploy"),
|
|
778
|
-
createTextVNode(".")
|
|
779
|
-
]),
|
|
780
|
-
createVNode("li", null, "Wait for ribbons to drop on the screen, then visit your website.")
|
|
781
|
-
])
|
|
782
|
-
]),
|
|
783
|
-
createVNode("h4", {
|
|
784
|
-
id: "cloudflare-pages",
|
|
785
|
-
tabindex: "-1"
|
|
786
|
-
}, [
|
|
787
|
-
createTextVNode("Cloudflare Pages "),
|
|
788
|
-
createVNode(_component_AppLink, {
|
|
789
|
-
class: "header-anchor",
|
|
790
|
-
href: "#cloudflare-pages",
|
|
791
|
-
"aria-label": 'Permalink to "Cloudflare Pages"'
|
|
792
|
-
}, {
|
|
793
|
-
default: withCtx(() => [
|
|
794
|
-
createTextVNode("")
|
|
795
|
-
]),
|
|
796
|
-
_: 1
|
|
797
|
-
/* STABLE */
|
|
798
|
-
})
|
|
799
|
-
]),
|
|
800
|
-
createVNode(_component_BrandIcon, {
|
|
801
|
-
icon: "i-simple-icons-cloudflare",
|
|
802
|
-
link: "https://pages.cloudflare.com/"
|
|
803
|
-
}),
|
|
804
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
805
|
-
createVNode("ul", null, [
|
|
806
|
-
createVNode("li", null, "登录你的 Cloudflare 账号,导航到 “Pages” 页面。"),
|
|
807
|
-
createVNode("li", null, [
|
|
808
|
-
createTextVNode("点击 "),
|
|
809
|
-
createVNode("code", null, "创建项目"),
|
|
810
|
-
createTextVNode("、"),
|
|
811
|
-
createVNode("code", null, "连接到 Git"),
|
|
812
|
-
createTextVNode(",选择你的 GitHub 或者 GitLab 仓库,并点击 "),
|
|
813
|
-
createVNode("code", null, "开始设置"),
|
|
814
|
-
createTextVNode("。")
|
|
815
|
-
]),
|
|
816
|
-
createVNode("li", null, [
|
|
817
|
-
createTextVNode("选择你的部署分支,将 "),
|
|
818
|
-
createVNode("code", null, "构建输出目录"),
|
|
819
|
-
createTextVNode(" 设置为 "),
|
|
820
|
-
createVNode("code", null, "dist"),
|
|
821
|
-
createTextVNode(" 后添加一个环境变量。")
|
|
822
|
-
])
|
|
823
|
-
]),
|
|
824
|
-
createVNode("blockquote", null, [
|
|
825
|
-
createVNode("p", null, [
|
|
826
|
-
createVNode("code", null, "NODE_VERSION"),
|
|
827
|
-
createTextVNode(": "),
|
|
828
|
-
createVNode("code", null, "16"),
|
|
829
|
-
createTextVNode(" (设置 Node 版本)")
|
|
830
|
-
])
|
|
831
|
-
]),
|
|
832
|
-
createVNode("ul", null, [
|
|
833
|
-
createVNode("li", null, [
|
|
834
|
-
createTextVNode("点击 "),
|
|
835
|
-
createVNode("code", null, "保存并部署"),
|
|
836
|
-
createTextVNode("。")
|
|
837
|
-
])
|
|
838
|
-
])
|
|
839
|
-
]),
|
|
840
|
-
createVNode("div", { lang: "en" }, [
|
|
841
|
-
createVNode("ul", null, [
|
|
842
|
-
createVNode("li", null, 'Login to your Cloudflare account and navigate to "Pages" page.'),
|
|
843
|
-
createVNode("li", null, [
|
|
844
|
-
createTextVNode("Click "),
|
|
845
|
-
createVNode("code", null, "Create a project"),
|
|
846
|
-
createTextVNode(" and "),
|
|
847
|
-
createVNode("code", null, "Connect to Git"),
|
|
848
|
-
createTextVNode(", then select your GitHub or GitLab repository and click "),
|
|
849
|
-
createVNode("code", null, "Begin setup"),
|
|
850
|
-
createTextVNode(".")
|
|
851
|
-
]),
|
|
852
|
-
createVNode("li", null, [
|
|
853
|
-
createTextVNode("Select your Production branch, set "),
|
|
854
|
-
createVNode("code", null, "Build output directory"),
|
|
855
|
-
createTextVNode(" to "),
|
|
856
|
-
createVNode("code", null, "dist"),
|
|
857
|
-
createTextVNode(" and add an environment variable.")
|
|
858
|
-
])
|
|
859
|
-
]),
|
|
860
|
-
createVNode("blockquote", null, [
|
|
861
|
-
createVNode("p", null, [
|
|
862
|
-
createVNode("code", null, "NODE_VERSION"),
|
|
863
|
-
createTextVNode(": "),
|
|
864
|
-
createVNode("code", null, "16"),
|
|
865
|
-
createTextVNode(" (Set Node version)")
|
|
866
|
-
])
|
|
867
|
-
]),
|
|
868
|
-
createVNode("ul", null, [
|
|
869
|
-
createVNode("li", null, 'Then click "Save and Deploy".')
|
|
870
|
-
])
|
|
871
|
-
]),
|
|
872
|
-
createVNode("h4", {
|
|
873
|
-
lang: "zh-CN",
|
|
874
|
-
id: "其他",
|
|
875
|
-
tabindex: "-1"
|
|
876
|
-
}, [
|
|
877
|
-
createTextVNode("其他 "),
|
|
878
|
-
createVNode(_component_AppLink, {
|
|
879
|
-
class: "header-anchor",
|
|
880
|
-
href: "#其他",
|
|
881
|
-
"aria-label": 'Permalink to "其他 {lang="zh-CN"}"'
|
|
882
|
-
}, {
|
|
883
|
-
default: withCtx(() => [
|
|
884
|
-
createTextVNode("")
|
|
885
|
-
]),
|
|
886
|
-
_: 1
|
|
887
|
-
/* STABLE */
|
|
888
|
-
})
|
|
889
|
-
]),
|
|
890
|
-
createVNode("h4", {
|
|
891
|
-
lang: "en",
|
|
892
|
-
id: "others",
|
|
893
|
-
tabindex: "-1"
|
|
894
|
-
}, [
|
|
895
|
-
createTextVNode("Others "),
|
|
896
|
-
createVNode(_component_AppLink, {
|
|
897
|
-
class: "header-anchor",
|
|
898
|
-
href: "#others",
|
|
899
|
-
"aria-label": 'Permalink to "Others {lang="en"}"'
|
|
900
|
-
}, {
|
|
901
|
-
default: withCtx(() => [
|
|
902
|
-
createTextVNode("")
|
|
903
|
-
]),
|
|
904
|
-
_: 1
|
|
905
|
-
/* STABLE */
|
|
906
|
-
})
|
|
907
|
-
]),
|
|
908
|
-
createVNode(_component_BrandIcon, {
|
|
909
|
-
icon: "i-simple-icons-render",
|
|
910
|
-
link: "https://render.com/"
|
|
911
|
-
}),
|
|
912
|
-
createVNode("div", { lang: "zh-CN" }, [
|
|
913
|
-
createVNode("p", null, [
|
|
914
|
-
createTextVNode("你还可以使用 "),
|
|
915
|
-
createVNode(_component_AppLink, {
|
|
916
|
-
href: "https://render.com/",
|
|
917
|
-
target: "_blank",
|
|
918
|
-
rel: "noreferrer"
|
|
919
|
-
}, {
|
|
920
|
-
default: withCtx(() => [
|
|
921
|
-
createTextVNode("Render")
|
|
922
|
-
]),
|
|
923
|
-
_: 1
|
|
924
|
-
/* STABLE */
|
|
925
|
-
}),
|
|
926
|
-
createTextVNode(" 等进行托管。")
|
|
927
|
-
])
|
|
928
|
-
]),
|
|
929
|
-
createVNode("div", { lang: "en" }, [
|
|
930
|
-
createVNode("p", null, [
|
|
931
|
-
createTextVNode("You can also use "),
|
|
932
|
-
createVNode(_component_AppLink, {
|
|
933
|
-
href: "https://render.com/",
|
|
934
|
-
target: "_blank",
|
|
935
|
-
rel: "noreferrer"
|
|
936
|
-
}, {
|
|
937
|
-
default: withCtx(() => [
|
|
938
|
-
createTextVNode("Render")
|
|
939
|
-
]),
|
|
940
|
-
_: 1
|
|
941
|
-
/* STABLE */
|
|
942
|
-
}),
|
|
943
|
-
createTextVNode(" to host your website.")
|
|
944
|
-
])
|
|
945
|
-
])
|
|
946
|
-
];
|
|
947
|
-
}
|
|
948
|
-
}),
|
|
949
|
-
"main-header": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
950
|
-
if (_push2) {
|
|
951
|
-
ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
|
|
952
|
-
} else {
|
|
953
|
-
return [
|
|
954
|
-
renderSlot(_ctx.$slots, "main-header")
|
|
955
|
-
];
|
|
956
|
-
}
|
|
957
|
-
}),
|
|
958
|
-
"main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
959
|
-
if (_push2) {
|
|
960
|
-
ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
|
|
961
|
-
} else {
|
|
962
|
-
return [
|
|
963
|
-
renderSlot(_ctx.$slots, "main-header-after")
|
|
964
|
-
];
|
|
965
|
-
}
|
|
966
|
-
}),
|
|
967
|
-
"main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
968
|
-
if (_push2) {
|
|
969
|
-
ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
|
|
970
|
-
} else {
|
|
971
|
-
return [
|
|
972
|
-
renderSlot(_ctx.$slots, "main-nav")
|
|
973
|
-
];
|
|
974
|
-
}
|
|
975
|
-
}),
|
|
976
|
-
"main-content": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
977
|
-
if (_push2) {
|
|
978
|
-
ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
|
|
979
|
-
} else {
|
|
980
|
-
return [
|
|
981
|
-
renderSlot(_ctx.$slots, "main-content")
|
|
982
|
-
];
|
|
983
|
-
}
|
|
984
|
-
}),
|
|
985
|
-
"main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
986
|
-
if (_push2) {
|
|
987
|
-
ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
|
|
988
|
-
} else {
|
|
989
|
-
return [
|
|
990
|
-
renderSlot(_ctx.$slots, "main-content-after")
|
|
991
|
-
];
|
|
992
|
-
}
|
|
993
|
-
}),
|
|
994
|
-
"main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
995
|
-
if (_push2) {
|
|
996
|
-
ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
|
|
997
|
-
} else {
|
|
998
|
-
return [
|
|
999
|
-
renderSlot(_ctx.$slots, "main-nav-before")
|
|
1000
|
-
];
|
|
1001
|
-
}
|
|
1002
|
-
}),
|
|
1003
|
-
"main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1004
|
-
if (_push2) {
|
|
1005
|
-
ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
|
|
1006
|
-
} else {
|
|
1007
|
-
return [
|
|
1008
|
-
renderSlot(_ctx.$slots, "main-nav-after")
|
|
1009
|
-
];
|
|
1010
|
-
}
|
|
1011
|
-
}),
|
|
1012
|
-
comment: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1013
|
-
if (_push2) {
|
|
1014
|
-
ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
|
|
1015
|
-
} else {
|
|
1016
|
-
return [
|
|
1017
|
-
renderSlot(_ctx.$slots, "comment")
|
|
1018
|
-
];
|
|
1019
|
-
}
|
|
1020
|
-
}),
|
|
1021
|
-
footer: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1022
|
-
if (_push2) {
|
|
1023
|
-
ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
|
|
1024
|
-
} else {
|
|
1025
|
-
return [
|
|
1026
|
-
renderSlot(_ctx.$slots, "footer")
|
|
1027
|
-
];
|
|
1028
|
-
}
|
|
1029
|
-
}),
|
|
1030
|
-
aside: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1031
|
-
if (_push2) {
|
|
1032
|
-
ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
|
|
1033
|
-
} else {
|
|
1034
|
-
return [
|
|
1035
|
-
renderSlot(_ctx.$slots, "aside")
|
|
1036
|
-
];
|
|
1037
|
-
}
|
|
1038
|
-
}),
|
|
1039
|
-
"aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1040
|
-
if (_push2) {
|
|
1041
|
-
ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
|
|
1042
|
-
} else {
|
|
1043
|
-
return [
|
|
1044
|
-
renderSlot(_ctx.$slots, "aside-custom")
|
|
1045
|
-
];
|
|
1046
|
-
}
|
|
1047
|
-
}),
|
|
1048
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1049
|
-
if (_push2) {
|
|
1050
|
-
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
1051
|
-
} else {
|
|
1052
|
-
return [
|
|
1053
|
-
renderSlot(_ctx.$slots, "default")
|
|
1054
|
-
];
|
|
1055
|
-
}
|
|
1056
|
-
}),
|
|
1057
|
-
_: 3
|
|
1058
|
-
/* FORWARDED */
|
|
1059
|
-
}, _parent));
|
|
1060
|
-
}
|
|
1061
|
-
const _sfc_setup = _sfc_main.setup;
|
|
1062
|
-
_sfc_main.setup = (props, ctx) => {
|
|
1063
|
-
const ssrContext = useSSRContext();
|
|
1064
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/guide/deploy.md");
|
|
1065
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
1066
|
-
};
|
|
1067
|
-
const deploy = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
1068
|
-
export {
|
|
1069
|
-
__pageData,
|
|
1070
|
-
deploy as default
|
|
1071
|
-
};
|