create-bc-app 1.0.9 → 1.1.2
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/dist/index.mjs +9 -9
- package/package.json +37 -32
- package/template-docs-vitepress/.vitepress/cache/deps/@theme_index.js +259 -0
- package/template-docs-vitepress/.vitepress/cache/deps/@theme_index.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/_metadata.json +40 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-2MKPR7PC.js +9172 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-2MKPR7PC.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-ZXJI2PUM.js +11482 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-ZXJI2PUM.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/package.json +3 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4347 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js +567 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vue.js +323 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vue.js.map +7 -0
- package/template-docs-vitepress/.vitepress/config.mts +28 -0
- package/template-docs-vitepress/api-examples.md +49 -0
- package/template-docs-vitepress/index.md +25 -0
- package/template-docs-vitepress/markdown-examples.md +85 -0
- package/template-docs-vitepress/package-lock.json +1742 -0
- package/template-docs-vitepress/package.json +10 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vue_devtools-api.js +11 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vue_devtools-api.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vuepress_shared.js +136 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vuepress_shared.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/_metadata.json +40 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-5K23BRP6.js +11482 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-5K23BRP6.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-UKCZNIRO.js +164 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-UKCZNIRO.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/package.json +3 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue-router.js +2744 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue-router.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue.js +323 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/clientConfigs.js +19 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/routes.js +24 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/siteData.js +14 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/themeData.js +14 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/404.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/404.html.vue +4 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/get-started.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/get-started.html.vue +23 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/index.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/index.html.vue +4 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/prismjs/config.js +3 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/styles/index.scss +0 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/styles/palette.scss +0 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/vite-root/index.html +13 -0
- package/template-docs-vuepress/docs/.vuepress/config.js +18 -0
- package/template-docs-vuepress/docs/README.md +33 -0
- package/template-docs-vuepress/docs/get-started.md +46 -0
- package/template-docs-vuepress/package-lock.json +3380 -0
- package/template-docs-vuepress/package.json +19 -0
- package/template-protocut-2d/.eslintrc.cjs +203 -0
- package/template-protocut-2d/.gitignore +24 -0
- package/template-protocut-2d/.gitlab-ci.yml +41 -0
- package/template-protocut-2d/README.md +17 -0
- package/template-protocut-2d/image.png +0 -0
- package/template-protocut-2d/index.html +13 -0
- package/template-protocut-2d/package-lock.json +4917 -0
- package/template-protocut-2d/package.json +41 -0
- package/template-protocut-2d/public/vite.svg +1 -0
- package/template-protocut-2d/src/App.vue +12 -0
- package/template-protocut-2d/src/assets/vue.svg +1 -0
- package/template-protocut-2d/src/components/Example.vue +36 -0
- package/template-protocut-2d/src/main.ts +43 -0
- package/template-protocut-2d/src/style.css +5 -0
- package/template-protocut-2d/src/utils/plugins/watchNodeModules.js +24 -0
- package/template-protocut-2d/src/views/Home.vue +143 -0
- package/template-protocut-2d/src/vite-env.d.ts +1 -0
- package/template-protocut-2d/test/App.test.ts +16 -0
- package/template-protocut-2d/test/Example.test.ts +21 -0
- package/template-protocut-2d/tsconfig.app.json +27 -0
- package/template-protocut-2d/tsconfig.json +33 -0
- package/template-protocut-2d/tsconfig.node.json +11 -0
- package/template-protocut-2d/vite-env.d.ts +15 -0
- package/template-protocut-2d/vite.config.ts +55 -0
- package/template-protocut-2d/window.d.ts +6 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseTransition,
|
|
3
|
+
BaseTransitionPropsValidators,
|
|
4
|
+
Comment,
|
|
5
|
+
DeprecationTypes,
|
|
6
|
+
EffectScope,
|
|
7
|
+
ErrorCodes,
|
|
8
|
+
ErrorTypeStrings,
|
|
9
|
+
Fragment,
|
|
10
|
+
KeepAlive,
|
|
11
|
+
ReactiveEffect,
|
|
12
|
+
Static,
|
|
13
|
+
Suspense,
|
|
14
|
+
Teleport,
|
|
15
|
+
Text,
|
|
16
|
+
TrackOpTypes,
|
|
17
|
+
Transition,
|
|
18
|
+
TransitionGroup,
|
|
19
|
+
TriggerOpTypes,
|
|
20
|
+
VueElement,
|
|
21
|
+
assertNumber,
|
|
22
|
+
callWithAsyncErrorHandling,
|
|
23
|
+
callWithErrorHandling,
|
|
24
|
+
camelize,
|
|
25
|
+
capitalize,
|
|
26
|
+
cloneVNode,
|
|
27
|
+
compatUtils,
|
|
28
|
+
compile,
|
|
29
|
+
computed,
|
|
30
|
+
createApp,
|
|
31
|
+
createBaseVNode,
|
|
32
|
+
createBlock,
|
|
33
|
+
createCommentVNode,
|
|
34
|
+
createElementBlock,
|
|
35
|
+
createHydrationRenderer,
|
|
36
|
+
createPropsRestProxy,
|
|
37
|
+
createRenderer,
|
|
38
|
+
createSSRApp,
|
|
39
|
+
createSlots,
|
|
40
|
+
createStaticVNode,
|
|
41
|
+
createTextVNode,
|
|
42
|
+
createVNode,
|
|
43
|
+
customRef,
|
|
44
|
+
defineAsyncComponent,
|
|
45
|
+
defineComponent,
|
|
46
|
+
defineCustomElement,
|
|
47
|
+
defineEmits,
|
|
48
|
+
defineExpose,
|
|
49
|
+
defineModel,
|
|
50
|
+
defineOptions,
|
|
51
|
+
defineProps,
|
|
52
|
+
defineSSRCustomElement,
|
|
53
|
+
defineSlots,
|
|
54
|
+
devtools,
|
|
55
|
+
effect,
|
|
56
|
+
effectScope,
|
|
57
|
+
getCurrentInstance,
|
|
58
|
+
getCurrentScope,
|
|
59
|
+
getTransitionRawChildren,
|
|
60
|
+
guardReactiveProps,
|
|
61
|
+
h,
|
|
62
|
+
handleError,
|
|
63
|
+
hasInjectionContext,
|
|
64
|
+
hydrate,
|
|
65
|
+
initCustomFormatter,
|
|
66
|
+
initDirectivesForSSR,
|
|
67
|
+
inject,
|
|
68
|
+
isMemoSame,
|
|
69
|
+
isProxy,
|
|
70
|
+
isReactive,
|
|
71
|
+
isReadonly,
|
|
72
|
+
isRef,
|
|
73
|
+
isRuntimeOnly,
|
|
74
|
+
isShallow,
|
|
75
|
+
isVNode,
|
|
76
|
+
markRaw,
|
|
77
|
+
mergeDefaults,
|
|
78
|
+
mergeModels,
|
|
79
|
+
mergeProps,
|
|
80
|
+
nextTick,
|
|
81
|
+
normalizeClass,
|
|
82
|
+
normalizeProps,
|
|
83
|
+
normalizeStyle,
|
|
84
|
+
onActivated,
|
|
85
|
+
onBeforeMount,
|
|
86
|
+
onBeforeUnmount,
|
|
87
|
+
onBeforeUpdate,
|
|
88
|
+
onDeactivated,
|
|
89
|
+
onErrorCaptured,
|
|
90
|
+
onMounted,
|
|
91
|
+
onRenderTracked,
|
|
92
|
+
onRenderTriggered,
|
|
93
|
+
onScopeDispose,
|
|
94
|
+
onServerPrefetch,
|
|
95
|
+
onUnmounted,
|
|
96
|
+
onUpdated,
|
|
97
|
+
openBlock,
|
|
98
|
+
popScopeId,
|
|
99
|
+
provide,
|
|
100
|
+
proxyRefs,
|
|
101
|
+
pushScopeId,
|
|
102
|
+
queuePostFlushCb,
|
|
103
|
+
reactive,
|
|
104
|
+
readonly,
|
|
105
|
+
ref,
|
|
106
|
+
registerRuntimeCompiler,
|
|
107
|
+
render,
|
|
108
|
+
renderList,
|
|
109
|
+
renderSlot,
|
|
110
|
+
resolveComponent,
|
|
111
|
+
resolveDirective,
|
|
112
|
+
resolveDynamicComponent,
|
|
113
|
+
resolveFilter,
|
|
114
|
+
resolveTransitionHooks,
|
|
115
|
+
setBlockTracking,
|
|
116
|
+
setDevtoolsHook,
|
|
117
|
+
setTransitionHooks,
|
|
118
|
+
shallowReactive,
|
|
119
|
+
shallowReadonly,
|
|
120
|
+
shallowRef,
|
|
121
|
+
ssrContextKey,
|
|
122
|
+
ssrUtils,
|
|
123
|
+
stop,
|
|
124
|
+
toDisplayString,
|
|
125
|
+
toHandlerKey,
|
|
126
|
+
toHandlers,
|
|
127
|
+
toRaw,
|
|
128
|
+
toRef,
|
|
129
|
+
toRefs,
|
|
130
|
+
toValue,
|
|
131
|
+
transformVNodeArgs,
|
|
132
|
+
triggerRef,
|
|
133
|
+
unref,
|
|
134
|
+
useAttrs,
|
|
135
|
+
useCssModule,
|
|
136
|
+
useCssVars,
|
|
137
|
+
useModel,
|
|
138
|
+
useSSRContext,
|
|
139
|
+
useSlots,
|
|
140
|
+
useTransitionState,
|
|
141
|
+
vModelCheckbox,
|
|
142
|
+
vModelDynamic,
|
|
143
|
+
vModelRadio,
|
|
144
|
+
vModelSelect,
|
|
145
|
+
vModelText,
|
|
146
|
+
vShow,
|
|
147
|
+
version,
|
|
148
|
+
warn,
|
|
149
|
+
watch,
|
|
150
|
+
watchEffect,
|
|
151
|
+
watchPostEffect,
|
|
152
|
+
watchSyncEffect,
|
|
153
|
+
withAsyncContext,
|
|
154
|
+
withCtx,
|
|
155
|
+
withDefaults,
|
|
156
|
+
withDirectives,
|
|
157
|
+
withKeys,
|
|
158
|
+
withMemo,
|
|
159
|
+
withModifiers,
|
|
160
|
+
withScopeId
|
|
161
|
+
} from "./chunk-ZXJI2PUM.js";
|
|
162
|
+
export {
|
|
163
|
+
BaseTransition,
|
|
164
|
+
BaseTransitionPropsValidators,
|
|
165
|
+
Comment,
|
|
166
|
+
DeprecationTypes,
|
|
167
|
+
EffectScope,
|
|
168
|
+
ErrorCodes,
|
|
169
|
+
ErrorTypeStrings,
|
|
170
|
+
Fragment,
|
|
171
|
+
KeepAlive,
|
|
172
|
+
ReactiveEffect,
|
|
173
|
+
Static,
|
|
174
|
+
Suspense,
|
|
175
|
+
Teleport,
|
|
176
|
+
Text,
|
|
177
|
+
TrackOpTypes,
|
|
178
|
+
Transition,
|
|
179
|
+
TransitionGroup,
|
|
180
|
+
TriggerOpTypes,
|
|
181
|
+
VueElement,
|
|
182
|
+
assertNumber,
|
|
183
|
+
callWithAsyncErrorHandling,
|
|
184
|
+
callWithErrorHandling,
|
|
185
|
+
camelize,
|
|
186
|
+
capitalize,
|
|
187
|
+
cloneVNode,
|
|
188
|
+
compatUtils,
|
|
189
|
+
compile,
|
|
190
|
+
computed,
|
|
191
|
+
createApp,
|
|
192
|
+
createBlock,
|
|
193
|
+
createCommentVNode,
|
|
194
|
+
createElementBlock,
|
|
195
|
+
createBaseVNode as createElementVNode,
|
|
196
|
+
createHydrationRenderer,
|
|
197
|
+
createPropsRestProxy,
|
|
198
|
+
createRenderer,
|
|
199
|
+
createSSRApp,
|
|
200
|
+
createSlots,
|
|
201
|
+
createStaticVNode,
|
|
202
|
+
createTextVNode,
|
|
203
|
+
createVNode,
|
|
204
|
+
customRef,
|
|
205
|
+
defineAsyncComponent,
|
|
206
|
+
defineComponent,
|
|
207
|
+
defineCustomElement,
|
|
208
|
+
defineEmits,
|
|
209
|
+
defineExpose,
|
|
210
|
+
defineModel,
|
|
211
|
+
defineOptions,
|
|
212
|
+
defineProps,
|
|
213
|
+
defineSSRCustomElement,
|
|
214
|
+
defineSlots,
|
|
215
|
+
devtools,
|
|
216
|
+
effect,
|
|
217
|
+
effectScope,
|
|
218
|
+
getCurrentInstance,
|
|
219
|
+
getCurrentScope,
|
|
220
|
+
getTransitionRawChildren,
|
|
221
|
+
guardReactiveProps,
|
|
222
|
+
h,
|
|
223
|
+
handleError,
|
|
224
|
+
hasInjectionContext,
|
|
225
|
+
hydrate,
|
|
226
|
+
initCustomFormatter,
|
|
227
|
+
initDirectivesForSSR,
|
|
228
|
+
inject,
|
|
229
|
+
isMemoSame,
|
|
230
|
+
isProxy,
|
|
231
|
+
isReactive,
|
|
232
|
+
isReadonly,
|
|
233
|
+
isRef,
|
|
234
|
+
isRuntimeOnly,
|
|
235
|
+
isShallow,
|
|
236
|
+
isVNode,
|
|
237
|
+
markRaw,
|
|
238
|
+
mergeDefaults,
|
|
239
|
+
mergeModels,
|
|
240
|
+
mergeProps,
|
|
241
|
+
nextTick,
|
|
242
|
+
normalizeClass,
|
|
243
|
+
normalizeProps,
|
|
244
|
+
normalizeStyle,
|
|
245
|
+
onActivated,
|
|
246
|
+
onBeforeMount,
|
|
247
|
+
onBeforeUnmount,
|
|
248
|
+
onBeforeUpdate,
|
|
249
|
+
onDeactivated,
|
|
250
|
+
onErrorCaptured,
|
|
251
|
+
onMounted,
|
|
252
|
+
onRenderTracked,
|
|
253
|
+
onRenderTriggered,
|
|
254
|
+
onScopeDispose,
|
|
255
|
+
onServerPrefetch,
|
|
256
|
+
onUnmounted,
|
|
257
|
+
onUpdated,
|
|
258
|
+
openBlock,
|
|
259
|
+
popScopeId,
|
|
260
|
+
provide,
|
|
261
|
+
proxyRefs,
|
|
262
|
+
pushScopeId,
|
|
263
|
+
queuePostFlushCb,
|
|
264
|
+
reactive,
|
|
265
|
+
readonly,
|
|
266
|
+
ref,
|
|
267
|
+
registerRuntimeCompiler,
|
|
268
|
+
render,
|
|
269
|
+
renderList,
|
|
270
|
+
renderSlot,
|
|
271
|
+
resolveComponent,
|
|
272
|
+
resolveDirective,
|
|
273
|
+
resolveDynamicComponent,
|
|
274
|
+
resolveFilter,
|
|
275
|
+
resolveTransitionHooks,
|
|
276
|
+
setBlockTracking,
|
|
277
|
+
setDevtoolsHook,
|
|
278
|
+
setTransitionHooks,
|
|
279
|
+
shallowReactive,
|
|
280
|
+
shallowReadonly,
|
|
281
|
+
shallowRef,
|
|
282
|
+
ssrContextKey,
|
|
283
|
+
ssrUtils,
|
|
284
|
+
stop,
|
|
285
|
+
toDisplayString,
|
|
286
|
+
toHandlerKey,
|
|
287
|
+
toHandlers,
|
|
288
|
+
toRaw,
|
|
289
|
+
toRef,
|
|
290
|
+
toRefs,
|
|
291
|
+
toValue,
|
|
292
|
+
transformVNodeArgs,
|
|
293
|
+
triggerRef,
|
|
294
|
+
unref,
|
|
295
|
+
useAttrs,
|
|
296
|
+
useCssModule,
|
|
297
|
+
useCssVars,
|
|
298
|
+
useModel,
|
|
299
|
+
useSSRContext,
|
|
300
|
+
useSlots,
|
|
301
|
+
useTransitionState,
|
|
302
|
+
vModelCheckbox,
|
|
303
|
+
vModelDynamic,
|
|
304
|
+
vModelRadio,
|
|
305
|
+
vModelSelect,
|
|
306
|
+
vModelText,
|
|
307
|
+
vShow,
|
|
308
|
+
version,
|
|
309
|
+
warn,
|
|
310
|
+
watch,
|
|
311
|
+
watchEffect,
|
|
312
|
+
watchPostEffect,
|
|
313
|
+
watchSyncEffect,
|
|
314
|
+
withAsyncContext,
|
|
315
|
+
withCtx,
|
|
316
|
+
withDefaults,
|
|
317
|
+
withDirectives,
|
|
318
|
+
withKeys,
|
|
319
|
+
withMemo,
|
|
320
|
+
withModifiers,
|
|
321
|
+
withScopeId
|
|
322
|
+
};
|
|
323
|
+
//# sourceMappingURL=vue.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig } from 'vitepress'
|
|
2
|
+
|
|
3
|
+
// https://vitepress.dev/reference/site-config
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
title: "Bochu Project",
|
|
6
|
+
description: "A VitePress Site",
|
|
7
|
+
themeConfig: {
|
|
8
|
+
// https://vitepress.dev/reference/default-theme-config
|
|
9
|
+
nav: [
|
|
10
|
+
{ text: 'Home', link: '/' },
|
|
11
|
+
{ text: 'Examples', link: '/markdown-examples' }
|
|
12
|
+
],
|
|
13
|
+
|
|
14
|
+
sidebar: [
|
|
15
|
+
{
|
|
16
|
+
text: 'Examples',
|
|
17
|
+
items: [
|
|
18
|
+
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
|
19
|
+
{ text: 'Runtime API Examples', link: '/api-examples' }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
socialLinks: [
|
|
25
|
+
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
})
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
outline: deep
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Runtime API Examples
|
|
6
|
+
|
|
7
|
+
This page demonstrates usage of some of the runtime APIs provided by VitePress.
|
|
8
|
+
|
|
9
|
+
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
|
|
10
|
+
|
|
11
|
+
```md
|
|
12
|
+
<script setup>
|
|
13
|
+
import { useData } from 'vitepress'
|
|
14
|
+
|
|
15
|
+
const { theme, page, frontmatter } = useData()
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
## Results
|
|
19
|
+
|
|
20
|
+
### Theme Data
|
|
21
|
+
<pre>{{ theme }}</pre>
|
|
22
|
+
|
|
23
|
+
### Page Data
|
|
24
|
+
<pre>{{ page }}</pre>
|
|
25
|
+
|
|
26
|
+
### Page Frontmatter
|
|
27
|
+
<pre>{{ frontmatter }}</pre>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
<script setup>
|
|
31
|
+
import { useData } from 'vitepress'
|
|
32
|
+
|
|
33
|
+
const { site, theme, page, frontmatter } = useData()
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
## Results
|
|
37
|
+
|
|
38
|
+
### Theme Data
|
|
39
|
+
<pre>{{ theme }}</pre>
|
|
40
|
+
|
|
41
|
+
### Page Data
|
|
42
|
+
<pre>{{ page }}</pre>
|
|
43
|
+
|
|
44
|
+
### Page Frontmatter
|
|
45
|
+
<pre>{{ frontmatter }}</pre>
|
|
46
|
+
|
|
47
|
+
## More
|
|
48
|
+
|
|
49
|
+
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
# https://vitepress.dev/reference/default-theme-home-page
|
|
3
|
+
layout: home
|
|
4
|
+
|
|
5
|
+
hero:
|
|
6
|
+
name: "Bochu Project"
|
|
7
|
+
text: "A VitePress Site"
|
|
8
|
+
tagline: My great project tagline
|
|
9
|
+
actions:
|
|
10
|
+
- theme: brand
|
|
11
|
+
text: Markdown Examples
|
|
12
|
+
link: /markdown-examples
|
|
13
|
+
- theme: alt
|
|
14
|
+
text: API Examples
|
|
15
|
+
link: /api-examples
|
|
16
|
+
|
|
17
|
+
features:
|
|
18
|
+
- title: Feature A
|
|
19
|
+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
20
|
+
- title: Feature B
|
|
21
|
+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
22
|
+
- title: Feature C
|
|
23
|
+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
24
|
+
---
|
|
25
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Markdown Extension Examples
|
|
2
|
+
|
|
3
|
+
This page demonstrates some of the built-in markdown extensions provided by VitePress.
|
|
4
|
+
|
|
5
|
+
## Syntax Highlighting
|
|
6
|
+
|
|
7
|
+
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
|
|
8
|
+
|
|
9
|
+
**Input**
|
|
10
|
+
|
|
11
|
+
````md
|
|
12
|
+
```js{4}
|
|
13
|
+
export default {
|
|
14
|
+
data () {
|
|
15
|
+
return {
|
|
16
|
+
msg: 'Highlighted!'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
````
|
|
22
|
+
|
|
23
|
+
**Output**
|
|
24
|
+
|
|
25
|
+
```js{4}
|
|
26
|
+
export default {
|
|
27
|
+
data () {
|
|
28
|
+
return {
|
|
29
|
+
msg: 'Highlighted!'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Custom Containers
|
|
36
|
+
|
|
37
|
+
**Input**
|
|
38
|
+
|
|
39
|
+
```md
|
|
40
|
+
::: info
|
|
41
|
+
This is an info box.
|
|
42
|
+
:::
|
|
43
|
+
|
|
44
|
+
::: tip
|
|
45
|
+
This is a tip.
|
|
46
|
+
:::
|
|
47
|
+
|
|
48
|
+
::: warning
|
|
49
|
+
This is a warning.
|
|
50
|
+
:::
|
|
51
|
+
|
|
52
|
+
::: danger
|
|
53
|
+
This is a dangerous warning.
|
|
54
|
+
:::
|
|
55
|
+
|
|
56
|
+
::: details
|
|
57
|
+
This is a details block.
|
|
58
|
+
:::
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Output**
|
|
62
|
+
|
|
63
|
+
::: info
|
|
64
|
+
This is an info box.
|
|
65
|
+
:::
|
|
66
|
+
|
|
67
|
+
::: tip
|
|
68
|
+
This is a tip.
|
|
69
|
+
:::
|
|
70
|
+
|
|
71
|
+
::: warning
|
|
72
|
+
This is a warning.
|
|
73
|
+
:::
|
|
74
|
+
|
|
75
|
+
::: danger
|
|
76
|
+
This is a dangerous warning.
|
|
77
|
+
:::
|
|
78
|
+
|
|
79
|
+
::: details
|
|
80
|
+
This is a details block.
|
|
81
|
+
:::
|
|
82
|
+
|
|
83
|
+
## More
|
|
84
|
+
|
|
85
|
+
Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).
|