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,2625 @@
|
|
|
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":"Features","description":"","frontmatter":{"title":"Features","title_zh-CN":"亮点","categories":["getting-started"],"end":false,"top":98},"headers":[{"level":2,"title":"热更新","slug":"热更新","link":"#热更新","children":[]},{"level":2,"title":"Hot Reloading","slug":"hot-reloading","link":"#hot-reloading","children":[]},{"level":2,"title":"自定义","slug":"自定义","link":"#自定义","children":[]},{"level":2,"title":"Customization","slug":"customization","link":"#customization","children":[]},{"level":2,"title":"UnoCSS","slug":"unocss","link":"#unocss","children":[]},{"level":2,"title":"Icones","slug":"icones","link":"#icones","children":[]},{"level":2,"title":"UI","slug":"ui","link":"#ui","children":[{"level":3,"title":"代码高亮","slug":"代码高亮","link":"#代码高亮","children":[]},{"level":3,"title":"Syntax Highlighting","slug":"syntax-highlighting","link":"#syntax-highlighting","children":[]},{"level":3,"title":"自定义主题色","slug":"自定义主题色","link":"#自定义主题色","children":[]},{"level":3,"title":"Custom Theme Color","slug":"custom-theme-color","link":"#custom-theme-color","children":[]}]},{"level":2,"title":"File-based Routing","slug":"file-based-routing","link":"#file-based-routing","children":[]},{"level":2,"title":"基于文件的自动路由","slug":"基于文件的自动路由","link":"#基于文件的自动路由","children":[]},{"level":2,"title":"构建","slug":"构建","link":"#构建","children":[]},{"level":2,"title":"Building","slug":"building","link":"#building","children":[{"level":3,"title":"SSG","slug":"ssg","link":"#ssg","children":[]},{"level":3,"title":"SPA","slug":"spa","link":"#spa","children":[]}]},{"level":2,"title":"SEO","slug":"seo","link":"#seo","children":[]},{"level":2,"title":"RSS","slug":"rss","link":"#rss","children":[]},{"level":2,"title":"i18n in One Page","slug":"i18n-in-one-page","link":"#i18n-in-one-page","children":[]},{"level":2,"title":"单页 i18n","slug":"单页-i18n","link":"#单页-i18n","children":[]},{"level":2,"title":"KaTeX","slug":"katex","link":"#katex","children":[]},{"level":2,"title":"自动路由替换","slug":"自动路由替换","link":"#自动路由替换","children":[]},{"level":2,"title":"Auto Route Replacing","slug":"auto-route-replacing","link":"#auto-route-replacing","children":[]}],"relativePath":"pages/guide/features.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\features.md","lastUpdated":1696615123000}');
|
|
25
|
+
const data = JSON.parse('{"title":"Features","description":"","frontmatter":{"title":"Features","title_zh-CN":"亮点","categories":["getting-started"],"end":false,"top":98},"headers":[{"level":2,"title":"热更新","slug":"热更新","link":"#热更新","children":[]},{"level":2,"title":"Hot Reloading","slug":"hot-reloading","link":"#hot-reloading","children":[]},{"level":2,"title":"自定义","slug":"自定义","link":"#自定义","children":[]},{"level":2,"title":"Customization","slug":"customization","link":"#customization","children":[]},{"level":2,"title":"UnoCSS","slug":"unocss","link":"#unocss","children":[]},{"level":2,"title":"Icones","slug":"icones","link":"#icones","children":[]},{"level":2,"title":"UI","slug":"ui","link":"#ui","children":[{"level":3,"title":"代码高亮","slug":"代码高亮","link":"#代码高亮","children":[]},{"level":3,"title":"Syntax Highlighting","slug":"syntax-highlighting","link":"#syntax-highlighting","children":[]},{"level":3,"title":"自定义主题色","slug":"自定义主题色","link":"#自定义主题色","children":[]},{"level":3,"title":"Custom Theme Color","slug":"custom-theme-color","link":"#custom-theme-color","children":[]}]},{"level":2,"title":"File-based Routing","slug":"file-based-routing","link":"#file-based-routing","children":[]},{"level":2,"title":"基于文件的自动路由","slug":"基于文件的自动路由","link":"#基于文件的自动路由","children":[]},{"level":2,"title":"构建","slug":"构建","link":"#构建","children":[]},{"level":2,"title":"Building","slug":"building","link":"#building","children":[{"level":3,"title":"SSG","slug":"ssg","link":"#ssg","children":[]},{"level":3,"title":"SPA","slug":"spa","link":"#spa","children":[]}]},{"level":2,"title":"SEO","slug":"seo","link":"#seo","children":[]},{"level":2,"title":"RSS","slug":"rss","link":"#rss","children":[]},{"level":2,"title":"i18n in One Page","slug":"i18n-in-one-page","link":"#i18n-in-one-page","children":[]},{"level":2,"title":"单页 i18n","slug":"单页-i18n","link":"#单页-i18n","children":[]},{"level":2,"title":"KaTeX","slug":"katex","link":"#katex","children":[]},{"level":2,"title":"自动路由替换","slug":"自动路由替换","link":"#自动路由替换","children":[]},{"level":2,"title":"Auto Route Replacing","slug":"auto-route-replacing","link":"#auto-route-replacing","children":[]}],"relativePath":"pages/guide/features.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\features.md","lastUpdated":1696615123000}');
|
|
26
|
+
const _sfc_main = {
|
|
27
|
+
name: "pages/guide/features.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(`<div lang="zh-CN"${_scopeId}><p${_scopeId}>首先,我们来介绍一下 Valaxy 有哪些便捷的特性。</p></div><div lang="en"${_scopeId}><p${_scopeId}>First, I'll introduce you to some easy</p></div><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="hot-reloading" tabindex="-1"${_scopeId}>Hot Reloading `);
|
|
65
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
66
|
+
class: "header-anchor",
|
|
67
|
+
href: "#hot-reloading",
|
|
68
|
+
"aria-label": 'Permalink to "Hot Reloading {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 从配置到文章内容、动画到全局的标签、分类,全部都是支持热更新的!局部的!</p><p${_scopeId}>譬如,你修改了 <code${_scopeId}>valaxy.config.ts</code>/<code${_scopeId}>site.config.ts</code> 或是 <code${_scopeId}>xxx.md</code> 文章中的内容或 <code${_scopeId}>frontmatter</code>(<code${_scopeId}>tags</code>/<code${_scopeId}>categories</code>)所有的变动会立刻显示在预览界面上,无需手动刷新。同时热更新也是局部的,它只变动有修改的地方,不会重新刷新整个页面。</p></div><div lang="en"${_scopeId}><p${_scopeId}>It's most worth mentioning that Valaxy supports partial hot reloading, for configuration, post contents, animation, tags, categories, and much more!</p><p${_scopeId}>For example, if you modified <code${_scopeId}>valaxy.config.ts</code>/<code${_scopeId}>site.config.ts</code>, the content in <code${_scopeId}>xxx.md</code>, or <code${_scopeId}>frontmatter</code> (<code${_scopeId}>tags</code>/<code${_scopeId}>categories</code>), all changes will immediately appear on the preview page, and there is no need for manual refreshing. Also, hot reloads are local, meaning that only the place modified will change, and other elements on the page will not be refreshed.</p></div><h2 lang="zh-CN" id="自定义" tabindex="-1"${_scopeId}>自定义 `);
|
|
83
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
84
|
+
class: "header-anchor",
|
|
85
|
+
href: "#自定义",
|
|
86
|
+
"aria-label": 'Permalink to "自定义 {lang="zh-CN"}"'
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
89
|
+
if (_push3) {
|
|
90
|
+
_push3(``);
|
|
91
|
+
} else {
|
|
92
|
+
return [
|
|
93
|
+
createTextVNode("")
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
_: 1
|
|
98
|
+
/* STABLE */
|
|
99
|
+
}, _parent2, _scopeId));
|
|
100
|
+
_push2(`</h2><h2 lang="en" id="customization" tabindex="-1"${_scopeId}>Customization `);
|
|
101
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
102
|
+
class: "header-anchor",
|
|
103
|
+
href: "#customization",
|
|
104
|
+
"aria-label": 'Permalink to "Customization {lang="en"}"'
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
107
|
+
if (_push3) {
|
|
108
|
+
_push3(``);
|
|
109
|
+
} else {
|
|
110
|
+
return [
|
|
111
|
+
createTextVNode("")
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
_: 1
|
|
116
|
+
/* STABLE */
|
|
117
|
+
}, _parent2, _scopeId));
|
|
118
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>强大的自定义能力,你可以如忒修斯之船一样组件粒度地继承定制主题与你的博客。</p><p${_scopeId}>更多请参见 `);
|
|
119
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/components" }, {
|
|
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(`。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy provides powerful customization support. You can customize every component for your theme and blog just like the Ship of Theseus.</p><p${_scopeId}>See more at `);
|
|
133
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/components" }, {
|
|
134
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
135
|
+
if (_push3) {
|
|
136
|
+
_push3(`Customizing Components`);
|
|
137
|
+
} else {
|
|
138
|
+
return [
|
|
139
|
+
createTextVNode("Customizing Components")
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
}),
|
|
143
|
+
_: 1
|
|
144
|
+
/* STABLE */
|
|
145
|
+
}, _parent2, _scopeId));
|
|
146
|
+
_push2(`.</p></div><h2 id="unocss" tabindex="-1"${_scopeId}>UnoCSS `);
|
|
147
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
148
|
+
class: "header-anchor",
|
|
149
|
+
href: "#unocss",
|
|
150
|
+
"aria-label": 'Permalink to "UnoCSS"'
|
|
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(`</h2><div lang="zh-CN"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>内置的类 TailwindCSS 的工具类(基于 `);
|
|
165
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
166
|
+
href: "https://github.com/unocss/unocss",
|
|
167
|
+
target: "_blank",
|
|
168
|
+
rel: "noreferrer"
|
|
169
|
+
}, {
|
|
170
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
171
|
+
if (_push3) {
|
|
172
|
+
_push3(`UnoCSS`);
|
|
173
|
+
} else {
|
|
174
|
+
return [
|
|
175
|
+
createTextVNode("UnoCSS")
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
}),
|
|
179
|
+
_: 1
|
|
180
|
+
/* STABLE */
|
|
181
|
+
}, _parent2, _scopeId));
|
|
182
|
+
_push2(`)。</p></blockquote><p${_scopeId}>如果你使用过 `);
|
|
183
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
184
|
+
href: "https://tailwindcss.com/",
|
|
185
|
+
target: "_blank",
|
|
186
|
+
rel: "noreferrer"
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
189
|
+
if (_push3) {
|
|
190
|
+
_push3(`TailwindCSS`);
|
|
191
|
+
} else {
|
|
192
|
+
return [
|
|
193
|
+
createTextVNode("TailwindCSS")
|
|
194
|
+
];
|
|
195
|
+
}
|
|
196
|
+
}),
|
|
197
|
+
_: 1
|
|
198
|
+
/* STABLE */
|
|
199
|
+
}, _parent2, _scopeId));
|
|
200
|
+
_push2(`,那么一定能迅速领会到它的便捷之处。</p><p${_scopeId}>你可以在你的 Markdown 和 Vue 组件中肆无忌惮地使用它,而且最终它会被按需打包并加载。</p><p${_scopeId}>譬如:</p><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>这是一份 Markdown 内容。</span></span>
|
|
201
|
+
<span class="line"${_scopeId}></span>
|
|
202
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}><div class="bg-white text-blue shadow" p="4"></span></span>
|
|
203
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>这是一份 Markdown 内容。</span></span>
|
|
204
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}></div></span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>这是一份 Markdown 内容。</span></span>
|
|
205
|
+
<span class="line"${_scopeId}></span>
|
|
206
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}><div class="bg-white text-blue shadow" p="4"></span></span>
|
|
207
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>这是一份 Markdown 内容。</span></span>
|
|
208
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}></div></span></span></code></pre></div><p${_scopeId}>你可以迅速得到这样的效果:</p><div class="bg-white text-blue shadow" p="4"${_scopeId}> 这是一份 Markdown 内容。 </div></div><div lang="en"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>The builtin TailwindCSS-like util class (based on `);
|
|
209
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
210
|
+
href: "https://github.com/unocss/unocss",
|
|
211
|
+
target: "_blank",
|
|
212
|
+
rel: "noreferrer"
|
|
213
|
+
}, {
|
|
214
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
215
|
+
if (_push3) {
|
|
216
|
+
_push3(`UnoCSS`);
|
|
217
|
+
} else {
|
|
218
|
+
return [
|
|
219
|
+
createTextVNode("UnoCSS")
|
|
220
|
+
];
|
|
221
|
+
}
|
|
222
|
+
}),
|
|
223
|
+
_: 1
|
|
224
|
+
/* STABLE */
|
|
225
|
+
}, _parent2, _scopeId));
|
|
226
|
+
_push2(`).</p></blockquote><p${_scopeId}>If you have used `);
|
|
227
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
228
|
+
href: "https://tailwindcss.com/",
|
|
229
|
+
target: "_blank",
|
|
230
|
+
rel: "noreferrer"
|
|
231
|
+
}, {
|
|
232
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
233
|
+
if (_push3) {
|
|
234
|
+
_push3(`TailwindCSS`);
|
|
235
|
+
} else {
|
|
236
|
+
return [
|
|
237
|
+
createTextVNode("TailwindCSS")
|
|
238
|
+
];
|
|
239
|
+
}
|
|
240
|
+
}),
|
|
241
|
+
_: 1
|
|
242
|
+
/* STABLE */
|
|
243
|
+
}, _parent2, _scopeId));
|
|
244
|
+
_push2(` before, then you will rapidly learn it's convenience.</p><p${_scopeId}>You can use it at will in your Markdown and Vue components, and it will finally get packaged by need and loaded.</p><p${_scopeId}>For example:</p><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>This is markdown.</span></span>
|
|
245
|
+
<span class="line"${_scopeId}></span>
|
|
246
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}><div class="bg-white text-blue shadow" p="4"></span></span>
|
|
247
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>This is markdown.</span></span>
|
|
248
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}></div></span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>This is markdown.</span></span>
|
|
249
|
+
<span class="line"${_scopeId}></span>
|
|
250
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}><div class="bg-white text-blue shadow" p="4"></span></span>
|
|
251
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>This is markdown.</span></span>
|
|
252
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}></div></span></span></code></pre></div><p${_scopeId}>You will get the effect immediately like this:</p><div class="bg-white text-blue shadow" p="4"${_scopeId}> This is markdown. </div></div><h2 id="icones" tabindex="-1"${_scopeId}>Icones `);
|
|
253
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
254
|
+
class: "header-anchor",
|
|
255
|
+
href: "#icones",
|
|
256
|
+
"aria-label": 'Permalink to "Icones"'
|
|
257
|
+
}, {
|
|
258
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
259
|
+
if (_push3) {
|
|
260
|
+
_push3(``);
|
|
261
|
+
} else {
|
|
262
|
+
return [
|
|
263
|
+
createTextVNode("")
|
|
264
|
+
];
|
|
265
|
+
}
|
|
266
|
+
}),
|
|
267
|
+
_: 1
|
|
268
|
+
/* STABLE */
|
|
269
|
+
}, _parent2, _scopeId));
|
|
270
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>海量的图标</p></blockquote><p${_scopeId}>你可以任意使用 `);
|
|
271
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
272
|
+
href: "https://icones.js.org/",
|
|
273
|
+
target: "_blank",
|
|
274
|
+
rel: "noreferrer"
|
|
275
|
+
}, {
|
|
276
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
277
|
+
if (_push3) {
|
|
278
|
+
_push3(`Icones`);
|
|
279
|
+
} else {
|
|
280
|
+
return [
|
|
281
|
+
createTextVNode("Icones")
|
|
282
|
+
];
|
|
283
|
+
}
|
|
284
|
+
}),
|
|
285
|
+
_: 1
|
|
286
|
+
/* STABLE */
|
|
287
|
+
}, _parent2, _scopeId));
|
|
288
|
+
_push2(` 中可搜索到的任意图标。</p><p${_scopeId}>命名规范为 <code${_scopeId}>i-\${collection}-\${name}</code>,例如 <code${_scopeId}>i-ri-home-line</code>。</p><p${_scopeId}>主题默认安装了 `);
|
|
289
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
290
|
+
href: "https://github.com/Remix-Design/RemixIcon",
|
|
291
|
+
target: "_blank",
|
|
292
|
+
rel: "noreferrer"
|
|
293
|
+
}, {
|
|
294
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
295
|
+
if (_push3) {
|
|
296
|
+
_push3(`RemixIcon`);
|
|
297
|
+
} else {
|
|
298
|
+
return [
|
|
299
|
+
createTextVNode("RemixIcon")
|
|
300
|
+
];
|
|
301
|
+
}
|
|
302
|
+
}),
|
|
303
|
+
_: 1
|
|
304
|
+
/* STABLE */
|
|
305
|
+
}, _parent2, _scopeId));
|
|
306
|
+
_push2(`。</p><p${_scopeId}>如果你需要其他集合下的图标,可以自行安装。如:</p><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}># collection 为对应的图标集名称,如 @iconify-json/ri</span></span>
|
|
307
|
+
<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}>i</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>@iconify-json/collection</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}># collection 为对应的图标集名称,如 @iconify-json/ri</span></span>
|
|
308
|
+
<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}>i</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>@iconify-json/collection</span></span></code></pre></div><p${_scopeId}>被添加至 <code${_scopeId}>config.unocss.safelist</code> 的图标名称将全部是热加载的!</p></div><div lang="en"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>Massive amount of icons</p></blockquote><p${_scopeId}>You can use any icons that are from `);
|
|
309
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
310
|
+
href: "https://icones.js.org/",
|
|
311
|
+
target: "_blank",
|
|
312
|
+
rel: "noreferrer"
|
|
313
|
+
}, {
|
|
314
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
315
|
+
if (_push3) {
|
|
316
|
+
_push3(`Icônes`);
|
|
317
|
+
} else {
|
|
318
|
+
return [
|
|
319
|
+
createTextVNode("Icônes")
|
|
320
|
+
];
|
|
321
|
+
}
|
|
322
|
+
}),
|
|
323
|
+
_: 1
|
|
324
|
+
/* STABLE */
|
|
325
|
+
}, _parent2, _scopeId));
|
|
326
|
+
_push2(`.</p><p${_scopeId}>The naming rule is <code${_scopeId}>i-\${collection}-\${name}</code>, e.g. <code${_scopeId}>i-ri-home-line</code>.</p><p${_scopeId}>The theme by default has `);
|
|
327
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
328
|
+
href: "https://github.com/Remix-Design/RemixIcon",
|
|
329
|
+
target: "_blank",
|
|
330
|
+
rel: "noreferrer"
|
|
331
|
+
}, {
|
|
332
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
333
|
+
if (_push3) {
|
|
334
|
+
_push3(`RemixIcon`);
|
|
335
|
+
} else {
|
|
336
|
+
return [
|
|
337
|
+
createTextVNode("RemixIcon")
|
|
338
|
+
];
|
|
339
|
+
}
|
|
340
|
+
}),
|
|
341
|
+
_: 1
|
|
342
|
+
/* STABLE */
|
|
343
|
+
}, _parent2, _scopeId));
|
|
344
|
+
_push2(` installed.</p><p${_scopeId}>If you need any icons from other collections, you can install yourself. For example:</p><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}># \`collection\` is the name of the icon collection, e.g. @iconify-json/ri</span></span>
|
|
345
|
+
<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}>i</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>@iconify-json/collection</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}># \`collection\` is the name of the icon collection, e.g. @iconify-json/ri</span></span>
|
|
346
|
+
<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}>i</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>@iconify-json/collection</span></span></code></pre></div><p${_scopeId}>All icon names added to <code${_scopeId}>config.unocss.safelist</code> will be ready for hot reloading.</p></div><h2 id="ui" tabindex="-1"${_scopeId}>UI `);
|
|
347
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
348
|
+
class: "header-anchor",
|
|
349
|
+
href: "#ui",
|
|
350
|
+
"aria-label": 'Permalink to "UI"'
|
|
351
|
+
}, {
|
|
352
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
353
|
+
if (_push3) {
|
|
354
|
+
_push3(``);
|
|
355
|
+
} else {
|
|
356
|
+
return [
|
|
357
|
+
createTextVNode("")
|
|
358
|
+
];
|
|
359
|
+
}
|
|
360
|
+
}),
|
|
361
|
+
_: 1
|
|
362
|
+
/* STABLE */
|
|
363
|
+
}, _parent2, _scopeId));
|
|
364
|
+
_push2(`</h2><h3 lang="zh-CN" id="代码高亮" tabindex="-1"${_scopeId}>代码高亮 `);
|
|
365
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
366
|
+
class: "header-anchor",
|
|
367
|
+
href: "#代码高亮",
|
|
368
|
+
"aria-label": 'Permalink to "代码高亮 {lang="zh-CN"}"'
|
|
369
|
+
}, {
|
|
370
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
371
|
+
if (_push3) {
|
|
372
|
+
_push3(``);
|
|
373
|
+
} else {
|
|
374
|
+
return [
|
|
375
|
+
createTextVNode("")
|
|
376
|
+
];
|
|
377
|
+
}
|
|
378
|
+
}),
|
|
379
|
+
_: 1
|
|
380
|
+
/* STABLE */
|
|
381
|
+
}, _parent2, _scopeId));
|
|
382
|
+
_push2(`</h3><h3 lang="en" id="syntax-highlighting" tabindex="-1"${_scopeId}>Syntax Highlighting `);
|
|
383
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
384
|
+
class: "header-anchor",
|
|
385
|
+
href: "#syntax-highlighting",
|
|
386
|
+
"aria-label": 'Permalink to "Syntax Highlighting {lang="en"}"'
|
|
387
|
+
}, {
|
|
388
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
389
|
+
if (_push3) {
|
|
390
|
+
_push3(``);
|
|
391
|
+
} else {
|
|
392
|
+
return [
|
|
393
|
+
createTextVNode("")
|
|
394
|
+
];
|
|
395
|
+
}
|
|
396
|
+
}),
|
|
397
|
+
_: 1
|
|
398
|
+
/* STABLE */
|
|
399
|
+
}, _parent2, _scopeId));
|
|
400
|
+
_push2(`</h3><div lang="en"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>More info about syntax highlighting can be found at `);
|
|
401
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/markdown#syntax-highlighting" }, {
|
|
402
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
403
|
+
if (_push3) {
|
|
404
|
+
_push3(`Markdown Syntax Highlighting`);
|
|
405
|
+
} else {
|
|
406
|
+
return [
|
|
407
|
+
createTextVNode("Markdown Syntax Highlighting")
|
|
408
|
+
];
|
|
409
|
+
}
|
|
410
|
+
}),
|
|
411
|
+
_: 1
|
|
412
|
+
/* STABLE */
|
|
413
|
+
}, _parent2, _scopeId));
|
|
414
|
+
_push2(`.</p></blockquote></div><div lang="zh-CN"${_scopeId}><blockquote${_scopeId}><p${_scopeId}>更多关于代码高亮的信息请参见 `);
|
|
415
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/markdown#%E4%BB%A3%E7%A0%81%E8%A1%8C%E9%AB%98%E4%BA%AE" }, {
|
|
416
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
417
|
+
if (_push3) {
|
|
418
|
+
_push3(`Markdown 代码高亮`);
|
|
419
|
+
} else {
|
|
420
|
+
return [
|
|
421
|
+
createTextVNode("Markdown 代码高亮")
|
|
422
|
+
];
|
|
423
|
+
}
|
|
424
|
+
}),
|
|
425
|
+
_: 1
|
|
426
|
+
/* STABLE */
|
|
427
|
+
}, _parent2, _scopeId));
|
|
428
|
+
_push2(`。</p></blockquote></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>基于 `);
|
|
429
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
430
|
+
href: "https://github.com/shikijs/shiki",
|
|
431
|
+
target: "_blank",
|
|
432
|
+
rel: "noreferrer"
|
|
433
|
+
}, {
|
|
434
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
435
|
+
if (_push3) {
|
|
436
|
+
_push3(`Shiki`);
|
|
437
|
+
} else {
|
|
438
|
+
return [
|
|
439
|
+
createTextVNode("Shiki")
|
|
440
|
+
];
|
|
441
|
+
}
|
|
442
|
+
}),
|
|
443
|
+
_: 1
|
|
444
|
+
/* STABLE */
|
|
445
|
+
}, _parent2, _scopeId));
|
|
446
|
+
_push2(` 实现。 Valaxy 支持 <code${_scopeId}>vue</code> 等语法高亮,拷贝代码,高亮其中某一行。</p><p${_scopeId}>譬如:</p></div><div lang="en"${_scopeId}><p${_scopeId}>Based on `);
|
|
447
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
448
|
+
href: "https://github.com/shikijs/shiki",
|
|
449
|
+
target: "_blank",
|
|
450
|
+
rel: "noreferrer"
|
|
451
|
+
}, {
|
|
452
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
453
|
+
if (_push3) {
|
|
454
|
+
_push3(`Shiki`);
|
|
455
|
+
} else {
|
|
456
|
+
return [
|
|
457
|
+
createTextVNode("Shiki")
|
|
458
|
+
];
|
|
459
|
+
}
|
|
460
|
+
}),
|
|
461
|
+
_: 1
|
|
462
|
+
/* STABLE */
|
|
463
|
+
}, _parent2, _scopeId));
|
|
464
|
+
_push2(`. Valaxy supports syntax highlighting for languages like <code${_scopeId}>vue</code>, and also supports copying code and highlighting a particular line in the code block.</p><p${_scopeId}>For example:</p></div><div class="language-js"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>js</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>a</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>1</span></span>
|
|
465
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>b</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> a</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>a</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>1</span></span>
|
|
466
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>const</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>b</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> a</span></span></code></pre></div><h3 lang="zh-CN" id="自定义主题色" tabindex="-1"${_scopeId}>自定义主题色 `);
|
|
467
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
468
|
+
class: "header-anchor",
|
|
469
|
+
href: "#自定义主题色",
|
|
470
|
+
"aria-label": 'Permalink to "自定义主题色 {lang="zh-CN"}"'
|
|
471
|
+
}, {
|
|
472
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
473
|
+
if (_push3) {
|
|
474
|
+
_push3(``);
|
|
475
|
+
} else {
|
|
476
|
+
return [
|
|
477
|
+
createTextVNode("")
|
|
478
|
+
];
|
|
479
|
+
}
|
|
480
|
+
}),
|
|
481
|
+
_: 1
|
|
482
|
+
/* STABLE */
|
|
483
|
+
}, _parent2, _scopeId));
|
|
484
|
+
_push2(`</h3><h3 lang="en" id="custom-theme-color" tabindex="-1"${_scopeId}>Custom Theme Color `);
|
|
485
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
486
|
+
class: "header-anchor",
|
|
487
|
+
href: "#custom-theme-color",
|
|
488
|
+
"aria-label": 'Permalink to "Custom Theme Color {lang="en"}"'
|
|
489
|
+
}, {
|
|
490
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
491
|
+
if (_push3) {
|
|
492
|
+
_push3(``);
|
|
493
|
+
} else {
|
|
494
|
+
return [
|
|
495
|
+
createTextVNode("")
|
|
496
|
+
];
|
|
497
|
+
}
|
|
498
|
+
}),
|
|
499
|
+
_: 1
|
|
500
|
+
/* STABLE */
|
|
501
|
+
}, _parent2, _scopeId));
|
|
502
|
+
_push2(`</h3><div lang="zh-CN"${_scopeId}><p${_scopeId}>你只需传入一个主题色,全局各处的色彩会动态进行计算得出最终的效果。</p><p${_scopeId}>譬如我希望主题色是红色:</p><blockquote${_scopeId}><p${_scopeId}><code${_scopeId}>valaxy-theme-yun</code> 支持</p></blockquote></div><div lang="en"${_scopeId}><p${_scopeId}>You only need to provide a theme color for the global color dynamics to work and show effect.</p><p${_scopeId}>For example, if I want my theme color to be red:</p><blockquote${_scopeId}><p${_scopeId}>Supported by <code${_scopeId}>valaxy-theme-yun</code></p></blockquote></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": "#6A737D" })}"${_scopeId}>// valaxy.config.ts</span></span>
|
|
503
|
+
<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>
|
|
504
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> themeConfig: {</span></span>
|
|
505
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> colors: {</span></span>
|
|
506
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> primary: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'red'</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>,</span></span>
|
|
507
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
|
|
508
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> },</span></span>
|
|
509
|
+
<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": "#6A737D" })}"${_scopeId}>// valaxy.config.ts</span></span>
|
|
510
|
+
<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>
|
|
511
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> themeConfig: {</span></span>
|
|
512
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> colors: {</span></span>
|
|
513
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> primary: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'red'</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>,</span></span>
|
|
514
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
|
|
515
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> },</span></span>
|
|
516
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><p${_scopeId}>但不仅如此,其他主题同样可复用 Valaxy 默认提供的色彩及变量函数来快速构建自身。</p><blockquote${_scopeId}><p${_scopeId}>更多请参见 `);
|
|
517
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
518
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
519
|
+
target: "_blank",
|
|
520
|
+
rel: "noreferrer"
|
|
521
|
+
}, {
|
|
522
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
523
|
+
if (_push3) {
|
|
524
|
+
_push3(`valaxy-theme-yun`);
|
|
525
|
+
} else {
|
|
526
|
+
return [
|
|
527
|
+
createTextVNode("valaxy-theme-yun")
|
|
528
|
+
];
|
|
529
|
+
}
|
|
530
|
+
}),
|
|
531
|
+
_: 1
|
|
532
|
+
/* STABLE */
|
|
533
|
+
}, _parent2, _scopeId));
|
|
534
|
+
_push2(` 代码。</p></blockquote></div><div lang="en"${_scopeId}><p${_scopeId}>Even more, other themes can also re-use the default color dynamic functions provided by Valaxy to build their own.</p><blockquote${_scopeId}><p${_scopeId}>Please refer to code in `);
|
|
535
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
536
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
537
|
+
target: "_blank",
|
|
538
|
+
rel: "noreferrer"
|
|
539
|
+
}, {
|
|
540
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
541
|
+
if (_push3) {
|
|
542
|
+
_push3(`valaxy-theme-yun`);
|
|
543
|
+
} else {
|
|
544
|
+
return [
|
|
545
|
+
createTextVNode("valaxy-theme-yun")
|
|
546
|
+
];
|
|
547
|
+
}
|
|
548
|
+
}),
|
|
549
|
+
_: 1
|
|
550
|
+
/* STABLE */
|
|
551
|
+
}, _parent2, _scopeId));
|
|
552
|
+
_push2(` for more.</p></blockquote></div><h2 lang="en" id="file-based-routing" tabindex="-1"${_scopeId}>File-based Routing `);
|
|
553
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
554
|
+
class: "header-anchor",
|
|
555
|
+
href: "#file-based-routing",
|
|
556
|
+
"aria-label": 'Permalink to "File-based Routing {lang="en"}"'
|
|
557
|
+
}, {
|
|
558
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
559
|
+
if (_push3) {
|
|
560
|
+
_push3(``);
|
|
561
|
+
} else {
|
|
562
|
+
return [
|
|
563
|
+
createTextVNode("")
|
|
564
|
+
];
|
|
565
|
+
}
|
|
566
|
+
}),
|
|
567
|
+
_: 1
|
|
568
|
+
/* STABLE */
|
|
569
|
+
}, _parent2, _scopeId));
|
|
570
|
+
_push2(`</h2><h2 lang="zh-CN" id="基于文件的自动路由" tabindex="-1"${_scopeId}>基于文件的自动路由 `);
|
|
571
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
572
|
+
class: "header-anchor",
|
|
573
|
+
href: "#基于文件的自动路由",
|
|
574
|
+
"aria-label": 'Permalink to "基于文件的自动路由 {lang="zh-CN"}"'
|
|
575
|
+
}, {
|
|
576
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
577
|
+
if (_push3) {
|
|
578
|
+
_push3(``);
|
|
579
|
+
} else {
|
|
580
|
+
return [
|
|
581
|
+
createTextVNode("")
|
|
582
|
+
];
|
|
583
|
+
}
|
|
584
|
+
}),
|
|
585
|
+
_: 1
|
|
586
|
+
/* STABLE */
|
|
587
|
+
}, _parent2, _scopeId));
|
|
588
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>路由会自动遵循相同目录结构从当前路径中的 Vue 文件生成。更多请参考 `);
|
|
589
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
590
|
+
href: "https://github.com/hannoeru/vite-plugin-pages",
|
|
591
|
+
target: "_blank",
|
|
592
|
+
rel: "noreferrer"
|
|
593
|
+
}, {
|
|
594
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
595
|
+
if (_push3) {
|
|
596
|
+
_push3(`<code${_scopeId2}>vite-plugin-pages</code>`);
|
|
597
|
+
} else {
|
|
598
|
+
return [
|
|
599
|
+
createVNode("code", null, "vite-plugin-pages")
|
|
600
|
+
];
|
|
601
|
+
}
|
|
602
|
+
}),
|
|
603
|
+
_: 1
|
|
604
|
+
/* STABLE */
|
|
605
|
+
}, _parent2, _scopeId));
|
|
606
|
+
_push2(`。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Routes will be auto-generated for Vue files in this dir with the same file structure. Check out `);
|
|
607
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
608
|
+
href: "https://github.com/hannoeru/vite-plugin-pages",
|
|
609
|
+
target: "_blank",
|
|
610
|
+
rel: "noreferrer"
|
|
611
|
+
}, {
|
|
612
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
613
|
+
if (_push3) {
|
|
614
|
+
_push3(`<code${_scopeId2}>vite-plugin-pages</code>`);
|
|
615
|
+
} else {
|
|
616
|
+
return [
|
|
617
|
+
createVNode("code", null, "vite-plugin-pages")
|
|
618
|
+
];
|
|
619
|
+
}
|
|
620
|
+
}),
|
|
621
|
+
_: 1
|
|
622
|
+
/* STABLE */
|
|
623
|
+
}, _parent2, _scopeId));
|
|
624
|
+
_push2(` for more details.</p></div><h2 lang="zh-CN" id="构建" tabindex="-1"${_scopeId}>构建 `);
|
|
625
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
626
|
+
class: "header-anchor",
|
|
627
|
+
href: "#构建",
|
|
628
|
+
"aria-label": 'Permalink to "构建 {lang="zh-CN"}"'
|
|
629
|
+
}, {
|
|
630
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
631
|
+
if (_push3) {
|
|
632
|
+
_push3(``);
|
|
633
|
+
} else {
|
|
634
|
+
return [
|
|
635
|
+
createTextVNode("")
|
|
636
|
+
];
|
|
637
|
+
}
|
|
638
|
+
}),
|
|
639
|
+
_: 1
|
|
640
|
+
/* STABLE */
|
|
641
|
+
}, _parent2, _scopeId));
|
|
642
|
+
_push2(`</h2><h2 lang="en" id="building" tabindex="-1"${_scopeId}>Building `);
|
|
643
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
644
|
+
class: "header-anchor",
|
|
645
|
+
href: "#building",
|
|
646
|
+
"aria-label": 'Permalink to "Building {lang="en"}"'
|
|
647
|
+
}, {
|
|
648
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
649
|
+
if (_push3) {
|
|
650
|
+
_push3(``);
|
|
651
|
+
} else {
|
|
652
|
+
return [
|
|
653
|
+
createTextVNode("")
|
|
654
|
+
];
|
|
655
|
+
}
|
|
656
|
+
}),
|
|
657
|
+
_: 1
|
|
658
|
+
/* STABLE */
|
|
659
|
+
}, _parent2, _scopeId));
|
|
660
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>同时支持 SPA 与 SSG 两种方案。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Supports SPA and SSG.</p></div><h3 id="ssg" tabindex="-1"${_scopeId}>SSG `);
|
|
661
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
662
|
+
class: "header-anchor",
|
|
663
|
+
href: "#ssg",
|
|
664
|
+
"aria-label": 'Permalink to "SSG"'
|
|
665
|
+
}, {
|
|
666
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
667
|
+
if (_push3) {
|
|
668
|
+
_push3(``);
|
|
669
|
+
} else {
|
|
670
|
+
return [
|
|
671
|
+
createTextVNode("")
|
|
672
|
+
];
|
|
673
|
+
}
|
|
674
|
+
}),
|
|
675
|
+
_: 1
|
|
676
|
+
/* STABLE */
|
|
677
|
+
}, _parent2, _scopeId));
|
|
678
|
+
_push2(`</h3><div lang="zh-CN"${_scopeId}><p${_scopeId}>基于 `);
|
|
679
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
680
|
+
href: "https://github.com/antfu/vite-ssg",
|
|
681
|
+
target: "_blank",
|
|
682
|
+
rel: "noreferrer"
|
|
683
|
+
}, {
|
|
684
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
685
|
+
if (_push3) {
|
|
686
|
+
_push3(`vite-ssg`);
|
|
687
|
+
} else {
|
|
688
|
+
return [
|
|
689
|
+
createTextVNode("vite-ssg")
|
|
690
|
+
];
|
|
691
|
+
}
|
|
692
|
+
}),
|
|
693
|
+
_: 1
|
|
694
|
+
/* STABLE */
|
|
695
|
+
}, _parent2, _scopeId));
|
|
696
|
+
_push2(` 实现</p></div><div lang="en"${_scopeId}><p${_scopeId}>Based on `);
|
|
697
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
698
|
+
href: "https://github.com/antfu/vite-ssg",
|
|
699
|
+
target: "_blank",
|
|
700
|
+
rel: "noreferrer"
|
|
701
|
+
}, {
|
|
702
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
703
|
+
if (_push3) {
|
|
704
|
+
_push3(`vite-ssg`);
|
|
705
|
+
} else {
|
|
706
|
+
return [
|
|
707
|
+
createTextVNode("vite-ssg")
|
|
708
|
+
];
|
|
709
|
+
}
|
|
710
|
+
}),
|
|
711
|
+
_: 1
|
|
712
|
+
/* STABLE */
|
|
713
|
+
}, _parent2, _scopeId));
|
|
714
|
+
_push2(`</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": "#6A737D" })}"${_scopeId}># SSG</span></span>
|
|
715
|
+
<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:ssg</span></span>
|
|
716
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># valaxy build --ssg</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}># SSG</span></span>
|
|
717
|
+
<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:ssg</span></span>
|
|
718
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># valaxy build --ssg</span></span></code></pre></div><h3 id="spa" tabindex="-1"${_scopeId}>SPA `);
|
|
719
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
720
|
+
class: "header-anchor",
|
|
721
|
+
href: "#spa",
|
|
722
|
+
"aria-label": 'Permalink to "SPA"'
|
|
723
|
+
}, {
|
|
724
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
725
|
+
if (_push3) {
|
|
726
|
+
_push3(``);
|
|
727
|
+
} else {
|
|
728
|
+
return [
|
|
729
|
+
createTextVNode("")
|
|
730
|
+
];
|
|
731
|
+
}
|
|
732
|
+
}),
|
|
733
|
+
_: 1
|
|
734
|
+
/* STABLE */
|
|
735
|
+
}, _parent2, _scopeId));
|
|
736
|
+
_push2(`</h3><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": "#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:spa</span></span>
|
|
737
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># valaxy build</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><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:spa</span></span>
|
|
738
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># valaxy build</span></span></code></pre></div><h2 id="seo" tabindex="-1"${_scopeId}>SEO `);
|
|
739
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
740
|
+
class: "header-anchor",
|
|
741
|
+
href: "#seo",
|
|
742
|
+
"aria-label": 'Permalink to "SEO"'
|
|
743
|
+
}, {
|
|
744
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
745
|
+
if (_push3) {
|
|
746
|
+
_push3(``);
|
|
747
|
+
} else {
|
|
748
|
+
return [
|
|
749
|
+
createTextVNode("")
|
|
750
|
+
];
|
|
751
|
+
}
|
|
752
|
+
}),
|
|
753
|
+
_: 1
|
|
754
|
+
/* STABLE */
|
|
755
|
+
}, _parent2, _scopeId));
|
|
756
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>Valaxy 已经默认集成了 Open Graph 的 SEO 优化,您无需为此操心。 但需要注意的是,对于许多搜索引擎来说,他们可能只青睐 SSG 的构建模式。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy by default has integrated SEO optimization by Open Graph, and you don't need to worry about that. Note that for many search engines, they like SSG builds more.</p></div><h2 id="rss" tabindex="-1"${_scopeId}>RSS `);
|
|
757
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
758
|
+
class: "header-anchor",
|
|
759
|
+
href: "#rss",
|
|
760
|
+
"aria-label": 'Permalink to "RSS"'
|
|
761
|
+
}, {
|
|
762
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
763
|
+
if (_push3) {
|
|
764
|
+
_push3(``);
|
|
765
|
+
} else {
|
|
766
|
+
return [
|
|
767
|
+
createTextVNode("")
|
|
768
|
+
];
|
|
769
|
+
}
|
|
770
|
+
}),
|
|
771
|
+
_: 1
|
|
772
|
+
/* STABLE */
|
|
773
|
+
}, _parent2, _scopeId));
|
|
774
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>自带命令生成 RSS 订阅源。</p><blockquote${_scopeId}><p${_scopeId}>`);
|
|
775
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
776
|
+
href: "https://baike.baidu.com/item/rss/24470",
|
|
777
|
+
target: "_blank",
|
|
778
|
+
rel: "noreferrer"
|
|
779
|
+
}, {
|
|
780
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
781
|
+
if (_push3) {
|
|
782
|
+
_push3(`RSS 是什么?`);
|
|
783
|
+
} else {
|
|
784
|
+
return [
|
|
785
|
+
createTextVNode("RSS 是什么?")
|
|
786
|
+
];
|
|
787
|
+
}
|
|
788
|
+
}),
|
|
789
|
+
_: 1
|
|
790
|
+
/* STABLE */
|
|
791
|
+
}, _parent2, _scopeId));
|
|
792
|
+
_push2(`</p></blockquote></div><div lang="en"${_scopeId}><p${_scopeId}>Valaxy comes with a command to generate RSS feeds.</p><blockquote${_scopeId}><p${_scopeId}>`);
|
|
793
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
794
|
+
href: "https://en.wikipedia.org/wiki/RSS",
|
|
795
|
+
target: "_blank",
|
|
796
|
+
rel: "noreferrer"
|
|
797
|
+
}, {
|
|
798
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
799
|
+
if (_push3) {
|
|
800
|
+
_push3(`What is RSS?`);
|
|
801
|
+
} else {
|
|
802
|
+
return [
|
|
803
|
+
createTextVNode("What is RSS?")
|
|
804
|
+
];
|
|
805
|
+
}
|
|
806
|
+
}),
|
|
807
|
+
_: 1
|
|
808
|
+
/* STABLE */
|
|
809
|
+
}, _parent2, _scopeId));
|
|
810
|
+
_push2(`</p></blockquote></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": "#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}>rss</span></span>
|
|
811
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># valaxy rss</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><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}>rss</span></span>
|
|
812
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}># valaxy rss</span></span></code></pre></div><h2 lang="en" id="i18n-in-one-page" tabindex="-1"${_scopeId}>i18n in One Page `);
|
|
813
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
814
|
+
class: "header-anchor",
|
|
815
|
+
href: "#i18n-in-one-page",
|
|
816
|
+
"aria-label": 'Permalink to "i18n in One Page {lang="en"}"'
|
|
817
|
+
}, {
|
|
818
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
819
|
+
if (_push3) {
|
|
820
|
+
_push3(``);
|
|
821
|
+
} else {
|
|
822
|
+
return [
|
|
823
|
+
createTextVNode("")
|
|
824
|
+
];
|
|
825
|
+
}
|
|
826
|
+
}),
|
|
827
|
+
_: 1
|
|
828
|
+
/* STABLE */
|
|
829
|
+
}, _parent2, _scopeId));
|
|
830
|
+
_push2(`</h2><h2 lang="zh-CN" id="单页-i18n" tabindex="-1"${_scopeId}>单页 i18n `);
|
|
831
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
832
|
+
class: "header-anchor",
|
|
833
|
+
href: "#单页-i18n",
|
|
834
|
+
"aria-label": 'Permalink to "单页 i18n {lang="zh-CN"}"'
|
|
835
|
+
}, {
|
|
836
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
837
|
+
if (_push3) {
|
|
838
|
+
_push3(``);
|
|
839
|
+
} else {
|
|
840
|
+
return [
|
|
841
|
+
createTextVNode("")
|
|
842
|
+
];
|
|
843
|
+
}
|
|
844
|
+
}),
|
|
845
|
+
_: 1
|
|
846
|
+
/* STABLE */
|
|
847
|
+
}, _parent2, _scopeId));
|
|
848
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>详情请见 `);
|
|
849
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/posts/i18n" }, {
|
|
850
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
851
|
+
if (_push3) {
|
|
852
|
+
_push3(`i18n`);
|
|
853
|
+
} else {
|
|
854
|
+
return [
|
|
855
|
+
createTextVNode("i18n")
|
|
856
|
+
];
|
|
857
|
+
}
|
|
858
|
+
}),
|
|
859
|
+
_: 1
|
|
860
|
+
/* STABLE */
|
|
861
|
+
}, _parent2, _scopeId));
|
|
862
|
+
_push2(`。</p></div><div lang="en"${_scopeId}><p${_scopeId}>For more info, see `);
|
|
863
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/posts/i18n" }, {
|
|
864
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
865
|
+
if (_push3) {
|
|
866
|
+
_push3(`i18n`);
|
|
867
|
+
} else {
|
|
868
|
+
return [
|
|
869
|
+
createTextVNode("i18n")
|
|
870
|
+
];
|
|
871
|
+
}
|
|
872
|
+
}),
|
|
873
|
+
_: 1
|
|
874
|
+
/* STABLE */
|
|
875
|
+
}, _parent2, _scopeId));
|
|
876
|
+
_push2(`.</p></div><h2 id="katex" tabindex="-1"${_scopeId}>KaTeX `);
|
|
877
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
878
|
+
class: "header-anchor",
|
|
879
|
+
href: "#katex",
|
|
880
|
+
"aria-label": 'Permalink to "KaTeX"'
|
|
881
|
+
}, {
|
|
882
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
883
|
+
if (_push3) {
|
|
884
|
+
_push3(``);
|
|
885
|
+
} else {
|
|
886
|
+
return [
|
|
887
|
+
createTextVNode("")
|
|
888
|
+
];
|
|
889
|
+
}
|
|
890
|
+
}),
|
|
891
|
+
_: 1
|
|
892
|
+
/* STABLE */
|
|
893
|
+
}, _parent2, _scopeId));
|
|
894
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>KaTeX 已被默认支持并启用。</p></div><div lang="en"${_scopeId}><p${_scopeId}>Katex is enabled by default.</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": "#6A737D" })}"${_scopeId}>// valaxy.config.ts</span></span>
|
|
895
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> { defineValaxyConfig } </span><span style="${ssrRenderStyle({ "color": "#F97583" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'valaxy'</span></span>
|
|
896
|
+
<span class="line"${_scopeId}></span>
|
|
897
|
+
<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}>defineValaxyConfig</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>({</span></span>
|
|
898
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> features: {</span></span>
|
|
899
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// disable katex</span></span>
|
|
900
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> katex: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>false</span></span>
|
|
901
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> }</span></span>
|
|
902
|
+
<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": "#6A737D" })}"${_scopeId}>// valaxy.config.ts</span></span>
|
|
903
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>import</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> { defineValaxyConfig } </span><span style="${ssrRenderStyle({ "color": "#D73A49" })}"${_scopeId}>from</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'valaxy'</span></span>
|
|
904
|
+
<span class="line"${_scopeId}></span>
|
|
905
|
+
<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}>defineValaxyConfig</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>({</span></span>
|
|
906
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> features: {</span></span>
|
|
907
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}>// disable katex</span></span>
|
|
908
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> katex: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>false</span></span>
|
|
909
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> }</span></span>
|
|
910
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>})</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><ul${_scopeId}><li${_scopeId}>`);
|
|
911
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/examples/katex" }, {
|
|
912
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
913
|
+
if (_push3) {
|
|
914
|
+
_push3(`KaTeX | 示例`);
|
|
915
|
+
} else {
|
|
916
|
+
return [
|
|
917
|
+
createTextVNode("KaTeX | 示例")
|
|
918
|
+
];
|
|
919
|
+
}
|
|
920
|
+
}),
|
|
921
|
+
_: 1
|
|
922
|
+
/* STABLE */
|
|
923
|
+
}, _parent2, _scopeId));
|
|
924
|
+
_push2(`</li></ul></div><div lang="en"${_scopeId}><ul${_scopeId}><li${_scopeId}>`);
|
|
925
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/examples/katex" }, {
|
|
926
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
927
|
+
if (_push3) {
|
|
928
|
+
_push3(`KaTeX | Examples`);
|
|
929
|
+
} else {
|
|
930
|
+
return [
|
|
931
|
+
createTextVNode("KaTeX | Examples")
|
|
932
|
+
];
|
|
933
|
+
}
|
|
934
|
+
}),
|
|
935
|
+
_: 1
|
|
936
|
+
/* STABLE */
|
|
937
|
+
}, _parent2, _scopeId));
|
|
938
|
+
_push2(`</li></ul></div><h2 lang="zh-CN" id="自动路由替换" tabindex="-1"${_scopeId}>自动路由替换 `);
|
|
939
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
940
|
+
class: "header-anchor",
|
|
941
|
+
href: "#自动路由替换",
|
|
942
|
+
"aria-label": 'Permalink to "自动路由替换 {lang="zh-CN"}"'
|
|
943
|
+
}, {
|
|
944
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
945
|
+
if (_push3) {
|
|
946
|
+
_push3(``);
|
|
947
|
+
} else {
|
|
948
|
+
return [
|
|
949
|
+
createTextVNode("")
|
|
950
|
+
];
|
|
951
|
+
}
|
|
952
|
+
}),
|
|
953
|
+
_: 1
|
|
954
|
+
/* STABLE */
|
|
955
|
+
}, _parent2, _scopeId));
|
|
956
|
+
_push2(`</h2><h2 lang="en" id="auto-route-replacing" tabindex="-1"${_scopeId}>Auto Route Replacing `);
|
|
957
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
958
|
+
class: "header-anchor",
|
|
959
|
+
href: "#auto-route-replacing",
|
|
960
|
+
"aria-label": 'Permalink to "Auto Route Replacing {lang="en"}"'
|
|
961
|
+
}, {
|
|
962
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
963
|
+
if (_push3) {
|
|
964
|
+
_push3(``);
|
|
965
|
+
} else {
|
|
966
|
+
return [
|
|
967
|
+
createTextVNode("")
|
|
968
|
+
];
|
|
969
|
+
}
|
|
970
|
+
}),
|
|
971
|
+
_: 1
|
|
972
|
+
/* STABLE */
|
|
973
|
+
}, _parent2, _scopeId));
|
|
974
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>当 Valaxy 检测到文章的 a 链接为站内链接时,会自动将其替换为 <code${_scopeId}>RouterLink</code>,享受丝滑的动态切换吧!</p></div><div lang="en"${_scopeId}><p${_scopeId}>When Valaxy detects that an <code${_scopeId}>a</code> hyperlink in a post is an intra-site link (relative link), it will automatically replace it with a <code${_scopeId}>RouterLink</code>. Enjoy the dynamic page switching!</p></div>`);
|
|
975
|
+
} else {
|
|
976
|
+
return [
|
|
977
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
978
|
+
createVNode("p", null, "首先,我们来介绍一下 Valaxy 有哪些便捷的特性。")
|
|
979
|
+
]),
|
|
980
|
+
createVNode("div", { lang: "en" }, [
|
|
981
|
+
createVNode("p", null, "First, I'll introduce you to some easy")
|
|
982
|
+
]),
|
|
983
|
+
createVNode("h2", {
|
|
984
|
+
lang: "zh-CN",
|
|
985
|
+
id: "热更新",
|
|
986
|
+
tabindex: "-1"
|
|
987
|
+
}, [
|
|
988
|
+
createTextVNode("热更新 "),
|
|
989
|
+
createVNode(_component_AppLink, {
|
|
990
|
+
class: "header-anchor",
|
|
991
|
+
href: "#热更新",
|
|
992
|
+
"aria-label": 'Permalink to "热更新 {lang="zh-CN"}"'
|
|
993
|
+
}, {
|
|
994
|
+
default: withCtx(() => [
|
|
995
|
+
createTextVNode("")
|
|
996
|
+
]),
|
|
997
|
+
_: 1
|
|
998
|
+
/* STABLE */
|
|
999
|
+
})
|
|
1000
|
+
]),
|
|
1001
|
+
createVNode("h2", {
|
|
1002
|
+
lang: "en",
|
|
1003
|
+
id: "hot-reloading",
|
|
1004
|
+
tabindex: "-1"
|
|
1005
|
+
}, [
|
|
1006
|
+
createTextVNode("Hot Reloading "),
|
|
1007
|
+
createVNode(_component_AppLink, {
|
|
1008
|
+
class: "header-anchor",
|
|
1009
|
+
href: "#hot-reloading",
|
|
1010
|
+
"aria-label": 'Permalink to "Hot Reloading {lang="en"}"'
|
|
1011
|
+
}, {
|
|
1012
|
+
default: withCtx(() => [
|
|
1013
|
+
createTextVNode("")
|
|
1014
|
+
]),
|
|
1015
|
+
_: 1
|
|
1016
|
+
/* STABLE */
|
|
1017
|
+
})
|
|
1018
|
+
]),
|
|
1019
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1020
|
+
createVNode("p", null, "最值得一提的是,Valaxy 从配置到文章内容、动画到全局的标签、分类,全部都是支持热更新的!局部的!"),
|
|
1021
|
+
createVNode("p", null, [
|
|
1022
|
+
createTextVNode("譬如,你修改了 "),
|
|
1023
|
+
createVNode("code", null, "valaxy.config.ts"),
|
|
1024
|
+
createTextVNode("/"),
|
|
1025
|
+
createVNode("code", null, "site.config.ts"),
|
|
1026
|
+
createTextVNode(" 或是 "),
|
|
1027
|
+
createVNode("code", null, "xxx.md"),
|
|
1028
|
+
createTextVNode(" 文章中的内容或 "),
|
|
1029
|
+
createVNode("code", null, "frontmatter"),
|
|
1030
|
+
createTextVNode("("),
|
|
1031
|
+
createVNode("code", null, "tags"),
|
|
1032
|
+
createTextVNode("/"),
|
|
1033
|
+
createVNode("code", null, "categories"),
|
|
1034
|
+
createTextVNode(")所有的变动会立刻显示在预览界面上,无需手动刷新。同时热更新也是局部的,它只变动有修改的地方,不会重新刷新整个页面。")
|
|
1035
|
+
])
|
|
1036
|
+
]),
|
|
1037
|
+
createVNode("div", { lang: "en" }, [
|
|
1038
|
+
createVNode("p", null, "It's most worth mentioning that Valaxy supports partial hot reloading, for configuration, post contents, animation, tags, categories, and much more!"),
|
|
1039
|
+
createVNode("p", null, [
|
|
1040
|
+
createTextVNode("For example, if you modified "),
|
|
1041
|
+
createVNode("code", null, "valaxy.config.ts"),
|
|
1042
|
+
createTextVNode("/"),
|
|
1043
|
+
createVNode("code", null, "site.config.ts"),
|
|
1044
|
+
createTextVNode(", the content in "),
|
|
1045
|
+
createVNode("code", null, "xxx.md"),
|
|
1046
|
+
createTextVNode(", or "),
|
|
1047
|
+
createVNode("code", null, "frontmatter"),
|
|
1048
|
+
createTextVNode(" ("),
|
|
1049
|
+
createVNode("code", null, "tags"),
|
|
1050
|
+
createTextVNode("/"),
|
|
1051
|
+
createVNode("code", null, "categories"),
|
|
1052
|
+
createTextVNode("), all changes will immediately appear on the preview page, and there is no need for manual refreshing. Also, hot reloads are local, meaning that only the place modified will change, and other elements on the page will not be refreshed.")
|
|
1053
|
+
])
|
|
1054
|
+
]),
|
|
1055
|
+
createVNode("h2", {
|
|
1056
|
+
lang: "zh-CN",
|
|
1057
|
+
id: "自定义",
|
|
1058
|
+
tabindex: "-1"
|
|
1059
|
+
}, [
|
|
1060
|
+
createTextVNode("自定义 "),
|
|
1061
|
+
createVNode(_component_AppLink, {
|
|
1062
|
+
class: "header-anchor",
|
|
1063
|
+
href: "#自定义",
|
|
1064
|
+
"aria-label": 'Permalink to "自定义 {lang="zh-CN"}"'
|
|
1065
|
+
}, {
|
|
1066
|
+
default: withCtx(() => [
|
|
1067
|
+
createTextVNode("")
|
|
1068
|
+
]),
|
|
1069
|
+
_: 1
|
|
1070
|
+
/* STABLE */
|
|
1071
|
+
})
|
|
1072
|
+
]),
|
|
1073
|
+
createVNode("h2", {
|
|
1074
|
+
lang: "en",
|
|
1075
|
+
id: "customization",
|
|
1076
|
+
tabindex: "-1"
|
|
1077
|
+
}, [
|
|
1078
|
+
createTextVNode("Customization "),
|
|
1079
|
+
createVNode(_component_AppLink, {
|
|
1080
|
+
class: "header-anchor",
|
|
1081
|
+
href: "#customization",
|
|
1082
|
+
"aria-label": 'Permalink to "Customization {lang="en"}"'
|
|
1083
|
+
}, {
|
|
1084
|
+
default: withCtx(() => [
|
|
1085
|
+
createTextVNode("")
|
|
1086
|
+
]),
|
|
1087
|
+
_: 1
|
|
1088
|
+
/* STABLE */
|
|
1089
|
+
})
|
|
1090
|
+
]),
|
|
1091
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1092
|
+
createVNode("p", null, "强大的自定义能力,你可以如忒修斯之船一样组件粒度地继承定制主题与你的博客。"),
|
|
1093
|
+
createVNode("p", null, [
|
|
1094
|
+
createTextVNode("更多请参见 "),
|
|
1095
|
+
createVNode(_component_AppLink, { href: "/guide/custom/components" }, {
|
|
1096
|
+
default: withCtx(() => [
|
|
1097
|
+
createTextVNode("自定义组件")
|
|
1098
|
+
]),
|
|
1099
|
+
_: 1
|
|
1100
|
+
/* STABLE */
|
|
1101
|
+
}),
|
|
1102
|
+
createTextVNode("。")
|
|
1103
|
+
])
|
|
1104
|
+
]),
|
|
1105
|
+
createVNode("div", { lang: "en" }, [
|
|
1106
|
+
createVNode("p", null, "Valaxy provides powerful customization support. You can customize every component for your theme and blog just like the Ship of Theseus."),
|
|
1107
|
+
createVNode("p", null, [
|
|
1108
|
+
createTextVNode("See more at "),
|
|
1109
|
+
createVNode(_component_AppLink, { href: "/guide/custom/components" }, {
|
|
1110
|
+
default: withCtx(() => [
|
|
1111
|
+
createTextVNode("Customizing Components")
|
|
1112
|
+
]),
|
|
1113
|
+
_: 1
|
|
1114
|
+
/* STABLE */
|
|
1115
|
+
}),
|
|
1116
|
+
createTextVNode(".")
|
|
1117
|
+
])
|
|
1118
|
+
]),
|
|
1119
|
+
createVNode("h2", {
|
|
1120
|
+
id: "unocss",
|
|
1121
|
+
tabindex: "-1"
|
|
1122
|
+
}, [
|
|
1123
|
+
createTextVNode("UnoCSS "),
|
|
1124
|
+
createVNode(_component_AppLink, {
|
|
1125
|
+
class: "header-anchor",
|
|
1126
|
+
href: "#unocss",
|
|
1127
|
+
"aria-label": 'Permalink to "UnoCSS"'
|
|
1128
|
+
}, {
|
|
1129
|
+
default: withCtx(() => [
|
|
1130
|
+
createTextVNode("")
|
|
1131
|
+
]),
|
|
1132
|
+
_: 1
|
|
1133
|
+
/* STABLE */
|
|
1134
|
+
})
|
|
1135
|
+
]),
|
|
1136
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1137
|
+
createVNode("blockquote", null, [
|
|
1138
|
+
createVNode("p", null, [
|
|
1139
|
+
createTextVNode("内置的类 TailwindCSS 的工具类(基于 "),
|
|
1140
|
+
createVNode(_component_AppLink, {
|
|
1141
|
+
href: "https://github.com/unocss/unocss",
|
|
1142
|
+
target: "_blank",
|
|
1143
|
+
rel: "noreferrer"
|
|
1144
|
+
}, {
|
|
1145
|
+
default: withCtx(() => [
|
|
1146
|
+
createTextVNode("UnoCSS")
|
|
1147
|
+
]),
|
|
1148
|
+
_: 1
|
|
1149
|
+
/* STABLE */
|
|
1150
|
+
}),
|
|
1151
|
+
createTextVNode(")。")
|
|
1152
|
+
])
|
|
1153
|
+
]),
|
|
1154
|
+
createVNode("p", null, [
|
|
1155
|
+
createTextVNode("如果你使用过 "),
|
|
1156
|
+
createVNode(_component_AppLink, {
|
|
1157
|
+
href: "https://tailwindcss.com/",
|
|
1158
|
+
target: "_blank",
|
|
1159
|
+
rel: "noreferrer"
|
|
1160
|
+
}, {
|
|
1161
|
+
default: withCtx(() => [
|
|
1162
|
+
createTextVNode("TailwindCSS")
|
|
1163
|
+
]),
|
|
1164
|
+
_: 1
|
|
1165
|
+
/* STABLE */
|
|
1166
|
+
}),
|
|
1167
|
+
createTextVNode(",那么一定能迅速领会到它的便捷之处。")
|
|
1168
|
+
]),
|
|
1169
|
+
createVNode("p", null, "你可以在你的 Markdown 和 Vue 组件中肆无忌惮地使用它,而且最终它会被按需打包并加载。"),
|
|
1170
|
+
createVNode("p", null, "譬如:"),
|
|
1171
|
+
createVNode("div", { class: "language-md" }, [
|
|
1172
|
+
createVNode("button", {
|
|
1173
|
+
title: "Copy Code",
|
|
1174
|
+
class: "copy"
|
|
1175
|
+
}),
|
|
1176
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1177
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1178
|
+
createVNode("code", null, [
|
|
1179
|
+
createVNode("span", { class: "line" }, [
|
|
1180
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "这是一份 Markdown 内容。")
|
|
1181
|
+
]),
|
|
1182
|
+
createTextVNode("\n"),
|
|
1183
|
+
createVNode("span", { class: "line" }),
|
|
1184
|
+
createTextVNode("\n"),
|
|
1185
|
+
createVNode("span", { class: "line" }, [
|
|
1186
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, '<div class="bg-white text-blue shadow" p="4">')
|
|
1187
|
+
]),
|
|
1188
|
+
createTextVNode("\n"),
|
|
1189
|
+
createVNode("span", { class: "line" }, [
|
|
1190
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "这是一份 Markdown 内容。")
|
|
1191
|
+
]),
|
|
1192
|
+
createTextVNode("\n"),
|
|
1193
|
+
createVNode("span", { class: "line" }, [
|
|
1194
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "</div>")
|
|
1195
|
+
])
|
|
1196
|
+
])
|
|
1197
|
+
]),
|
|
1198
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1199
|
+
createVNode("code", null, [
|
|
1200
|
+
createVNode("span", { class: "line" }, [
|
|
1201
|
+
createVNode("span", { style: { "color": "#24292E" } }, "这是一份 Markdown 内容。")
|
|
1202
|
+
]),
|
|
1203
|
+
createTextVNode("\n"),
|
|
1204
|
+
createVNode("span", { class: "line" }),
|
|
1205
|
+
createTextVNode("\n"),
|
|
1206
|
+
createVNode("span", { class: "line" }, [
|
|
1207
|
+
createVNode("span", { style: { "color": "#24292E" } }, '<div class="bg-white text-blue shadow" p="4">')
|
|
1208
|
+
]),
|
|
1209
|
+
createTextVNode("\n"),
|
|
1210
|
+
createVNode("span", { class: "line" }, [
|
|
1211
|
+
createVNode("span", { style: { "color": "#24292E" } }, "这是一份 Markdown 内容。")
|
|
1212
|
+
]),
|
|
1213
|
+
createTextVNode("\n"),
|
|
1214
|
+
createVNode("span", { class: "line" }, [
|
|
1215
|
+
createVNode("span", { style: { "color": "#24292E" } }, "</div>")
|
|
1216
|
+
])
|
|
1217
|
+
])
|
|
1218
|
+
])
|
|
1219
|
+
]),
|
|
1220
|
+
createVNode("p", null, "你可以迅速得到这样的效果:"),
|
|
1221
|
+
createVNode("div", {
|
|
1222
|
+
class: "bg-white text-blue shadow",
|
|
1223
|
+
p: "4"
|
|
1224
|
+
}, " 这是一份 Markdown 内容。 ")
|
|
1225
|
+
]),
|
|
1226
|
+
createVNode("div", { lang: "en" }, [
|
|
1227
|
+
createVNode("blockquote", null, [
|
|
1228
|
+
createVNode("p", null, [
|
|
1229
|
+
createTextVNode("The builtin TailwindCSS-like util class (based on "),
|
|
1230
|
+
createVNode(_component_AppLink, {
|
|
1231
|
+
href: "https://github.com/unocss/unocss",
|
|
1232
|
+
target: "_blank",
|
|
1233
|
+
rel: "noreferrer"
|
|
1234
|
+
}, {
|
|
1235
|
+
default: withCtx(() => [
|
|
1236
|
+
createTextVNode("UnoCSS")
|
|
1237
|
+
]),
|
|
1238
|
+
_: 1
|
|
1239
|
+
/* STABLE */
|
|
1240
|
+
}),
|
|
1241
|
+
createTextVNode(").")
|
|
1242
|
+
])
|
|
1243
|
+
]),
|
|
1244
|
+
createVNode("p", null, [
|
|
1245
|
+
createTextVNode("If you have used "),
|
|
1246
|
+
createVNode(_component_AppLink, {
|
|
1247
|
+
href: "https://tailwindcss.com/",
|
|
1248
|
+
target: "_blank",
|
|
1249
|
+
rel: "noreferrer"
|
|
1250
|
+
}, {
|
|
1251
|
+
default: withCtx(() => [
|
|
1252
|
+
createTextVNode("TailwindCSS")
|
|
1253
|
+
]),
|
|
1254
|
+
_: 1
|
|
1255
|
+
/* STABLE */
|
|
1256
|
+
}),
|
|
1257
|
+
createTextVNode(" before, then you will rapidly learn it's convenience.")
|
|
1258
|
+
]),
|
|
1259
|
+
createVNode("p", null, "You can use it at will in your Markdown and Vue components, and it will finally get packaged by need and loaded."),
|
|
1260
|
+
createVNode("p", null, "For example:"),
|
|
1261
|
+
createVNode("div", { class: "language-md" }, [
|
|
1262
|
+
createVNode("button", {
|
|
1263
|
+
title: "Copy Code",
|
|
1264
|
+
class: "copy"
|
|
1265
|
+
}),
|
|
1266
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1267
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1268
|
+
createVNode("code", null, [
|
|
1269
|
+
createVNode("span", { class: "line" }, [
|
|
1270
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "This is markdown.")
|
|
1271
|
+
]),
|
|
1272
|
+
createTextVNode("\n"),
|
|
1273
|
+
createVNode("span", { class: "line" }),
|
|
1274
|
+
createTextVNode("\n"),
|
|
1275
|
+
createVNode("span", { class: "line" }, [
|
|
1276
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, '<div class="bg-white text-blue shadow" p="4">')
|
|
1277
|
+
]),
|
|
1278
|
+
createTextVNode("\n"),
|
|
1279
|
+
createVNode("span", { class: "line" }, [
|
|
1280
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "This is markdown.")
|
|
1281
|
+
]),
|
|
1282
|
+
createTextVNode("\n"),
|
|
1283
|
+
createVNode("span", { class: "line" }, [
|
|
1284
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "</div>")
|
|
1285
|
+
])
|
|
1286
|
+
])
|
|
1287
|
+
]),
|
|
1288
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1289
|
+
createVNode("code", null, [
|
|
1290
|
+
createVNode("span", { class: "line" }, [
|
|
1291
|
+
createVNode("span", { style: { "color": "#24292E" } }, "This is markdown.")
|
|
1292
|
+
]),
|
|
1293
|
+
createTextVNode("\n"),
|
|
1294
|
+
createVNode("span", { class: "line" }),
|
|
1295
|
+
createTextVNode("\n"),
|
|
1296
|
+
createVNode("span", { class: "line" }, [
|
|
1297
|
+
createVNode("span", { style: { "color": "#24292E" } }, '<div class="bg-white text-blue shadow" p="4">')
|
|
1298
|
+
]),
|
|
1299
|
+
createTextVNode("\n"),
|
|
1300
|
+
createVNode("span", { class: "line" }, [
|
|
1301
|
+
createVNode("span", { style: { "color": "#24292E" } }, "This is markdown.")
|
|
1302
|
+
]),
|
|
1303
|
+
createTextVNode("\n"),
|
|
1304
|
+
createVNode("span", { class: "line" }, [
|
|
1305
|
+
createVNode("span", { style: { "color": "#24292E" } }, "</div>")
|
|
1306
|
+
])
|
|
1307
|
+
])
|
|
1308
|
+
])
|
|
1309
|
+
]),
|
|
1310
|
+
createVNode("p", null, "You will get the effect immediately like this:"),
|
|
1311
|
+
createVNode("div", {
|
|
1312
|
+
class: "bg-white text-blue shadow",
|
|
1313
|
+
p: "4"
|
|
1314
|
+
}, " This is markdown. ")
|
|
1315
|
+
]),
|
|
1316
|
+
createVNode("h2", {
|
|
1317
|
+
id: "icones",
|
|
1318
|
+
tabindex: "-1"
|
|
1319
|
+
}, [
|
|
1320
|
+
createTextVNode("Icones "),
|
|
1321
|
+
createVNode(_component_AppLink, {
|
|
1322
|
+
class: "header-anchor",
|
|
1323
|
+
href: "#icones",
|
|
1324
|
+
"aria-label": 'Permalink to "Icones"'
|
|
1325
|
+
}, {
|
|
1326
|
+
default: withCtx(() => [
|
|
1327
|
+
createTextVNode("")
|
|
1328
|
+
]),
|
|
1329
|
+
_: 1
|
|
1330
|
+
/* STABLE */
|
|
1331
|
+
})
|
|
1332
|
+
]),
|
|
1333
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1334
|
+
createVNode("blockquote", null, [
|
|
1335
|
+
createVNode("p", null, "海量的图标")
|
|
1336
|
+
]),
|
|
1337
|
+
createVNode("p", null, [
|
|
1338
|
+
createTextVNode("你可以任意使用 "),
|
|
1339
|
+
createVNode(_component_AppLink, {
|
|
1340
|
+
href: "https://icones.js.org/",
|
|
1341
|
+
target: "_blank",
|
|
1342
|
+
rel: "noreferrer"
|
|
1343
|
+
}, {
|
|
1344
|
+
default: withCtx(() => [
|
|
1345
|
+
createTextVNode("Icones")
|
|
1346
|
+
]),
|
|
1347
|
+
_: 1
|
|
1348
|
+
/* STABLE */
|
|
1349
|
+
}),
|
|
1350
|
+
createTextVNode(" 中可搜索到的任意图标。")
|
|
1351
|
+
]),
|
|
1352
|
+
createVNode("p", null, [
|
|
1353
|
+
createTextVNode("命名规范为 "),
|
|
1354
|
+
createVNode("code", null, "i-${collection}-${name}"),
|
|
1355
|
+
createTextVNode(",例如 "),
|
|
1356
|
+
createVNode("code", null, "i-ri-home-line"),
|
|
1357
|
+
createTextVNode("。")
|
|
1358
|
+
]),
|
|
1359
|
+
createVNode("p", null, [
|
|
1360
|
+
createTextVNode("主题默认安装了 "),
|
|
1361
|
+
createVNode(_component_AppLink, {
|
|
1362
|
+
href: "https://github.com/Remix-Design/RemixIcon",
|
|
1363
|
+
target: "_blank",
|
|
1364
|
+
rel: "noreferrer"
|
|
1365
|
+
}, {
|
|
1366
|
+
default: withCtx(() => [
|
|
1367
|
+
createTextVNode("RemixIcon")
|
|
1368
|
+
]),
|
|
1369
|
+
_: 1
|
|
1370
|
+
/* STABLE */
|
|
1371
|
+
}),
|
|
1372
|
+
createTextVNode("。")
|
|
1373
|
+
]),
|
|
1374
|
+
createVNode("p", null, "如果你需要其他集合下的图标,可以自行安装。如:"),
|
|
1375
|
+
createVNode("div", { class: "language-bash" }, [
|
|
1376
|
+
createVNode("button", {
|
|
1377
|
+
title: "Copy Code",
|
|
1378
|
+
class: "copy"
|
|
1379
|
+
}),
|
|
1380
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
1381
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1382
|
+
createVNode("code", null, [
|
|
1383
|
+
createVNode("span", { class: "line" }, [
|
|
1384
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# collection 为对应的图标集名称,如 @iconify-json/ri")
|
|
1385
|
+
]),
|
|
1386
|
+
createTextVNode("\n"),
|
|
1387
|
+
createVNode("span", { class: "line" }, [
|
|
1388
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
1389
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1390
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "i"),
|
|
1391
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1392
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "@iconify-json/collection")
|
|
1393
|
+
])
|
|
1394
|
+
])
|
|
1395
|
+
]),
|
|
1396
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1397
|
+
createVNode("code", null, [
|
|
1398
|
+
createVNode("span", { class: "line" }, [
|
|
1399
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# collection 为对应的图标集名称,如 @iconify-json/ri")
|
|
1400
|
+
]),
|
|
1401
|
+
createTextVNode("\n"),
|
|
1402
|
+
createVNode("span", { class: "line" }, [
|
|
1403
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
1404
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1405
|
+
createVNode("span", { style: { "color": "#032F62" } }, "i"),
|
|
1406
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1407
|
+
createVNode("span", { style: { "color": "#032F62" } }, "@iconify-json/collection")
|
|
1408
|
+
])
|
|
1409
|
+
])
|
|
1410
|
+
])
|
|
1411
|
+
]),
|
|
1412
|
+
createVNode("p", null, [
|
|
1413
|
+
createTextVNode("被添加至 "),
|
|
1414
|
+
createVNode("code", null, "config.unocss.safelist"),
|
|
1415
|
+
createTextVNode(" 的图标名称将全部是热加载的!")
|
|
1416
|
+
])
|
|
1417
|
+
]),
|
|
1418
|
+
createVNode("div", { lang: "en" }, [
|
|
1419
|
+
createVNode("blockquote", null, [
|
|
1420
|
+
createVNode("p", null, "Massive amount of icons")
|
|
1421
|
+
]),
|
|
1422
|
+
createVNode("p", null, [
|
|
1423
|
+
createTextVNode("You can use any icons that are from "),
|
|
1424
|
+
createVNode(_component_AppLink, {
|
|
1425
|
+
href: "https://icones.js.org/",
|
|
1426
|
+
target: "_blank",
|
|
1427
|
+
rel: "noreferrer"
|
|
1428
|
+
}, {
|
|
1429
|
+
default: withCtx(() => [
|
|
1430
|
+
createTextVNode("Icônes")
|
|
1431
|
+
]),
|
|
1432
|
+
_: 1
|
|
1433
|
+
/* STABLE */
|
|
1434
|
+
}),
|
|
1435
|
+
createTextVNode(".")
|
|
1436
|
+
]),
|
|
1437
|
+
createVNode("p", null, [
|
|
1438
|
+
createTextVNode("The naming rule is "),
|
|
1439
|
+
createVNode("code", null, "i-${collection}-${name}"),
|
|
1440
|
+
createTextVNode(", e.g. "),
|
|
1441
|
+
createVNode("code", null, "i-ri-home-line"),
|
|
1442
|
+
createTextVNode(".")
|
|
1443
|
+
]),
|
|
1444
|
+
createVNode("p", null, [
|
|
1445
|
+
createTextVNode("The theme by default has "),
|
|
1446
|
+
createVNode(_component_AppLink, {
|
|
1447
|
+
href: "https://github.com/Remix-Design/RemixIcon",
|
|
1448
|
+
target: "_blank",
|
|
1449
|
+
rel: "noreferrer"
|
|
1450
|
+
}, {
|
|
1451
|
+
default: withCtx(() => [
|
|
1452
|
+
createTextVNode("RemixIcon")
|
|
1453
|
+
]),
|
|
1454
|
+
_: 1
|
|
1455
|
+
/* STABLE */
|
|
1456
|
+
}),
|
|
1457
|
+
createTextVNode(" installed.")
|
|
1458
|
+
]),
|
|
1459
|
+
createVNode("p", null, "If you need any icons from other collections, you can install yourself. For example:"),
|
|
1460
|
+
createVNode("div", { class: "language-bash" }, [
|
|
1461
|
+
createVNode("button", {
|
|
1462
|
+
title: "Copy Code",
|
|
1463
|
+
class: "copy"
|
|
1464
|
+
}),
|
|
1465
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
1466
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1467
|
+
createVNode("code", null, [
|
|
1468
|
+
createVNode("span", { class: "line" }, [
|
|
1469
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# `collection` is the name of the icon collection, e.g. @iconify-json/ri")
|
|
1470
|
+
]),
|
|
1471
|
+
createTextVNode("\n"),
|
|
1472
|
+
createVNode("span", { class: "line" }, [
|
|
1473
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
1474
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1475
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "i"),
|
|
1476
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1477
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "@iconify-json/collection")
|
|
1478
|
+
])
|
|
1479
|
+
])
|
|
1480
|
+
]),
|
|
1481
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1482
|
+
createVNode("code", null, [
|
|
1483
|
+
createVNode("span", { class: "line" }, [
|
|
1484
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# `collection` is the name of the icon collection, e.g. @iconify-json/ri")
|
|
1485
|
+
]),
|
|
1486
|
+
createTextVNode("\n"),
|
|
1487
|
+
createVNode("span", { class: "line" }, [
|
|
1488
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
1489
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1490
|
+
createVNode("span", { style: { "color": "#032F62" } }, "i"),
|
|
1491
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1492
|
+
createVNode("span", { style: { "color": "#032F62" } }, "@iconify-json/collection")
|
|
1493
|
+
])
|
|
1494
|
+
])
|
|
1495
|
+
])
|
|
1496
|
+
]),
|
|
1497
|
+
createVNode("p", null, [
|
|
1498
|
+
createTextVNode("All icon names added to "),
|
|
1499
|
+
createVNode("code", null, "config.unocss.safelist"),
|
|
1500
|
+
createTextVNode(" will be ready for hot reloading.")
|
|
1501
|
+
])
|
|
1502
|
+
]),
|
|
1503
|
+
createVNode("h2", {
|
|
1504
|
+
id: "ui",
|
|
1505
|
+
tabindex: "-1"
|
|
1506
|
+
}, [
|
|
1507
|
+
createTextVNode("UI "),
|
|
1508
|
+
createVNode(_component_AppLink, {
|
|
1509
|
+
class: "header-anchor",
|
|
1510
|
+
href: "#ui",
|
|
1511
|
+
"aria-label": 'Permalink to "UI"'
|
|
1512
|
+
}, {
|
|
1513
|
+
default: withCtx(() => [
|
|
1514
|
+
createTextVNode("")
|
|
1515
|
+
]),
|
|
1516
|
+
_: 1
|
|
1517
|
+
/* STABLE */
|
|
1518
|
+
})
|
|
1519
|
+
]),
|
|
1520
|
+
createVNode("h3", {
|
|
1521
|
+
lang: "zh-CN",
|
|
1522
|
+
id: "代码高亮",
|
|
1523
|
+
tabindex: "-1"
|
|
1524
|
+
}, [
|
|
1525
|
+
createTextVNode("代码高亮 "),
|
|
1526
|
+
createVNode(_component_AppLink, {
|
|
1527
|
+
class: "header-anchor",
|
|
1528
|
+
href: "#代码高亮",
|
|
1529
|
+
"aria-label": 'Permalink to "代码高亮 {lang="zh-CN"}"'
|
|
1530
|
+
}, {
|
|
1531
|
+
default: withCtx(() => [
|
|
1532
|
+
createTextVNode("")
|
|
1533
|
+
]),
|
|
1534
|
+
_: 1
|
|
1535
|
+
/* STABLE */
|
|
1536
|
+
})
|
|
1537
|
+
]),
|
|
1538
|
+
createVNode("h3", {
|
|
1539
|
+
lang: "en",
|
|
1540
|
+
id: "syntax-highlighting",
|
|
1541
|
+
tabindex: "-1"
|
|
1542
|
+
}, [
|
|
1543
|
+
createTextVNode("Syntax Highlighting "),
|
|
1544
|
+
createVNode(_component_AppLink, {
|
|
1545
|
+
class: "header-anchor",
|
|
1546
|
+
href: "#syntax-highlighting",
|
|
1547
|
+
"aria-label": 'Permalink to "Syntax Highlighting {lang="en"}"'
|
|
1548
|
+
}, {
|
|
1549
|
+
default: withCtx(() => [
|
|
1550
|
+
createTextVNode("")
|
|
1551
|
+
]),
|
|
1552
|
+
_: 1
|
|
1553
|
+
/* STABLE */
|
|
1554
|
+
})
|
|
1555
|
+
]),
|
|
1556
|
+
createVNode("div", { lang: "en" }, [
|
|
1557
|
+
createVNode("blockquote", null, [
|
|
1558
|
+
createVNode("p", null, [
|
|
1559
|
+
createTextVNode("More info about syntax highlighting can be found at "),
|
|
1560
|
+
createVNode(_component_AppLink, { href: "/guide/markdown#syntax-highlighting" }, {
|
|
1561
|
+
default: withCtx(() => [
|
|
1562
|
+
createTextVNode("Markdown Syntax Highlighting")
|
|
1563
|
+
]),
|
|
1564
|
+
_: 1
|
|
1565
|
+
/* STABLE */
|
|
1566
|
+
}),
|
|
1567
|
+
createTextVNode(".")
|
|
1568
|
+
])
|
|
1569
|
+
])
|
|
1570
|
+
]),
|
|
1571
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1572
|
+
createVNode("blockquote", null, [
|
|
1573
|
+
createVNode("p", null, [
|
|
1574
|
+
createTextVNode("更多关于代码高亮的信息请参见 "),
|
|
1575
|
+
createVNode(_component_AppLink, { href: "/guide/markdown#%E4%BB%A3%E7%A0%81%E8%A1%8C%E9%AB%98%E4%BA%AE" }, {
|
|
1576
|
+
default: withCtx(() => [
|
|
1577
|
+
createTextVNode("Markdown 代码高亮")
|
|
1578
|
+
]),
|
|
1579
|
+
_: 1
|
|
1580
|
+
/* STABLE */
|
|
1581
|
+
}),
|
|
1582
|
+
createTextVNode("。")
|
|
1583
|
+
])
|
|
1584
|
+
])
|
|
1585
|
+
]),
|
|
1586
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1587
|
+
createVNode("p", null, [
|
|
1588
|
+
createTextVNode("基于 "),
|
|
1589
|
+
createVNode(_component_AppLink, {
|
|
1590
|
+
href: "https://github.com/shikijs/shiki",
|
|
1591
|
+
target: "_blank",
|
|
1592
|
+
rel: "noreferrer"
|
|
1593
|
+
}, {
|
|
1594
|
+
default: withCtx(() => [
|
|
1595
|
+
createTextVNode("Shiki")
|
|
1596
|
+
]),
|
|
1597
|
+
_: 1
|
|
1598
|
+
/* STABLE */
|
|
1599
|
+
}),
|
|
1600
|
+
createTextVNode(" 实现。 Valaxy 支持 "),
|
|
1601
|
+
createVNode("code", null, "vue"),
|
|
1602
|
+
createTextVNode(" 等语法高亮,拷贝代码,高亮其中某一行。")
|
|
1603
|
+
]),
|
|
1604
|
+
createVNode("p", null, "譬如:")
|
|
1605
|
+
]),
|
|
1606
|
+
createVNode("div", { lang: "en" }, [
|
|
1607
|
+
createVNode("p", null, [
|
|
1608
|
+
createTextVNode("Based on "),
|
|
1609
|
+
createVNode(_component_AppLink, {
|
|
1610
|
+
href: "https://github.com/shikijs/shiki",
|
|
1611
|
+
target: "_blank",
|
|
1612
|
+
rel: "noreferrer"
|
|
1613
|
+
}, {
|
|
1614
|
+
default: withCtx(() => [
|
|
1615
|
+
createTextVNode("Shiki")
|
|
1616
|
+
]),
|
|
1617
|
+
_: 1
|
|
1618
|
+
/* STABLE */
|
|
1619
|
+
}),
|
|
1620
|
+
createTextVNode(". Valaxy supports syntax highlighting for languages like "),
|
|
1621
|
+
createVNode("code", null, "vue"),
|
|
1622
|
+
createTextVNode(", and also supports copying code and highlighting a particular line in the code block.")
|
|
1623
|
+
]),
|
|
1624
|
+
createVNode("p", null, "For example:")
|
|
1625
|
+
]),
|
|
1626
|
+
createVNode("div", { class: "language-js" }, [
|
|
1627
|
+
createVNode("button", {
|
|
1628
|
+
title: "Copy Code",
|
|
1629
|
+
class: "copy"
|
|
1630
|
+
}),
|
|
1631
|
+
createVNode("span", { class: "lang" }, "js"),
|
|
1632
|
+
createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
|
|
1633
|
+
createVNode("code", null, [
|
|
1634
|
+
createVNode("span", { class: "line" }, [
|
|
1635
|
+
createVNode("span", { style: { "color": "#F97583" } }, "const"),
|
|
1636
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1637
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "a"),
|
|
1638
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1639
|
+
createVNode("span", { style: { "color": "#F97583" } }, "="),
|
|
1640
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1641
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "1")
|
|
1642
|
+
]),
|
|
1643
|
+
createTextVNode("\n"),
|
|
1644
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
1645
|
+
createVNode("span", { style: { "color": "#F97583" } }, "const"),
|
|
1646
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1647
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "b"),
|
|
1648
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1649
|
+
createVNode("span", { style: { "color": "#F97583" } }, "="),
|
|
1650
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " a")
|
|
1651
|
+
])
|
|
1652
|
+
])
|
|
1653
|
+
]),
|
|
1654
|
+
createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
|
|
1655
|
+
createVNode("code", null, [
|
|
1656
|
+
createVNode("span", { class: "line" }, [
|
|
1657
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "const"),
|
|
1658
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1659
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "a"),
|
|
1660
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1661
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "="),
|
|
1662
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1663
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "1")
|
|
1664
|
+
]),
|
|
1665
|
+
createTextVNode("\n"),
|
|
1666
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
1667
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "const"),
|
|
1668
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1669
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "b"),
|
|
1670
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1671
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "="),
|
|
1672
|
+
createVNode("span", { style: { "color": "#24292E" } }, " a")
|
|
1673
|
+
])
|
|
1674
|
+
])
|
|
1675
|
+
])
|
|
1676
|
+
]),
|
|
1677
|
+
createVNode("h3", {
|
|
1678
|
+
lang: "zh-CN",
|
|
1679
|
+
id: "自定义主题色",
|
|
1680
|
+
tabindex: "-1"
|
|
1681
|
+
}, [
|
|
1682
|
+
createTextVNode("自定义主题色 "),
|
|
1683
|
+
createVNode(_component_AppLink, {
|
|
1684
|
+
class: "header-anchor",
|
|
1685
|
+
href: "#自定义主题色",
|
|
1686
|
+
"aria-label": 'Permalink to "自定义主题色 {lang="zh-CN"}"'
|
|
1687
|
+
}, {
|
|
1688
|
+
default: withCtx(() => [
|
|
1689
|
+
createTextVNode("")
|
|
1690
|
+
]),
|
|
1691
|
+
_: 1
|
|
1692
|
+
/* STABLE */
|
|
1693
|
+
})
|
|
1694
|
+
]),
|
|
1695
|
+
createVNode("h3", {
|
|
1696
|
+
lang: "en",
|
|
1697
|
+
id: "custom-theme-color",
|
|
1698
|
+
tabindex: "-1"
|
|
1699
|
+
}, [
|
|
1700
|
+
createTextVNode("Custom Theme Color "),
|
|
1701
|
+
createVNode(_component_AppLink, {
|
|
1702
|
+
class: "header-anchor",
|
|
1703
|
+
href: "#custom-theme-color",
|
|
1704
|
+
"aria-label": 'Permalink to "Custom Theme Color {lang="en"}"'
|
|
1705
|
+
}, {
|
|
1706
|
+
default: withCtx(() => [
|
|
1707
|
+
createTextVNode("")
|
|
1708
|
+
]),
|
|
1709
|
+
_: 1
|
|
1710
|
+
/* STABLE */
|
|
1711
|
+
})
|
|
1712
|
+
]),
|
|
1713
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1714
|
+
createVNode("p", null, "你只需传入一个主题色,全局各处的色彩会动态进行计算得出最终的效果。"),
|
|
1715
|
+
createVNode("p", null, "譬如我希望主题色是红色:"),
|
|
1716
|
+
createVNode("blockquote", null, [
|
|
1717
|
+
createVNode("p", null, [
|
|
1718
|
+
createVNode("code", null, "valaxy-theme-yun"),
|
|
1719
|
+
createTextVNode(" 支持")
|
|
1720
|
+
])
|
|
1721
|
+
])
|
|
1722
|
+
]),
|
|
1723
|
+
createVNode("div", { lang: "en" }, [
|
|
1724
|
+
createVNode("p", null, "You only need to provide a theme color for the global color dynamics to work and show effect."),
|
|
1725
|
+
createVNode("p", null, "For example, if I want my theme color to be red:"),
|
|
1726
|
+
createVNode("blockquote", null, [
|
|
1727
|
+
createVNode("p", null, [
|
|
1728
|
+
createTextVNode("Supported by "),
|
|
1729
|
+
createVNode("code", null, "valaxy-theme-yun")
|
|
1730
|
+
])
|
|
1731
|
+
])
|
|
1732
|
+
]),
|
|
1733
|
+
createVNode("div", { class: "language-ts" }, [
|
|
1734
|
+
createVNode("button", {
|
|
1735
|
+
title: "Copy Code",
|
|
1736
|
+
class: "copy"
|
|
1737
|
+
}),
|
|
1738
|
+
createVNode("span", { class: "lang" }, "ts"),
|
|
1739
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1740
|
+
createVNode("code", null, [
|
|
1741
|
+
createVNode("span", { class: "line" }, [
|
|
1742
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// valaxy.config.ts")
|
|
1743
|
+
]),
|
|
1744
|
+
createTextVNode("\n"),
|
|
1745
|
+
createVNode("span", { class: "line" }, [
|
|
1746
|
+
createVNode("span", { style: { "color": "#F97583" } }, "export"),
|
|
1747
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1748
|
+
createVNode("span", { style: { "color": "#F97583" } }, "default"),
|
|
1749
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " {")
|
|
1750
|
+
]),
|
|
1751
|
+
createTextVNode("\n"),
|
|
1752
|
+
createVNode("span", { class: "line" }, [
|
|
1753
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " themeConfig: {")
|
|
1754
|
+
]),
|
|
1755
|
+
createTextVNode("\n"),
|
|
1756
|
+
createVNode("span", { class: "line" }, [
|
|
1757
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " colors: {")
|
|
1758
|
+
]),
|
|
1759
|
+
createTextVNode("\n"),
|
|
1760
|
+
createVNode("span", { class: "line" }, [
|
|
1761
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " primary: "),
|
|
1762
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'red'"),
|
|
1763
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ",")
|
|
1764
|
+
]),
|
|
1765
|
+
createTextVNode("\n"),
|
|
1766
|
+
createVNode("span", { class: "line" }, [
|
|
1767
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
|
|
1768
|
+
]),
|
|
1769
|
+
createTextVNode("\n"),
|
|
1770
|
+
createVNode("span", { class: "line" }, [
|
|
1771
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " },")
|
|
1772
|
+
]),
|
|
1773
|
+
createTextVNode("\n"),
|
|
1774
|
+
createVNode("span", { class: "line" }, [
|
|
1775
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "}")
|
|
1776
|
+
])
|
|
1777
|
+
])
|
|
1778
|
+
]),
|
|
1779
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1780
|
+
createVNode("code", null, [
|
|
1781
|
+
createVNode("span", { class: "line" }, [
|
|
1782
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// valaxy.config.ts")
|
|
1783
|
+
]),
|
|
1784
|
+
createTextVNode("\n"),
|
|
1785
|
+
createVNode("span", { class: "line" }, [
|
|
1786
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "export"),
|
|
1787
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1788
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "default"),
|
|
1789
|
+
createVNode("span", { style: { "color": "#24292E" } }, " {")
|
|
1790
|
+
]),
|
|
1791
|
+
createTextVNode("\n"),
|
|
1792
|
+
createVNode("span", { class: "line" }, [
|
|
1793
|
+
createVNode("span", { style: { "color": "#24292E" } }, " themeConfig: {")
|
|
1794
|
+
]),
|
|
1795
|
+
createTextVNode("\n"),
|
|
1796
|
+
createVNode("span", { class: "line" }, [
|
|
1797
|
+
createVNode("span", { style: { "color": "#24292E" } }, " colors: {")
|
|
1798
|
+
]),
|
|
1799
|
+
createTextVNode("\n"),
|
|
1800
|
+
createVNode("span", { class: "line" }, [
|
|
1801
|
+
createVNode("span", { style: { "color": "#24292E" } }, " primary: "),
|
|
1802
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'red'"),
|
|
1803
|
+
createVNode("span", { style: { "color": "#24292E" } }, ",")
|
|
1804
|
+
]),
|
|
1805
|
+
createTextVNode("\n"),
|
|
1806
|
+
createVNode("span", { class: "line" }, [
|
|
1807
|
+
createVNode("span", { style: { "color": "#24292E" } }, " },")
|
|
1808
|
+
]),
|
|
1809
|
+
createTextVNode("\n"),
|
|
1810
|
+
createVNode("span", { class: "line" }, [
|
|
1811
|
+
createVNode("span", { style: { "color": "#24292E" } }, " },")
|
|
1812
|
+
]),
|
|
1813
|
+
createTextVNode("\n"),
|
|
1814
|
+
createVNode("span", { class: "line" }, [
|
|
1815
|
+
createVNode("span", { style: { "color": "#24292E" } }, "}")
|
|
1816
|
+
])
|
|
1817
|
+
])
|
|
1818
|
+
])
|
|
1819
|
+
]),
|
|
1820
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1821
|
+
createVNode("p", null, "但不仅如此,其他主题同样可复用 Valaxy 默认提供的色彩及变量函数来快速构建自身。"),
|
|
1822
|
+
createVNode("blockquote", null, [
|
|
1823
|
+
createVNode("p", null, [
|
|
1824
|
+
createTextVNode("更多请参见 "),
|
|
1825
|
+
createVNode(_component_AppLink, {
|
|
1826
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
1827
|
+
target: "_blank",
|
|
1828
|
+
rel: "noreferrer"
|
|
1829
|
+
}, {
|
|
1830
|
+
default: withCtx(() => [
|
|
1831
|
+
createTextVNode("valaxy-theme-yun")
|
|
1832
|
+
]),
|
|
1833
|
+
_: 1
|
|
1834
|
+
/* STABLE */
|
|
1835
|
+
}),
|
|
1836
|
+
createTextVNode(" 代码。")
|
|
1837
|
+
])
|
|
1838
|
+
])
|
|
1839
|
+
]),
|
|
1840
|
+
createVNode("div", { lang: "en" }, [
|
|
1841
|
+
createVNode("p", null, "Even more, other themes can also re-use the default color dynamic functions provided by Valaxy to build their own."),
|
|
1842
|
+
createVNode("blockquote", null, [
|
|
1843
|
+
createVNode("p", null, [
|
|
1844
|
+
createTextVNode("Please refer to code in "),
|
|
1845
|
+
createVNode(_component_AppLink, {
|
|
1846
|
+
href: "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun",
|
|
1847
|
+
target: "_blank",
|
|
1848
|
+
rel: "noreferrer"
|
|
1849
|
+
}, {
|
|
1850
|
+
default: withCtx(() => [
|
|
1851
|
+
createTextVNode("valaxy-theme-yun")
|
|
1852
|
+
]),
|
|
1853
|
+
_: 1
|
|
1854
|
+
/* STABLE */
|
|
1855
|
+
}),
|
|
1856
|
+
createTextVNode(" for more.")
|
|
1857
|
+
])
|
|
1858
|
+
])
|
|
1859
|
+
]),
|
|
1860
|
+
createVNode("h2", {
|
|
1861
|
+
lang: "en",
|
|
1862
|
+
id: "file-based-routing",
|
|
1863
|
+
tabindex: "-1"
|
|
1864
|
+
}, [
|
|
1865
|
+
createTextVNode("File-based Routing "),
|
|
1866
|
+
createVNode(_component_AppLink, {
|
|
1867
|
+
class: "header-anchor",
|
|
1868
|
+
href: "#file-based-routing",
|
|
1869
|
+
"aria-label": 'Permalink to "File-based Routing {lang="en"}"'
|
|
1870
|
+
}, {
|
|
1871
|
+
default: withCtx(() => [
|
|
1872
|
+
createTextVNode("")
|
|
1873
|
+
]),
|
|
1874
|
+
_: 1
|
|
1875
|
+
/* STABLE */
|
|
1876
|
+
})
|
|
1877
|
+
]),
|
|
1878
|
+
createVNode("h2", {
|
|
1879
|
+
lang: "zh-CN",
|
|
1880
|
+
id: "基于文件的自动路由",
|
|
1881
|
+
tabindex: "-1"
|
|
1882
|
+
}, [
|
|
1883
|
+
createTextVNode("基于文件的自动路由 "),
|
|
1884
|
+
createVNode(_component_AppLink, {
|
|
1885
|
+
class: "header-anchor",
|
|
1886
|
+
href: "#基于文件的自动路由",
|
|
1887
|
+
"aria-label": 'Permalink to "基于文件的自动路由 {lang="zh-CN"}"'
|
|
1888
|
+
}, {
|
|
1889
|
+
default: withCtx(() => [
|
|
1890
|
+
createTextVNode("")
|
|
1891
|
+
]),
|
|
1892
|
+
_: 1
|
|
1893
|
+
/* STABLE */
|
|
1894
|
+
})
|
|
1895
|
+
]),
|
|
1896
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1897
|
+
createVNode("p", null, [
|
|
1898
|
+
createTextVNode("路由会自动遵循相同目录结构从当前路径中的 Vue 文件生成。更多请参考 "),
|
|
1899
|
+
createVNode(_component_AppLink, {
|
|
1900
|
+
href: "https://github.com/hannoeru/vite-plugin-pages",
|
|
1901
|
+
target: "_blank",
|
|
1902
|
+
rel: "noreferrer"
|
|
1903
|
+
}, {
|
|
1904
|
+
default: withCtx(() => [
|
|
1905
|
+
createVNode("code", null, "vite-plugin-pages")
|
|
1906
|
+
]),
|
|
1907
|
+
_: 1
|
|
1908
|
+
/* STABLE */
|
|
1909
|
+
}),
|
|
1910
|
+
createTextVNode("。")
|
|
1911
|
+
])
|
|
1912
|
+
]),
|
|
1913
|
+
createVNode("div", { lang: "en" }, [
|
|
1914
|
+
createVNode("p", null, [
|
|
1915
|
+
createTextVNode("Routes will be auto-generated for Vue files in this dir with the same file structure. Check out "),
|
|
1916
|
+
createVNode(_component_AppLink, {
|
|
1917
|
+
href: "https://github.com/hannoeru/vite-plugin-pages",
|
|
1918
|
+
target: "_blank",
|
|
1919
|
+
rel: "noreferrer"
|
|
1920
|
+
}, {
|
|
1921
|
+
default: withCtx(() => [
|
|
1922
|
+
createVNode("code", null, "vite-plugin-pages")
|
|
1923
|
+
]),
|
|
1924
|
+
_: 1
|
|
1925
|
+
/* STABLE */
|
|
1926
|
+
}),
|
|
1927
|
+
createTextVNode(" for more details.")
|
|
1928
|
+
])
|
|
1929
|
+
]),
|
|
1930
|
+
createVNode("h2", {
|
|
1931
|
+
lang: "zh-CN",
|
|
1932
|
+
id: "构建",
|
|
1933
|
+
tabindex: "-1"
|
|
1934
|
+
}, [
|
|
1935
|
+
createTextVNode("构建 "),
|
|
1936
|
+
createVNode(_component_AppLink, {
|
|
1937
|
+
class: "header-anchor",
|
|
1938
|
+
href: "#构建",
|
|
1939
|
+
"aria-label": 'Permalink to "构建 {lang="zh-CN"}"'
|
|
1940
|
+
}, {
|
|
1941
|
+
default: withCtx(() => [
|
|
1942
|
+
createTextVNode("")
|
|
1943
|
+
]),
|
|
1944
|
+
_: 1
|
|
1945
|
+
/* STABLE */
|
|
1946
|
+
})
|
|
1947
|
+
]),
|
|
1948
|
+
createVNode("h2", {
|
|
1949
|
+
lang: "en",
|
|
1950
|
+
id: "building",
|
|
1951
|
+
tabindex: "-1"
|
|
1952
|
+
}, [
|
|
1953
|
+
createTextVNode("Building "),
|
|
1954
|
+
createVNode(_component_AppLink, {
|
|
1955
|
+
class: "header-anchor",
|
|
1956
|
+
href: "#building",
|
|
1957
|
+
"aria-label": 'Permalink to "Building {lang="en"}"'
|
|
1958
|
+
}, {
|
|
1959
|
+
default: withCtx(() => [
|
|
1960
|
+
createTextVNode("")
|
|
1961
|
+
]),
|
|
1962
|
+
_: 1
|
|
1963
|
+
/* STABLE */
|
|
1964
|
+
})
|
|
1965
|
+
]),
|
|
1966
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1967
|
+
createVNode("p", null, "同时支持 SPA 与 SSG 两种方案。")
|
|
1968
|
+
]),
|
|
1969
|
+
createVNode("div", { lang: "en" }, [
|
|
1970
|
+
createVNode("p", null, "Supports SPA and SSG.")
|
|
1971
|
+
]),
|
|
1972
|
+
createVNode("h3", {
|
|
1973
|
+
id: "ssg",
|
|
1974
|
+
tabindex: "-1"
|
|
1975
|
+
}, [
|
|
1976
|
+
createTextVNode("SSG "),
|
|
1977
|
+
createVNode(_component_AppLink, {
|
|
1978
|
+
class: "header-anchor",
|
|
1979
|
+
href: "#ssg",
|
|
1980
|
+
"aria-label": 'Permalink to "SSG"'
|
|
1981
|
+
}, {
|
|
1982
|
+
default: withCtx(() => [
|
|
1983
|
+
createTextVNode("")
|
|
1984
|
+
]),
|
|
1985
|
+
_: 1
|
|
1986
|
+
/* STABLE */
|
|
1987
|
+
})
|
|
1988
|
+
]),
|
|
1989
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
1990
|
+
createVNode("p", null, [
|
|
1991
|
+
createTextVNode("基于 "),
|
|
1992
|
+
createVNode(_component_AppLink, {
|
|
1993
|
+
href: "https://github.com/antfu/vite-ssg",
|
|
1994
|
+
target: "_blank",
|
|
1995
|
+
rel: "noreferrer"
|
|
1996
|
+
}, {
|
|
1997
|
+
default: withCtx(() => [
|
|
1998
|
+
createTextVNode("vite-ssg")
|
|
1999
|
+
]),
|
|
2000
|
+
_: 1
|
|
2001
|
+
/* STABLE */
|
|
2002
|
+
}),
|
|
2003
|
+
createTextVNode(" 实现")
|
|
2004
|
+
])
|
|
2005
|
+
]),
|
|
2006
|
+
createVNode("div", { lang: "en" }, [
|
|
2007
|
+
createVNode("p", null, [
|
|
2008
|
+
createTextVNode("Based on "),
|
|
2009
|
+
createVNode(_component_AppLink, {
|
|
2010
|
+
href: "https://github.com/antfu/vite-ssg",
|
|
2011
|
+
target: "_blank",
|
|
2012
|
+
rel: "noreferrer"
|
|
2013
|
+
}, {
|
|
2014
|
+
default: withCtx(() => [
|
|
2015
|
+
createTextVNode("vite-ssg")
|
|
2016
|
+
]),
|
|
2017
|
+
_: 1
|
|
2018
|
+
/* STABLE */
|
|
2019
|
+
})
|
|
2020
|
+
])
|
|
2021
|
+
]),
|
|
2022
|
+
createVNode("div", { class: "language-bash" }, [
|
|
2023
|
+
createVNode("button", {
|
|
2024
|
+
title: "Copy Code",
|
|
2025
|
+
class: "copy"
|
|
2026
|
+
}),
|
|
2027
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
2028
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
2029
|
+
createVNode("code", null, [
|
|
2030
|
+
createVNode("span", { class: "line" }, [
|
|
2031
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# SSG")
|
|
2032
|
+
]),
|
|
2033
|
+
createTextVNode("\n"),
|
|
2034
|
+
createVNode("span", { class: "line" }, [
|
|
2035
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
2036
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2037
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "run"),
|
|
2038
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2039
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "build:ssg")
|
|
2040
|
+
]),
|
|
2041
|
+
createTextVNode("\n"),
|
|
2042
|
+
createVNode("span", { class: "line" }, [
|
|
2043
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# valaxy build --ssg")
|
|
2044
|
+
])
|
|
2045
|
+
])
|
|
2046
|
+
]),
|
|
2047
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
2048
|
+
createVNode("code", null, [
|
|
2049
|
+
createVNode("span", { class: "line" }, [
|
|
2050
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# SSG")
|
|
2051
|
+
]),
|
|
2052
|
+
createTextVNode("\n"),
|
|
2053
|
+
createVNode("span", { class: "line" }, [
|
|
2054
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
2055
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2056
|
+
createVNode("span", { style: { "color": "#032F62" } }, "run"),
|
|
2057
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2058
|
+
createVNode("span", { style: { "color": "#032F62" } }, "build:ssg")
|
|
2059
|
+
]),
|
|
2060
|
+
createTextVNode("\n"),
|
|
2061
|
+
createVNode("span", { class: "line" }, [
|
|
2062
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# valaxy build --ssg")
|
|
2063
|
+
])
|
|
2064
|
+
])
|
|
2065
|
+
])
|
|
2066
|
+
]),
|
|
2067
|
+
createVNode("h3", {
|
|
2068
|
+
id: "spa",
|
|
2069
|
+
tabindex: "-1"
|
|
2070
|
+
}, [
|
|
2071
|
+
createTextVNode("SPA "),
|
|
2072
|
+
createVNode(_component_AppLink, {
|
|
2073
|
+
class: "header-anchor",
|
|
2074
|
+
href: "#spa",
|
|
2075
|
+
"aria-label": 'Permalink to "SPA"'
|
|
2076
|
+
}, {
|
|
2077
|
+
default: withCtx(() => [
|
|
2078
|
+
createTextVNode("")
|
|
2079
|
+
]),
|
|
2080
|
+
_: 1
|
|
2081
|
+
/* STABLE */
|
|
2082
|
+
})
|
|
2083
|
+
]),
|
|
2084
|
+
createVNode("div", { class: "language-bash" }, [
|
|
2085
|
+
createVNode("button", {
|
|
2086
|
+
title: "Copy Code",
|
|
2087
|
+
class: "copy"
|
|
2088
|
+
}),
|
|
2089
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
2090
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
2091
|
+
createVNode("code", null, [
|
|
2092
|
+
createVNode("span", { class: "line" }, [
|
|
2093
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
2094
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2095
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "run"),
|
|
2096
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2097
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "build:spa")
|
|
2098
|
+
]),
|
|
2099
|
+
createTextVNode("\n"),
|
|
2100
|
+
createVNode("span", { class: "line" }, [
|
|
2101
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# valaxy build")
|
|
2102
|
+
])
|
|
2103
|
+
])
|
|
2104
|
+
]),
|
|
2105
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
2106
|
+
createVNode("code", null, [
|
|
2107
|
+
createVNode("span", { class: "line" }, [
|
|
2108
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
2109
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2110
|
+
createVNode("span", { style: { "color": "#032F62" } }, "run"),
|
|
2111
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2112
|
+
createVNode("span", { style: { "color": "#032F62" } }, "build:spa")
|
|
2113
|
+
]),
|
|
2114
|
+
createTextVNode("\n"),
|
|
2115
|
+
createVNode("span", { class: "line" }, [
|
|
2116
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# valaxy build")
|
|
2117
|
+
])
|
|
2118
|
+
])
|
|
2119
|
+
])
|
|
2120
|
+
]),
|
|
2121
|
+
createVNode("h2", {
|
|
2122
|
+
id: "seo",
|
|
2123
|
+
tabindex: "-1"
|
|
2124
|
+
}, [
|
|
2125
|
+
createTextVNode("SEO "),
|
|
2126
|
+
createVNode(_component_AppLink, {
|
|
2127
|
+
class: "header-anchor",
|
|
2128
|
+
href: "#seo",
|
|
2129
|
+
"aria-label": 'Permalink to "SEO"'
|
|
2130
|
+
}, {
|
|
2131
|
+
default: withCtx(() => [
|
|
2132
|
+
createTextVNode("")
|
|
2133
|
+
]),
|
|
2134
|
+
_: 1
|
|
2135
|
+
/* STABLE */
|
|
2136
|
+
})
|
|
2137
|
+
]),
|
|
2138
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
2139
|
+
createVNode("p", null, "Valaxy 已经默认集成了 Open Graph 的 SEO 优化,您无需为此操心。 但需要注意的是,对于许多搜索引擎来说,他们可能只青睐 SSG 的构建模式。")
|
|
2140
|
+
]),
|
|
2141
|
+
createVNode("div", { lang: "en" }, [
|
|
2142
|
+
createVNode("p", null, "Valaxy by default has integrated SEO optimization by Open Graph, and you don't need to worry about that. Note that for many search engines, they like SSG builds more.")
|
|
2143
|
+
]),
|
|
2144
|
+
createVNode("h2", {
|
|
2145
|
+
id: "rss",
|
|
2146
|
+
tabindex: "-1"
|
|
2147
|
+
}, [
|
|
2148
|
+
createTextVNode("RSS "),
|
|
2149
|
+
createVNode(_component_AppLink, {
|
|
2150
|
+
class: "header-anchor",
|
|
2151
|
+
href: "#rss",
|
|
2152
|
+
"aria-label": 'Permalink to "RSS"'
|
|
2153
|
+
}, {
|
|
2154
|
+
default: withCtx(() => [
|
|
2155
|
+
createTextVNode("")
|
|
2156
|
+
]),
|
|
2157
|
+
_: 1
|
|
2158
|
+
/* STABLE */
|
|
2159
|
+
})
|
|
2160
|
+
]),
|
|
2161
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
2162
|
+
createVNode("p", null, "自带命令生成 RSS 订阅源。"),
|
|
2163
|
+
createVNode("blockquote", null, [
|
|
2164
|
+
createVNode("p", null, [
|
|
2165
|
+
createVNode(_component_AppLink, {
|
|
2166
|
+
href: "https://baike.baidu.com/item/rss/24470",
|
|
2167
|
+
target: "_blank",
|
|
2168
|
+
rel: "noreferrer"
|
|
2169
|
+
}, {
|
|
2170
|
+
default: withCtx(() => [
|
|
2171
|
+
createTextVNode("RSS 是什么?")
|
|
2172
|
+
]),
|
|
2173
|
+
_: 1
|
|
2174
|
+
/* STABLE */
|
|
2175
|
+
})
|
|
2176
|
+
])
|
|
2177
|
+
])
|
|
2178
|
+
]),
|
|
2179
|
+
createVNode("div", { lang: "en" }, [
|
|
2180
|
+
createVNode("p", null, "Valaxy comes with a command to generate RSS feeds."),
|
|
2181
|
+
createVNode("blockquote", null, [
|
|
2182
|
+
createVNode("p", null, [
|
|
2183
|
+
createVNode(_component_AppLink, {
|
|
2184
|
+
href: "https://en.wikipedia.org/wiki/RSS",
|
|
2185
|
+
target: "_blank",
|
|
2186
|
+
rel: "noreferrer"
|
|
2187
|
+
}, {
|
|
2188
|
+
default: withCtx(() => [
|
|
2189
|
+
createTextVNode("What is RSS?")
|
|
2190
|
+
]),
|
|
2191
|
+
_: 1
|
|
2192
|
+
/* STABLE */
|
|
2193
|
+
})
|
|
2194
|
+
])
|
|
2195
|
+
])
|
|
2196
|
+
]),
|
|
2197
|
+
createVNode("div", { class: "language-bash" }, [
|
|
2198
|
+
createVNode("button", {
|
|
2199
|
+
title: "Copy Code",
|
|
2200
|
+
class: "copy"
|
|
2201
|
+
}),
|
|
2202
|
+
createVNode("span", { class: "lang" }, "bash"),
|
|
2203
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
2204
|
+
createVNode("code", null, [
|
|
2205
|
+
createVNode("span", { class: "line" }, [
|
|
2206
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "npm"),
|
|
2207
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2208
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "run"),
|
|
2209
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2210
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "rss")
|
|
2211
|
+
]),
|
|
2212
|
+
createTextVNode("\n"),
|
|
2213
|
+
createVNode("span", { class: "line" }, [
|
|
2214
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# valaxy rss")
|
|
2215
|
+
])
|
|
2216
|
+
])
|
|
2217
|
+
]),
|
|
2218
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
2219
|
+
createVNode("code", null, [
|
|
2220
|
+
createVNode("span", { class: "line" }, [
|
|
2221
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "npm"),
|
|
2222
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2223
|
+
createVNode("span", { style: { "color": "#032F62" } }, "run"),
|
|
2224
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2225
|
+
createVNode("span", { style: { "color": "#032F62" } }, "rss")
|
|
2226
|
+
]),
|
|
2227
|
+
createTextVNode("\n"),
|
|
2228
|
+
createVNode("span", { class: "line" }, [
|
|
2229
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "# valaxy rss")
|
|
2230
|
+
])
|
|
2231
|
+
])
|
|
2232
|
+
])
|
|
2233
|
+
]),
|
|
2234
|
+
createVNode("h2", {
|
|
2235
|
+
lang: "en",
|
|
2236
|
+
id: "i18n-in-one-page",
|
|
2237
|
+
tabindex: "-1"
|
|
2238
|
+
}, [
|
|
2239
|
+
createTextVNode("i18n in One Page "),
|
|
2240
|
+
createVNode(_component_AppLink, {
|
|
2241
|
+
class: "header-anchor",
|
|
2242
|
+
href: "#i18n-in-one-page",
|
|
2243
|
+
"aria-label": 'Permalink to "i18n in One Page {lang="en"}"'
|
|
2244
|
+
}, {
|
|
2245
|
+
default: withCtx(() => [
|
|
2246
|
+
createTextVNode("")
|
|
2247
|
+
]),
|
|
2248
|
+
_: 1
|
|
2249
|
+
/* STABLE */
|
|
2250
|
+
})
|
|
2251
|
+
]),
|
|
2252
|
+
createVNode("h2", {
|
|
2253
|
+
lang: "zh-CN",
|
|
2254
|
+
id: "单页-i18n",
|
|
2255
|
+
tabindex: "-1"
|
|
2256
|
+
}, [
|
|
2257
|
+
createTextVNode("单页 i18n "),
|
|
2258
|
+
createVNode(_component_AppLink, {
|
|
2259
|
+
class: "header-anchor",
|
|
2260
|
+
href: "#单页-i18n",
|
|
2261
|
+
"aria-label": 'Permalink to "单页 i18n {lang="zh-CN"}"'
|
|
2262
|
+
}, {
|
|
2263
|
+
default: withCtx(() => [
|
|
2264
|
+
createTextVNode("")
|
|
2265
|
+
]),
|
|
2266
|
+
_: 1
|
|
2267
|
+
/* STABLE */
|
|
2268
|
+
})
|
|
2269
|
+
]),
|
|
2270
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
2271
|
+
createVNode("p", null, [
|
|
2272
|
+
createTextVNode("详情请见 "),
|
|
2273
|
+
createVNode(_component_AppLink, { href: "/posts/i18n" }, {
|
|
2274
|
+
default: withCtx(() => [
|
|
2275
|
+
createTextVNode("i18n")
|
|
2276
|
+
]),
|
|
2277
|
+
_: 1
|
|
2278
|
+
/* STABLE */
|
|
2279
|
+
}),
|
|
2280
|
+
createTextVNode("。")
|
|
2281
|
+
])
|
|
2282
|
+
]),
|
|
2283
|
+
createVNode("div", { lang: "en" }, [
|
|
2284
|
+
createVNode("p", null, [
|
|
2285
|
+
createTextVNode("For more info, see "),
|
|
2286
|
+
createVNode(_component_AppLink, { href: "/posts/i18n" }, {
|
|
2287
|
+
default: withCtx(() => [
|
|
2288
|
+
createTextVNode("i18n")
|
|
2289
|
+
]),
|
|
2290
|
+
_: 1
|
|
2291
|
+
/* STABLE */
|
|
2292
|
+
}),
|
|
2293
|
+
createTextVNode(".")
|
|
2294
|
+
])
|
|
2295
|
+
]),
|
|
2296
|
+
createVNode("h2", {
|
|
2297
|
+
id: "katex",
|
|
2298
|
+
tabindex: "-1"
|
|
2299
|
+
}, [
|
|
2300
|
+
createTextVNode("KaTeX "),
|
|
2301
|
+
createVNode(_component_AppLink, {
|
|
2302
|
+
class: "header-anchor",
|
|
2303
|
+
href: "#katex",
|
|
2304
|
+
"aria-label": 'Permalink to "KaTeX"'
|
|
2305
|
+
}, {
|
|
2306
|
+
default: withCtx(() => [
|
|
2307
|
+
createTextVNode("")
|
|
2308
|
+
]),
|
|
2309
|
+
_: 1
|
|
2310
|
+
/* STABLE */
|
|
2311
|
+
})
|
|
2312
|
+
]),
|
|
2313
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
2314
|
+
createVNode("p", null, "KaTeX 已被默认支持并启用。")
|
|
2315
|
+
]),
|
|
2316
|
+
createVNode("div", { lang: "en" }, [
|
|
2317
|
+
createVNode("p", null, "Katex is enabled by default.")
|
|
2318
|
+
]),
|
|
2319
|
+
createVNode("div", { class: "language-ts" }, [
|
|
2320
|
+
createVNode("button", {
|
|
2321
|
+
title: "Copy Code",
|
|
2322
|
+
class: "copy"
|
|
2323
|
+
}),
|
|
2324
|
+
createVNode("span", { class: "lang" }, "ts"),
|
|
2325
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
2326
|
+
createVNode("code", null, [
|
|
2327
|
+
createVNode("span", { class: "line" }, [
|
|
2328
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// valaxy.config.ts")
|
|
2329
|
+
]),
|
|
2330
|
+
createTextVNode("\n"),
|
|
2331
|
+
createVNode("span", { class: "line" }, [
|
|
2332
|
+
createVNode("span", { style: { "color": "#F97583" } }, "import"),
|
|
2333
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " { defineValaxyConfig } "),
|
|
2334
|
+
createVNode("span", { style: { "color": "#F97583" } }, "from"),
|
|
2335
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2336
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'valaxy'")
|
|
2337
|
+
]),
|
|
2338
|
+
createTextVNode("\n"),
|
|
2339
|
+
createVNode("span", { class: "line" }),
|
|
2340
|
+
createTextVNode("\n"),
|
|
2341
|
+
createVNode("span", { class: "line" }, [
|
|
2342
|
+
createVNode("span", { style: { "color": "#F97583" } }, "export"),
|
|
2343
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2344
|
+
createVNode("span", { style: { "color": "#F97583" } }, "default"),
|
|
2345
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2346
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "defineValaxyConfig"),
|
|
2347
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "({")
|
|
2348
|
+
]),
|
|
2349
|
+
createTextVNode("\n"),
|
|
2350
|
+
createVNode("span", { class: "line" }, [
|
|
2351
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " features: {")
|
|
2352
|
+
]),
|
|
2353
|
+
createTextVNode("\n"),
|
|
2354
|
+
createVNode("span", { class: "line" }, [
|
|
2355
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
2356
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// disable katex")
|
|
2357
|
+
]),
|
|
2358
|
+
createTextVNode("\n"),
|
|
2359
|
+
createVNode("span", { class: "line" }, [
|
|
2360
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " katex: "),
|
|
2361
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "false")
|
|
2362
|
+
]),
|
|
2363
|
+
createTextVNode("\n"),
|
|
2364
|
+
createVNode("span", { class: "line" }, [
|
|
2365
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " }")
|
|
2366
|
+
]),
|
|
2367
|
+
createTextVNode("\n"),
|
|
2368
|
+
createVNode("span", { class: "line" }, [
|
|
2369
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "})")
|
|
2370
|
+
])
|
|
2371
|
+
])
|
|
2372
|
+
]),
|
|
2373
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
2374
|
+
createVNode("code", null, [
|
|
2375
|
+
createVNode("span", { class: "line" }, [
|
|
2376
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// valaxy.config.ts")
|
|
2377
|
+
]),
|
|
2378
|
+
createTextVNode("\n"),
|
|
2379
|
+
createVNode("span", { class: "line" }, [
|
|
2380
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "import"),
|
|
2381
|
+
createVNode("span", { style: { "color": "#24292E" } }, " { defineValaxyConfig } "),
|
|
2382
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "from"),
|
|
2383
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2384
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'valaxy'")
|
|
2385
|
+
]),
|
|
2386
|
+
createTextVNode("\n"),
|
|
2387
|
+
createVNode("span", { class: "line" }),
|
|
2388
|
+
createTextVNode("\n"),
|
|
2389
|
+
createVNode("span", { class: "line" }, [
|
|
2390
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "export"),
|
|
2391
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2392
|
+
createVNode("span", { style: { "color": "#D73A49" } }, "default"),
|
|
2393
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2394
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "defineValaxyConfig"),
|
|
2395
|
+
createVNode("span", { style: { "color": "#24292E" } }, "({")
|
|
2396
|
+
]),
|
|
2397
|
+
createTextVNode("\n"),
|
|
2398
|
+
createVNode("span", { class: "line" }, [
|
|
2399
|
+
createVNode("span", { style: { "color": "#24292E" } }, " features: {")
|
|
2400
|
+
]),
|
|
2401
|
+
createTextVNode("\n"),
|
|
2402
|
+
createVNode("span", { class: "line" }, [
|
|
2403
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
2404
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "// disable katex")
|
|
2405
|
+
]),
|
|
2406
|
+
createTextVNode("\n"),
|
|
2407
|
+
createVNode("span", { class: "line" }, [
|
|
2408
|
+
createVNode("span", { style: { "color": "#24292E" } }, " katex: "),
|
|
2409
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "false")
|
|
2410
|
+
]),
|
|
2411
|
+
createTextVNode("\n"),
|
|
2412
|
+
createVNode("span", { class: "line" }, [
|
|
2413
|
+
createVNode("span", { style: { "color": "#24292E" } }, " }")
|
|
2414
|
+
]),
|
|
2415
|
+
createTextVNode("\n"),
|
|
2416
|
+
createVNode("span", { class: "line" }, [
|
|
2417
|
+
createVNode("span", { style: { "color": "#24292E" } }, "})")
|
|
2418
|
+
])
|
|
2419
|
+
])
|
|
2420
|
+
])
|
|
2421
|
+
]),
|
|
2422
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
2423
|
+
createVNode("ul", null, [
|
|
2424
|
+
createVNode("li", null, [
|
|
2425
|
+
createVNode(_component_AppLink, { href: "/examples/katex" }, {
|
|
2426
|
+
default: withCtx(() => [
|
|
2427
|
+
createTextVNode("KaTeX | 示例")
|
|
2428
|
+
]),
|
|
2429
|
+
_: 1
|
|
2430
|
+
/* STABLE */
|
|
2431
|
+
})
|
|
2432
|
+
])
|
|
2433
|
+
])
|
|
2434
|
+
]),
|
|
2435
|
+
createVNode("div", { lang: "en" }, [
|
|
2436
|
+
createVNode("ul", null, [
|
|
2437
|
+
createVNode("li", null, [
|
|
2438
|
+
createVNode(_component_AppLink, { href: "/examples/katex" }, {
|
|
2439
|
+
default: withCtx(() => [
|
|
2440
|
+
createTextVNode("KaTeX | Examples")
|
|
2441
|
+
]),
|
|
2442
|
+
_: 1
|
|
2443
|
+
/* STABLE */
|
|
2444
|
+
})
|
|
2445
|
+
])
|
|
2446
|
+
])
|
|
2447
|
+
]),
|
|
2448
|
+
createVNode("h2", {
|
|
2449
|
+
lang: "zh-CN",
|
|
2450
|
+
id: "自动路由替换",
|
|
2451
|
+
tabindex: "-1"
|
|
2452
|
+
}, [
|
|
2453
|
+
createTextVNode("自动路由替换 "),
|
|
2454
|
+
createVNode(_component_AppLink, {
|
|
2455
|
+
class: "header-anchor",
|
|
2456
|
+
href: "#自动路由替换",
|
|
2457
|
+
"aria-label": 'Permalink to "自动路由替换 {lang="zh-CN"}"'
|
|
2458
|
+
}, {
|
|
2459
|
+
default: withCtx(() => [
|
|
2460
|
+
createTextVNode("")
|
|
2461
|
+
]),
|
|
2462
|
+
_: 1
|
|
2463
|
+
/* STABLE */
|
|
2464
|
+
})
|
|
2465
|
+
]),
|
|
2466
|
+
createVNode("h2", {
|
|
2467
|
+
lang: "en",
|
|
2468
|
+
id: "auto-route-replacing",
|
|
2469
|
+
tabindex: "-1"
|
|
2470
|
+
}, [
|
|
2471
|
+
createTextVNode("Auto Route Replacing "),
|
|
2472
|
+
createVNode(_component_AppLink, {
|
|
2473
|
+
class: "header-anchor",
|
|
2474
|
+
href: "#auto-route-replacing",
|
|
2475
|
+
"aria-label": 'Permalink to "Auto Route Replacing {lang="en"}"'
|
|
2476
|
+
}, {
|
|
2477
|
+
default: withCtx(() => [
|
|
2478
|
+
createTextVNode("")
|
|
2479
|
+
]),
|
|
2480
|
+
_: 1
|
|
2481
|
+
/* STABLE */
|
|
2482
|
+
})
|
|
2483
|
+
]),
|
|
2484
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
2485
|
+
createVNode("p", null, [
|
|
2486
|
+
createTextVNode("当 Valaxy 检测到文章的 a 链接为站内链接时,会自动将其替换为 "),
|
|
2487
|
+
createVNode("code", null, "RouterLink"),
|
|
2488
|
+
createTextVNode(",享受丝滑的动态切换吧!")
|
|
2489
|
+
])
|
|
2490
|
+
]),
|
|
2491
|
+
createVNode("div", { lang: "en" }, [
|
|
2492
|
+
createVNode("p", null, [
|
|
2493
|
+
createTextVNode("When Valaxy detects that an "),
|
|
2494
|
+
createVNode("code", null, "a"),
|
|
2495
|
+
createTextVNode(" hyperlink in a post is an intra-site link (relative link), it will automatically replace it with a "),
|
|
2496
|
+
createVNode("code", null, "RouterLink"),
|
|
2497
|
+
createTextVNode(". Enjoy the dynamic page switching!")
|
|
2498
|
+
])
|
|
2499
|
+
])
|
|
2500
|
+
];
|
|
2501
|
+
}
|
|
2502
|
+
}),
|
|
2503
|
+
"main-header": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2504
|
+
if (_push2) {
|
|
2505
|
+
ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
|
|
2506
|
+
} else {
|
|
2507
|
+
return [
|
|
2508
|
+
renderSlot(_ctx.$slots, "main-header")
|
|
2509
|
+
];
|
|
2510
|
+
}
|
|
2511
|
+
}),
|
|
2512
|
+
"main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2513
|
+
if (_push2) {
|
|
2514
|
+
ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
|
|
2515
|
+
} else {
|
|
2516
|
+
return [
|
|
2517
|
+
renderSlot(_ctx.$slots, "main-header-after")
|
|
2518
|
+
];
|
|
2519
|
+
}
|
|
2520
|
+
}),
|
|
2521
|
+
"main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2522
|
+
if (_push2) {
|
|
2523
|
+
ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
|
|
2524
|
+
} else {
|
|
2525
|
+
return [
|
|
2526
|
+
renderSlot(_ctx.$slots, "main-nav")
|
|
2527
|
+
];
|
|
2528
|
+
}
|
|
2529
|
+
}),
|
|
2530
|
+
"main-content": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2531
|
+
if (_push2) {
|
|
2532
|
+
ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
|
|
2533
|
+
} else {
|
|
2534
|
+
return [
|
|
2535
|
+
renderSlot(_ctx.$slots, "main-content")
|
|
2536
|
+
];
|
|
2537
|
+
}
|
|
2538
|
+
}),
|
|
2539
|
+
"main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2540
|
+
if (_push2) {
|
|
2541
|
+
ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
|
|
2542
|
+
} else {
|
|
2543
|
+
return [
|
|
2544
|
+
renderSlot(_ctx.$slots, "main-content-after")
|
|
2545
|
+
];
|
|
2546
|
+
}
|
|
2547
|
+
}),
|
|
2548
|
+
"main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2549
|
+
if (_push2) {
|
|
2550
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
|
|
2551
|
+
} else {
|
|
2552
|
+
return [
|
|
2553
|
+
renderSlot(_ctx.$slots, "main-nav-before")
|
|
2554
|
+
];
|
|
2555
|
+
}
|
|
2556
|
+
}),
|
|
2557
|
+
"main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2558
|
+
if (_push2) {
|
|
2559
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
|
|
2560
|
+
} else {
|
|
2561
|
+
return [
|
|
2562
|
+
renderSlot(_ctx.$slots, "main-nav-after")
|
|
2563
|
+
];
|
|
2564
|
+
}
|
|
2565
|
+
}),
|
|
2566
|
+
comment: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2567
|
+
if (_push2) {
|
|
2568
|
+
ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
|
|
2569
|
+
} else {
|
|
2570
|
+
return [
|
|
2571
|
+
renderSlot(_ctx.$slots, "comment")
|
|
2572
|
+
];
|
|
2573
|
+
}
|
|
2574
|
+
}),
|
|
2575
|
+
footer: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2576
|
+
if (_push2) {
|
|
2577
|
+
ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
|
|
2578
|
+
} else {
|
|
2579
|
+
return [
|
|
2580
|
+
renderSlot(_ctx.$slots, "footer")
|
|
2581
|
+
];
|
|
2582
|
+
}
|
|
2583
|
+
}),
|
|
2584
|
+
aside: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2585
|
+
if (_push2) {
|
|
2586
|
+
ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
|
|
2587
|
+
} else {
|
|
2588
|
+
return [
|
|
2589
|
+
renderSlot(_ctx.$slots, "aside")
|
|
2590
|
+
];
|
|
2591
|
+
}
|
|
2592
|
+
}),
|
|
2593
|
+
"aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2594
|
+
if (_push2) {
|
|
2595
|
+
ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
|
|
2596
|
+
} else {
|
|
2597
|
+
return [
|
|
2598
|
+
renderSlot(_ctx.$slots, "aside-custom")
|
|
2599
|
+
];
|
|
2600
|
+
}
|
|
2601
|
+
}),
|
|
2602
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2603
|
+
if (_push2) {
|
|
2604
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
2605
|
+
} else {
|
|
2606
|
+
return [
|
|
2607
|
+
renderSlot(_ctx.$slots, "default")
|
|
2608
|
+
];
|
|
2609
|
+
}
|
|
2610
|
+
}),
|
|
2611
|
+
_: 3
|
|
2612
|
+
/* FORWARDED */
|
|
2613
|
+
}, _parent));
|
|
2614
|
+
}
|
|
2615
|
+
const _sfc_setup = _sfc_main.setup;
|
|
2616
|
+
_sfc_main.setup = (props, ctx) => {
|
|
2617
|
+
const ssrContext = useSSRContext();
|
|
2618
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/guide/features.md");
|
|
2619
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
2620
|
+
};
|
|
2621
|
+
const features = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
2622
|
+
export {
|
|
2623
|
+
__pageData,
|
|
2624
|
+
features as default
|
|
2625
|
+
};
|