@@ -7,95 +7,95 @@ const { name, description } = require('../../package.json')
77 * @type {import('../../src/').DemoCodePluginOptions }
88 */
99const demoCodeOptions = {
10- cssLibs : [
11- 'https://unpkg.com/animate.css@3.7.0/animate.min.css' ,
12- ] ,
13- showText : 'show more' ,
14- hideText : 'hide' ,
10+ cssLibs : [
11+ 'https://unpkg.com/animate.css@3.7.0/animate.min.css' ,
12+ ] ,
13+ showText : 'show more' ,
14+ hideText : 'hide' ,
1515}
1616
1717module . exports = defineConfig ( {
18- base : `/${ name } /` ,
19- locales : {
20- '/' : { lang : 'en-US' , title : 'demo-code' , description } ,
21- '/zh/' : {
22- lang : 'zh-CN' ,
23- title : 'demo-code' ,
24- description : '📝 同时展示 demo 和 code 的 vuepress 插件' ,
25- } ,
18+ base : `/${ name } /` ,
19+ locales : {
20+ '/' : { lang : 'en-US' , title : 'demo-code' , description } ,
21+ '/zh/' : {
22+ lang : 'zh-CN' ,
23+ title : 'demo-code' ,
24+ description : '📝 同时展示 demo 和 code 的 vuepress 插件' ,
2625 } ,
27- head : [
28- [ 'link' , { rel : 'icon' , href : '/favicon.ico' } ] ,
29- [ 'link' , { rel : 'stylesheet ' , href : 'https://unpkg.com/animate.css@3.7.0/animate.min.css ' } ] ,
30- ] ,
31- plugins : [
32- [ 'smooth-scroll' ] ,
33- // @ts -ignore
34- [ demoCode , demoCodeOptions ] ,
35- ] ,
36- markdown : {
37- extendMarkdown : ( md ) => {
38- md . use ( require ( 'markdown-it-include' ) , {
39- root : './docs/' ,
40- includeRe : / < \[ i n c l u d e \] ( . + ) / i ,
41- bracesAreOptional : true ,
42- } )
43- } ,
26+ } ,
27+ head : [
28+ [ 'link' , { rel : 'icon ' , href : '/favicon.ico ' } ] ,
29+ [ 'link' , { rel : 'stylesheet' , href : 'https://unpkg.com/animate.css@3.7.0/animate.min.css' } ] ,
30+ ] ,
31+ plugins : [
32+ [ 'smooth-scroll' ] ,
33+ // @ts -ignore
34+ [ demoCode , demoCodeOptions ] ,
35+ ] ,
36+ markdown : {
37+ extendMarkdown : ( md ) => {
38+ md . use ( require ( 'markdown-it-include' ) , {
39+ root : './docs/' ,
40+ includeRe : / < \[ i n c l u d e \] ( . + ) / i ,
41+ bracesAreOptional : true ,
42+ } )
4443 } ,
45- evergreen : true ,
46- serviceWorker : true ,
47- themeConfig : {
48- repo : 'BuptStEve/' + name ,
49- docsDir : 'docs' ,
50- sidebarDepth : 2 ,
51- editLinks : true ,
52- locales : {
53- '/' : {
54- selectText : '🌍Languages' ,
55- label : 'English' ,
56- editLinkText : 'Edit this page on GitHub' ,
57- nav : [
58- { text : '🌱Guide' , link : '/' } ,
59- { text : '😎Example' , link : '/example/' } ,
60- {
61- text : '🔥Ecosystem' ,
62- items : [
63- { text : '📖markdown-it-vuese' , link : 'https://buptsteve.github.io/markdown-it-vuese/' } ,
64- ] ,
65- } ,
66- ] ,
67- sidebar : {
68- '/example/' : [ {
69- title : '😎Example' ,
70- collapsable : false ,
71- children : [ '' ] ,
72- } ] ,
73- '/' : [ [ '' , '🌱Guide' ] ] ,
74- } ,
75- } ,
76- '/zh/' : {
77- selectText : '🌍选择语言' ,
78- label : '简体中文' ,
79- editLinkText : '在 GitHub 上编辑此页' ,
80- nav : [
81- { text : '🌱指南' , link : '/zh/' } ,
82- { text : '😎示例' , link : '/zh/example/' } ,
83- {
84- text : '🔥生态系统' ,
85- items : [
86- { text : '📖markdown-it-vuese' , link : 'https://buptsteve.github.io/markdown-it-vuese/' } ,
87- ] ,
88- } ,
89- ] ,
90- sidebar : {
91- '/zh/example/' : [ {
92- title : '😎示例' ,
93- collapsable : false ,
94- children : [ '' ] ,
95- } ] ,
96- '/zh/' : [ [ '' , '🌱指南' ] ] ,
97- } ,
98- } ,
44+ } ,
45+ evergreen : true ,
46+ serviceWorker : true ,
47+ themeConfig : {
48+ repo : 'BuptStEve/' + name ,
49+ docsDir : 'docs' ,
50+ sidebarDepth : 2 ,
51+ editLinks : true ,
52+ locales : {
53+ '/' : {
54+ selectText : '🌍Languages' ,
55+ label : 'English' ,
56+ editLinkText : 'Edit this page on GitHub' ,
57+ nav : [
58+ { text : '🌱Guide' , link : '/' } ,
59+ { text : '😎Example' , link : '/example/' } ,
60+ {
61+ text : '🔥Ecosystem' ,
62+ items : [
63+ { text : '📖markdown-it-vuese' , link : 'https://buptsteve.github.io/markdown-it-vuese/' } ,
64+ ] ,
65+ } ,
66+ ] ,
67+ sidebar : {
68+ '/example/' : [ {
69+ title : '😎Example' ,
70+ collapsable : false ,
71+ children : [ '' ] ,
72+ } ] ,
73+ '/' : [ [ '' , '🌱Guide' ] ] ,
74+ } ,
75+ } ,
76+ '/zh/' : {
77+ selectText : '🌍选择语言' ,
78+ label : '简体中文' ,
79+ editLinkText : '在 GitHub 上编辑此页' ,
80+ nav : [
81+ { text : '🌱指南' , link : '/zh/' } ,
82+ { text : '😎示例' , link : '/zh/example/' } ,
83+ {
84+ text : '🔥生态系统' ,
85+ items : [
86+ { text : '📖markdown-it-vuese' , link : 'https://buptsteve.github.io/markdown-it-vuese/' } ,
87+ ] ,
88+ } ,
89+ ] ,
90+ sidebar : {
91+ '/zh/example/' : [ {
92+ title : '😎示例' ,
93+ collapsable : false ,
94+ children : [ '' ] ,
95+ } ] ,
96+ '/zh/' : [ [ '' , '🌱指南' ] ] ,
9997 } ,
98+ } ,
10099 } ,
100+ } ,
101101} )
0 commit comments