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,563 @@
|
|
|
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, ssrRenderStyle, 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":"FAQ","description":"","frontmatter":{"title":"FAQ","title_zh-CN":"常见问题","categories":["guide"],"end":false},"headers":[{"level":2,"title":"改变构建形式","slug":"改变构建形式","link":"#改变构建形式","children":[]},{"level":2,"title":"Change Generated Directory Style","slug":"change-generated-directory-style","link":"#change-generated-directory-style","children":[]},{"level":2,"title":"部署到 Github Pages 后部分页面无法访问或 JS 路径找不到","slug":"部署到-github-pages-后部分页面无法访问或-js-路径找不到","link":"#部署到-github-pages-后部分页面无法访问或-js-路径找不到","children":[]},{"level":2,"title":"After deploying to Github Pages, some pages cannot be accessed or the JS path cannot be found","slug":"after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found","link":"#after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found","children":[]}],"relativePath":"pages/faq/index.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\faq\\\\index.md","lastUpdated":1696368478000}');
|
|
25
|
+
const data = JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","title_zh-CN":"常见问题","categories":["guide"],"end":false},"headers":[{"level":2,"title":"改变构建形式","slug":"改变构建形式","link":"#改变构建形式","children":[]},{"level":2,"title":"Change Generated Directory Style","slug":"change-generated-directory-style","link":"#change-generated-directory-style","children":[]},{"level":2,"title":"部署到 Github Pages 后部分页面无法访问或 JS 路径找不到","slug":"部署到-github-pages-后部分页面无法访问或-js-路径找不到","link":"#部署到-github-pages-后部分页面无法访问或-js-路径找不到","children":[]},{"level":2,"title":"After deploying to Github Pages, some pages cannot be accessed or the JS path cannot be found","slug":"after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found","link":"#after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found","children":[]}],"relativePath":"pages/faq/index.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\faq\\\\index.md","lastUpdated":1696368478000}');
|
|
26
|
+
const _sfc_main = {
|
|
27
|
+
name: "pages/faq/index.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="change-generated-directory-style" tabindex="-1"${_scopeId}>Change Generated Directory Style `);
|
|
65
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
66
|
+
class: "header-anchor",
|
|
67
|
+
href: "#change-generated-directory-style",
|
|
68
|
+
"aria-label": 'Permalink to "Change Generated Directory Style {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><div lang="zh-CN"${_scopeId}><p${_scopeId}>Valaxy 默认将 <code${_scopeId}>xxx.md</code> 构建为 <code${_scopeId}>/xxx.html</code>。</p><p${_scopeId}>如果您更希望默认构建为 <code${_scopeId}>/xxx/index.html</code> 的形式。</p><p${_scopeId}>可以修改 <code${_scopeId}>vite-ssg</code> 的配置。</p><p${_scopeId}>在用户目录下的 <code${_scopeId}>vite.config.ts</code> 中设置:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy builds <code${_scopeId}>xxx.md</code> as <code${_scopeId}>/xxx.html</code> by default.</p><p${_scopeId}>If you prefer to build them as <code${_scopeId}>/xxx/index.html</code>, you can modify the configuration of <code${_scopeId}>vite-ssg</code>.</p><p${_scopeId}>Set it in <code${_scopeId}>vite.config.ts</code> under the user directory as follows:</p></div><div class="language-ts"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>ts</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineConfig } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'vite'</span></span>
|
|
83
|
+
<span class="line"${_scopeId}></span>
|
|
84
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>defineConfig</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>({</span></span>
|
|
85
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// ...</span></span>
|
|
86
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> ssgOptions: {</span></span>
|
|
87
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> dirStyle: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'nested'</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
|
|
88
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }</span></span>
|
|
89
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>})</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineConfig } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'vite'</span></span>
|
|
90
|
+
<span class="line"${_scopeId}></span>
|
|
91
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>export</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>default</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>defineConfig</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>({</span></span>
|
|
92
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// ...</span></span>
|
|
93
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> ssgOptions: {</span></span>
|
|
94
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> dirStyle: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'nested'</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
|
|
95
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }</span></span>
|
|
96
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><h2 lang="zh-CN" id="部署到-github-pages-后部分页面无法访问或-js-路径找不到" tabindex="-1"${_scopeId}>部署到 Github Pages 后部分页面无法访问或 JS 路径找不到 `);
|
|
97
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
98
|
+
class: "header-anchor",
|
|
99
|
+
href: "#部署到-github-pages-后部分页面无法访问或-js-路径找不到",
|
|
100
|
+
"aria-label": 'Permalink to "部署到 Github Pages 后部分页面无法访问或 JS 路径找不到 {lang="zh-CN"}"'
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
103
|
+
if (_push3) {
|
|
104
|
+
_push3(``);
|
|
105
|
+
} else {
|
|
106
|
+
return [
|
|
107
|
+
createTextVNode("")
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
}),
|
|
111
|
+
_: 1
|
|
112
|
+
/* STABLE */
|
|
113
|
+
}, _parent2, _scopeId));
|
|
114
|
+
_push2(`</h2><h2 lang="en" id="after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found" tabindex="-1"${_scopeId}>After deploying to Github Pages, some pages cannot be accessed or the JS path cannot be found `);
|
|
115
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
116
|
+
class: "header-anchor",
|
|
117
|
+
href: "#after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found",
|
|
118
|
+
"aria-label": 'Permalink to "After deploying to Github Pages, some pages cannot be accessed or the JS path cannot be found {lang="en"}"'
|
|
119
|
+
}, {
|
|
120
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
121
|
+
if (_push3) {
|
|
122
|
+
_push3(``);
|
|
123
|
+
} else {
|
|
124
|
+
return [
|
|
125
|
+
createTextVNode("")
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
}),
|
|
129
|
+
_: 1
|
|
130
|
+
/* STABLE */
|
|
131
|
+
}, _parent2, _scopeId));
|
|
132
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>Github Pages 默认使用 Jekyll 来构建静态站点,而 Jekyll 默认不会构建以 <code${_scopeId}>_</code> 开头的文件或文件夹。</p><p${_scopeId}>使用 Valaxy 构建后的产物可能会出现以 <code${_scopeId}>_</code> 开头的文件,所以这种文件提交后会被 Jekyll 的构建忽略,从而导致问题发生。</p><p${_scopeId}>实际上 Valaxy 构建后的产物可以直接用作静态站点,而不需要 Jekyll 构建这种多余的操作。</p><p${_scopeId}>如果 Github Pages 所部署内容的根路径有名为 .nojekyll 的空文件,则会跳过 Jekyll 构建操作。</p><p${_scopeId}>所以可以在项目的 <code${_scopeId}>public</code> 文件夹内新建一个名为 <code${_scopeId}>.nojekyll</code> 的文件:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Github Pages uses Jekyll by default to build static sites, and Jekyll does not build files or folders that start with <code${_scopeId}>_</code> by default.</p><p${_scopeId}>The output of the Valaxy build may contain files that start with <code${_scopeId}>_</code>, so these files will be ignored by Jekyll’s build after submission, causing problems.</p><p${_scopeId}>In fact, the output of the Valaxy build can be used directly as a static site without the need for redundant Jekyll build operations.</p><p${_scopeId}>If there is an empty file named .nojekyll in the root path of the content deployed by Github Pages, the Jekyll build operation will be skipped.</p><p${_scopeId}>So you can create a new file named <code${_scopeId}>.nojekyll</code> in the <code${_scopeId}>public</code> folder of the project:</p></div><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": "#F97583" })}"${_scopeId}>|</span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>--</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>public</span></span>
|
|
133
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>|</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>|</span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>--</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>.nojekyll</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>|</span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>--</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>public</span></span>
|
|
134
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>|</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>|</span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>--</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>.nojekyll</span></span></code></pre></div>`);
|
|
135
|
+
} else {
|
|
136
|
+
return [
|
|
137
|
+
createVNode("h2", {
|
|
138
|
+
lang: "zh-CN",
|
|
139
|
+
id: "改变构建形式",
|
|
140
|
+
tabindex: "-1"
|
|
141
|
+
}, [
|
|
142
|
+
createTextVNode("改变构建形式 "),
|
|
143
|
+
createVNode(_component_AppLink, {
|
|
144
|
+
class: "header-anchor",
|
|
145
|
+
href: "#改变构建形式",
|
|
146
|
+
"aria-label": 'Permalink to "改变构建形式 {lang="zh-CN"}"'
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
createTextVNode("")
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
/* STABLE */
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
createVNode("h2", {
|
|
156
|
+
lang: "en",
|
|
157
|
+
id: "change-generated-directory-style",
|
|
158
|
+
tabindex: "-1"
|
|
159
|
+
}, [
|
|
160
|
+
createTextVNode("Change Generated Directory Style "),
|
|
161
|
+
createVNode(_component_AppLink, {
|
|
162
|
+
class: "header-anchor",
|
|
163
|
+
href: "#change-generated-directory-style",
|
|
164
|
+
"aria-label": 'Permalink to "Change Generated Directory Style {lang="en"}"'
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
createTextVNode("")
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
/* STABLE */
|
|
171
|
+
})
|
|
172
|
+
]),
|
|
173
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
174
|
+
createVNode("p", null, [
|
|
175
|
+
createTextVNode("Valaxy 默认将 "),
|
|
176
|
+
createVNode("code", null, "xxx.md"),
|
|
177
|
+
createTextVNode(" 构建为 "),
|
|
178
|
+
createVNode("code", null, "/xxx.html"),
|
|
179
|
+
createTextVNode("。")
|
|
180
|
+
]),
|
|
181
|
+
createVNode("p", null, [
|
|
182
|
+
createTextVNode("如果您更希望默认构建为 "),
|
|
183
|
+
createVNode("code", null, "/xxx/index.html"),
|
|
184
|
+
createTextVNode(" 的形式。")
|
|
185
|
+
]),
|
|
186
|
+
createVNode("p", null, [
|
|
187
|
+
createTextVNode("可以修改 "),
|
|
188
|
+
createVNode("code", null, "vite-ssg"),
|
|
189
|
+
createTextVNode(" 的配置。")
|
|
190
|
+
]),
|
|
191
|
+
createVNode("p", null, [
|
|
192
|
+
createTextVNode("在用户目录下的 "),
|
|
193
|
+
createVNode("code", null, "vite.config.ts"),
|
|
194
|
+
createTextVNode(" 中设置:")
|
|
195
|
+
])
|
|
196
|
+
]),
|
|
197
|
+
createVNode("div", { lang: "en" }, [
|
|
198
|
+
createVNode("p", null, [
|
|
199
|
+
createTextVNode("Valaxy builds "),
|
|
200
|
+
createVNode("code", null, "xxx.md"),
|
|
201
|
+
createTextVNode(" as "),
|
|
202
|
+
createVNode("code", null, "/xxx.html"),
|
|
203
|
+
createTextVNode(" by default.")
|
|
204
|
+
]),
|
|
205
|
+
createVNode("p", null, [
|
|
206
|
+
createTextVNode("If you prefer to build them as "),
|
|
207
|
+
createVNode("code", null, "/xxx/index.html"),
|
|
208
|
+
createTextVNode(", you can modify the configuration of "),
|
|
209
|
+
createVNode("code", null, "vite-ssg"),
|
|
210
|
+
createTextVNode(".")
|
|
211
|
+
]),
|
|
212
|
+
createVNode("p", null, [
|
|
213
|
+
createTextVNode("Set it in "),
|
|
214
|
+
createVNode("code", null, "vite.config.ts"),
|
|
215
|
+
createTextVNode(" under the user directory as follows:")
|
|
216
|
+
])
|
|
217
|
+
]),
|
|
218
|
+
createVNode("div", { class: "language-ts" }, [
|
|
219
|
+
createVNode("button", {
|
|
220
|
+
title: "Copy Code",
|
|
221
|
+
class: "copy"
|
|
222
|
+
}),
|
|
223
|
+
createVNode("span", { class: "lang" }, "ts"),
|
|
224
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
225
|
+
createVNode("code", null, [
|
|
226
|
+
createVNode("span", { class: "line" }, [
|
|
227
|
+
createVNode("span", { style: { "color": "#F97583" } }, "import"),
|
|
228
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineConfig } "),
|
|
229
|
+
createVNode("span", { style: { "color": "#F97583" } }, "from"),
|
|
230
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
231
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'vite'")
|
|
232
|
+
]),
|
|
233
|
+
createTextVNode("\n"),
|
|
234
|
+
createVNode("span", { class: "line" }),
|
|
235
|
+
createTextVNode("\n"),
|
|
236
|
+
createVNode("span", { class: "line" }, [
|
|
237
|
+
createVNode("span", { style: { "color": "#F97583" } }, "export"),
|
|
238
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
239
|
+
createVNode("span", { style: { "color": "#F97583" } }, "default"),
|
|
240
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
241
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "defineConfig"),
|
|
242
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "({")
|
|
243
|
+
]),
|
|
244
|
+
createTextVNode("\n"),
|
|
245
|
+
createVNode("span", { class: "line" }, [
|
|
246
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
247
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// ...")
|
|
248
|
+
]),
|
|
249
|
+
createTextVNode("\n"),
|
|
250
|
+
createVNode("span", { class: "line" }, [
|
|
251
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " ssgOptions: {")
|
|
252
|
+
]),
|
|
253
|
+
createTextVNode("\n"),
|
|
254
|
+
createVNode("span", { class: "line" }, [
|
|
255
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " dirStyle: "),
|
|
256
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'nested'"),
|
|
257
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
|
|
258
|
+
]),
|
|
259
|
+
createTextVNode("\n"),
|
|
260
|
+
createVNode("span", { class: "line" }, [
|
|
261
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " }")
|
|
262
|
+
]),
|
|
263
|
+
createTextVNode("\n"),
|
|
264
|
+
createVNode("span", { class: "line" }, [
|
|
265
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
|
|
266
|
+
])
|
|
267
|
+
])
|
|
268
|
+
]),
|
|
269
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
270
|
+
createVNode("code", null, [
|
|
271
|
+
createVNode("span", { class: "line" }, [
|
|
272
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "import"),
|
|
273
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { defineConfig } "),
|
|
274
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "from"),
|
|
275
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
276
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'vite'")
|
|
277
|
+
]),
|
|
278
|
+
createTextVNode("\n"),
|
|
279
|
+
createVNode("span", { class: "line" }),
|
|
280
|
+
createTextVNode("\n"),
|
|
281
|
+
createVNode("span", { class: "line" }, [
|
|
282
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "export"),
|
|
283
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
284
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "default"),
|
|
285
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
286
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "defineConfig"),
|
|
287
|
+
createVNode("span", { style: { "color": "#24292E" } }, "({")
|
|
288
|
+
]),
|
|
289
|
+
createTextVNode("\n"),
|
|
290
|
+
createVNode("span", { class: "line" }, [
|
|
291
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
292
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// ...")
|
|
293
|
+
]),
|
|
294
|
+
createTextVNode("\n"),
|
|
295
|
+
createVNode("span", { class: "line" }, [
|
|
296
|
+
createVNode("span", { style: { "color": "#24292E" } }, " ssgOptions: {")
|
|
297
|
+
]),
|
|
298
|
+
createTextVNode("\n"),
|
|
299
|
+
createVNode("span", { class: "line" }, [
|
|
300
|
+
createVNode("span", { style: { "color": "#24292E" } }, " dirStyle: "),
|
|
301
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'nested'"),
|
|
302
|
+
createVNode("span", { style: { "color": "#24292E" } }, ",")
|
|
303
|
+
]),
|
|
304
|
+
createTextVNode("\n"),
|
|
305
|
+
createVNode("span", { class: "line" }, [
|
|
306
|
+
createVNode("span", { style: { "color": "#24292E" } }, " }")
|
|
307
|
+
]),
|
|
308
|
+
createTextVNode("\n"),
|
|
309
|
+
createVNode("span", { class: "line" }, [
|
|
310
|
+
createVNode("span", { style: { "color": "#24292E" } }, "})")
|
|
311
|
+
])
|
|
312
|
+
])
|
|
313
|
+
])
|
|
314
|
+
]),
|
|
315
|
+
createVNode("h2", {
|
|
316
|
+
lang: "zh-CN",
|
|
317
|
+
id: "部署到-github-pages-后部分页面无法访问或-js-路径找不到",
|
|
318
|
+
tabindex: "-1"
|
|
319
|
+
}, [
|
|
320
|
+
createTextVNode("部署到 Github Pages 后部分页面无法访问或 JS 路径找不到 "),
|
|
321
|
+
createVNode(_component_AppLink, {
|
|
322
|
+
class: "header-anchor",
|
|
323
|
+
href: "#部署到-github-pages-后部分页面无法访问或-js-路径找不到",
|
|
324
|
+
"aria-label": 'Permalink to "部署到 Github Pages 后部分页面无法访问或 JS 路径找不到 {lang="zh-CN"}"'
|
|
325
|
+
}, {
|
|
326
|
+
default: withCtx(() => [
|
|
327
|
+
createTextVNode("")
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
/* STABLE */
|
|
331
|
+
})
|
|
332
|
+
]),
|
|
333
|
+
createVNode("h2", {
|
|
334
|
+
lang: "en",
|
|
335
|
+
id: "after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found",
|
|
336
|
+
tabindex: "-1"
|
|
337
|
+
}, [
|
|
338
|
+
createTextVNode("After deploying to Github Pages, some pages cannot be accessed or the JS path cannot be found "),
|
|
339
|
+
createVNode(_component_AppLink, {
|
|
340
|
+
class: "header-anchor",
|
|
341
|
+
href: "#after-deploying-to-github-pages-some-pages-cannot-be-accessed-or-the-js-path-cannot-be-found",
|
|
342
|
+
"aria-label": 'Permalink to "After deploying to Github Pages, some pages cannot be accessed or the JS path cannot be found {lang="en"}"'
|
|
343
|
+
}, {
|
|
344
|
+
default: withCtx(() => [
|
|
345
|
+
createTextVNode("")
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
/* STABLE */
|
|
349
|
+
})
|
|
350
|
+
]),
|
|
351
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
352
|
+
createVNode("p", null, [
|
|
353
|
+
createTextVNode("Github Pages 默认使用 Jekyll 来构建静态站点,而 Jekyll 默认不会构建以 "),
|
|
354
|
+
createVNode("code", null, "_"),
|
|
355
|
+
createTextVNode(" 开头的文件或文件夹。")
|
|
356
|
+
]),
|
|
357
|
+
createVNode("p", null, [
|
|
358
|
+
createTextVNode("使用 Valaxy 构建后的产物可能会出现以 "),
|
|
359
|
+
createVNode("code", null, "_"),
|
|
360
|
+
createTextVNode(" 开头的文件,所以这种文件提交后会被 Jekyll 的构建忽略,从而导致问题发生。")
|
|
361
|
+
]),
|
|
362
|
+
createVNode("p", null, "实际上 Valaxy 构建后的产物可以直接用作静态站点,而不需要 Jekyll 构建这种多余的操作。"),
|
|
363
|
+
createVNode("p", null, "如果 Github Pages 所部署内容的根路径有名为 .nojekyll 的空文件,则会跳过 Jekyll 构建操作。"),
|
|
364
|
+
createVNode("p", null, [
|
|
365
|
+
createTextVNode("所以可以在项目的 "),
|
|
366
|
+
createVNode("code", null, "public"),
|
|
367
|
+
createTextVNode(" 文件夹内新建一个名为 "),
|
|
368
|
+
createVNode("code", null, ".nojekyll"),
|
|
369
|
+
createTextVNode(" 的文件:")
|
|
370
|
+
])
|
|
371
|
+
]),
|
|
372
|
+
createVNode("div", { lang: "en" }, [
|
|
373
|
+
createVNode("p", null, [
|
|
374
|
+
createTextVNode("Github Pages uses Jekyll by default to build static sites, and Jekyll does not build files or folders that start with "),
|
|
375
|
+
createVNode("code", null, "_"),
|
|
376
|
+
createTextVNode(" by default.")
|
|
377
|
+
]),
|
|
378
|
+
createVNode("p", null, [
|
|
379
|
+
createTextVNode("The output of the Valaxy build may contain files that start with "),
|
|
380
|
+
createVNode("code", null, "_"),
|
|
381
|
+
createTextVNode(", so these files will be ignored by Jekyll’s build after submission, causing problems.")
|
|
382
|
+
]),
|
|
383
|
+
createVNode("p", null, "In fact, the output of the Valaxy build can be used directly as a static site without the need for redundant Jekyll build operations."),
|
|
384
|
+
createVNode("p", null, "If there is an empty file named .nojekyll in the root path of the content deployed by Github Pages, the Jekyll build operation will be skipped."),
|
|
385
|
+
createVNode("p", null, [
|
|
386
|
+
createTextVNode("So you can create a new file named "),
|
|
387
|
+
createVNode("code", null, ".nojekyll"),
|
|
388
|
+
createTextVNode(" in the "),
|
|
389
|
+
createVNode("code", null, "public"),
|
|
390
|
+
createTextVNode(" folder of the project:")
|
|
391
|
+
])
|
|
392
|
+
]),
|
|
393
|
+
createVNode("div", { class: "language-bash" }, [
|
|
394
|
+
createVNode("button", {
|
|
395
|
+
title: "Copy Code",
|
|
396
|
+
class: "copy"
|
|
397
|
+
}),
|
|
398
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
399
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
400
|
+
createVNode("code", null, [
|
|
401
|
+
createVNode("span", { class: "line" }, [
|
|
402
|
+
createVNode("span", { style: { "color": "#F97583" } }, "|"),
|
|
403
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "--"),
|
|
404
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
405
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "public")
|
|
406
|
+
]),
|
|
407
|
+
createTextVNode("\n"),
|
|
408
|
+
createVNode("span", { class: "line" }, [
|
|
409
|
+
createVNode("span", { style: { "color": "#F97583" } }, "|"),
|
|
410
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
411
|
+
createVNode("span", { style: { "color": "#F97583" } }, "|"),
|
|
412
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "--"),
|
|
413
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
414
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, ".nojekyll")
|
|
415
|
+
])
|
|
416
|
+
])
|
|
417
|
+
]),
|
|
418
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
419
|
+
createVNode("code", null, [
|
|
420
|
+
createVNode("span", { class: "line" }, [
|
|
421
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "|"),
|
|
422
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "--"),
|
|
423
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
424
|
+
createVNode("span", { style: { "color": "#032F62" } }, "public")
|
|
425
|
+
]),
|
|
426
|
+
createTextVNode("\n"),
|
|
427
|
+
createVNode("span", { class: "line" }, [
|
|
428
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "|"),
|
|
429
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
430
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "|"),
|
|
431
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "--"),
|
|
432
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
433
|
+
createVNode("span", { style: { "color": "#032F62" } }, ".nojekyll")
|
|
434
|
+
])
|
|
435
|
+
])
|
|
436
|
+
])
|
|
437
|
+
])
|
|
438
|
+
];
|
|
439
|
+
}
|
|
440
|
+
}),
|
|
441
|
+
"main-header": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
442
|
+
if (_push2) {
|
|
443
|
+
ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
|
|
444
|
+
} else {
|
|
445
|
+
return [
|
|
446
|
+
renderSlot(_ctx.$slots, "main-header")
|
|
447
|
+
];
|
|
448
|
+
}
|
|
449
|
+
}),
|
|
450
|
+
"main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
451
|
+
if (_push2) {
|
|
452
|
+
ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
|
|
453
|
+
} else {
|
|
454
|
+
return [
|
|
455
|
+
renderSlot(_ctx.$slots, "main-header-after")
|
|
456
|
+
];
|
|
457
|
+
}
|
|
458
|
+
}),
|
|
459
|
+
"main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
460
|
+
if (_push2) {
|
|
461
|
+
ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
|
|
462
|
+
} else {
|
|
463
|
+
return [
|
|
464
|
+
renderSlot(_ctx.$slots, "main-nav")
|
|
465
|
+
];
|
|
466
|
+
}
|
|
467
|
+
}),
|
|
468
|
+
"main-content": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
469
|
+
if (_push2) {
|
|
470
|
+
ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
|
|
471
|
+
} else {
|
|
472
|
+
return [
|
|
473
|
+
renderSlot(_ctx.$slots, "main-content")
|
|
474
|
+
];
|
|
475
|
+
}
|
|
476
|
+
}),
|
|
477
|
+
"main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
478
|
+
if (_push2) {
|
|
479
|
+
ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
|
|
480
|
+
} else {
|
|
481
|
+
return [
|
|
482
|
+
renderSlot(_ctx.$slots, "main-content-after")
|
|
483
|
+
];
|
|
484
|
+
}
|
|
485
|
+
}),
|
|
486
|
+
"main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
487
|
+
if (_push2) {
|
|
488
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
|
|
489
|
+
} else {
|
|
490
|
+
return [
|
|
491
|
+
renderSlot(_ctx.$slots, "main-nav-before")
|
|
492
|
+
];
|
|
493
|
+
}
|
|
494
|
+
}),
|
|
495
|
+
"main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
496
|
+
if (_push2) {
|
|
497
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
|
|
498
|
+
} else {
|
|
499
|
+
return [
|
|
500
|
+
renderSlot(_ctx.$slots, "main-nav-after")
|
|
501
|
+
];
|
|
502
|
+
}
|
|
503
|
+
}),
|
|
504
|
+
comment: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
505
|
+
if (_push2) {
|
|
506
|
+
ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
|
|
507
|
+
} else {
|
|
508
|
+
return [
|
|
509
|
+
renderSlot(_ctx.$slots, "comment")
|
|
510
|
+
];
|
|
511
|
+
}
|
|
512
|
+
}),
|
|
513
|
+
footer: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
514
|
+
if (_push2) {
|
|
515
|
+
ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
|
|
516
|
+
} else {
|
|
517
|
+
return [
|
|
518
|
+
renderSlot(_ctx.$slots, "footer")
|
|
519
|
+
];
|
|
520
|
+
}
|
|
521
|
+
}),
|
|
522
|
+
aside: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
523
|
+
if (_push2) {
|
|
524
|
+
ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
|
|
525
|
+
} else {
|
|
526
|
+
return [
|
|
527
|
+
renderSlot(_ctx.$slots, "aside")
|
|
528
|
+
];
|
|
529
|
+
}
|
|
530
|
+
}),
|
|
531
|
+
"aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
532
|
+
if (_push2) {
|
|
533
|
+
ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
|
|
534
|
+
} else {
|
|
535
|
+
return [
|
|
536
|
+
renderSlot(_ctx.$slots, "aside-custom")
|
|
537
|
+
];
|
|
538
|
+
}
|
|
539
|
+
}),
|
|
540
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
541
|
+
if (_push2) {
|
|
542
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
543
|
+
} else {
|
|
544
|
+
return [
|
|
545
|
+
renderSlot(_ctx.$slots, "default")
|
|
546
|
+
];
|
|
547
|
+
}
|
|
548
|
+
}),
|
|
549
|
+
_: 3
|
|
550
|
+
/* FORWARDED */
|
|
551
|
+
}, _parent));
|
|
552
|
+
}
|
|
553
|
+
const _sfc_setup = _sfc_main.setup;
|
|
554
|
+
_sfc_main.setup = (props, ctx) => {
|
|
555
|
+
const ssrContext = useSSRContext();
|
|
556
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/faq/index.md");
|
|
557
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
558
|
+
};
|
|
559
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
560
|
+
export {
|
|
561
|
+
__pageData,
|
|
562
|
+
index as default
|
|
563
|
+
};
|