1+ const chaptersAndGuides = [
2+ {
3+ text : "目录" ,
4+ collapsed : false ,
5+ items : [
6+ { text : "引言" , link : "/chapters/intro" } ,
7+ { text : "环境" , link : "/chapters/ch01_environment" } ,
8+ { text : "计算" , link : "/chapters/ch02_computation" } ,
9+ { text : "过程" , link : "/chapters/ch03_procedure" } ,
10+ { text : "编码" , link : "/chapters/ch04_encoding" } ,
11+ { text : "序列" , link : "/chapters/ch05_sequence" } ,
12+ { text : "数据" , link : "/chapters/ch06_data" } ,
13+ { text : "状态" , link : "/chapters/ch07_state" } ,
14+ { text : "引用" , link : "/chapters/ch08_reference" } ,
15+ { text : "闭包" , link : "/chapters/ch09_closure" } ,
16+ { text : "对象" , link : "/chapters/ch10_object" } ,
17+ { text : "并发" , link : "/chapters/ch11_concurrency" } ,
18+ ] ,
19+ } ,
20+ {
21+ text : "附录" ,
22+ collapsed : true ,
23+ items : [
24+ { text : "工具上手" , link : "/guides/" } ,
25+ { text : "浏览器开发者工具与 Console" , link : "/guides/browser-devtools" } ,
26+ { text : "安装与上手 VS Code" , link : "/guides/vscode" } ,
27+ {
28+ text : "安装 Node.js 并在 VS Code 运行 JavaScript" ,
29+ link : "/guides/nodejs" ,
30+ } ,
31+ { text : "TypeScript 入门:安装、编译与运行" , link : "/guides/typescript" } ,
32+ ] ,
33+ } ,
34+ ] ;
35+
136module . exports = {
2- title : ' 编程导引' ,
3- themeConfig : {
4- nav : [
5- { text : "编程导引" , link : ' /chapters/intro' } ,
6- { text : "参考" , link : ' /reference/glossary' } ,
7- ] ,
37+ title : " 编程导引" ,
38+ themeConfig : {
39+ nav : [
40+ { text : "编程导引" , link : " /chapters/intro" } ,
41+ { text : "参考" , link : " /reference/glossary" } ,
42+ ] ,
843
9- sidebar : {
10- "/chapters/" : [
11- { text : "引言" , link : "/chapters/intro" } ,
12- { text : "环境" , link : '/chapters/ch01_environment' } ,
13- { text : "计算" , link : '/chapters/ch02_computation' } ,
14- { text : "过程" , link : '/chapters/ch03_procedure' } ,
15- { text : "编码" , link : '/chapters/ch04_encoding' } ,
16- { text : "序列" , link : '/chapters/ch05_sequence' } ,
17- { text : "数据" , link : '/chapters/ch06_data' } ,
18- { text : "状态" , link : '/chapters/ch07_state' } ,
19- { text : "引用" , link : '/chapters/ch08_reference' } ,
20- { text : "闭包" , link : '/chapters/ch09_closure' } ,
21- { text : "对象" , link : '/chapters/ch10_object' } ,
22- { text : "并发" , link : '/chapters/ch11_concurrency' }
23- ] ,
24- "/reference/" : [
25- { text : "概念解释" , link : "/reference/glossary" }
26- ]
27- } ,
28- footer : {
29- copyright : "CC-BY 4.0 Licensed | Copyright © 2015-present Kimmy Leo"
30- } ,
44+ sidebar : {
45+ "/chapters/" : chaptersAndGuides ,
46+ "/reference/" : [ { text : "概念解释" , link : "/reference/glossary" } ] ,
47+ "/guides/" : chaptersAndGuides ,
3148 } ,
32-
33- markdown : {
34- math : true
49+ footer : {
50+ message : "CC-BY 4.0 Licensed" ,
51+ copyright : "Copyright © 2015-present Kimmy Liu" ,
3552 } ,
53+ } ,
54+
55+ markdown : {
56+ math : true ,
57+ } ,
3658
37-
38- head : [
39- [
40- "script" ,
41- { } ,
59+ head : [
60+ [
61+ "script" ,
62+ { } ,
4263
43- `
64+ `
4465var _hmt = _hmt || [];
4566(function() {
4667 var hm = document.createElement("script");
4768 hm.src = "https://hm.baidu.com/hm.js?bc2f9f80827718f41c02c33dc45976cb";
4869 var s = document.getElementsByTagName("script")[0];
4970 s.parentNode.insertBefore(hm, s);
5071})();
51- `
52- ]
53- ]
54- }
72+ ` ,
73+ ] ,
74+ ] ,
75+ } ;
0 commit comments