config.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. //参考:
  2. // https://github.com/vuejs/vuepress/blob/master/packages/docs/docs/.vuepress/config.js
  3. // https://vuepress-theme-reco.recoluan.com/views/1.x/
  4. module.exports = {
  5. title: '信息部技术培训-初级篇',
  6. description: '信息部新入职员工培训材料',
  7. // base:'/docs/',
  8. theme: 'vuepress-theme-reco',
  9. themeConfig: {
  10. //腾讯 404 公益配置
  11. noFoundPageByTencent: false,
  12. mode: 'light', // 默认 auto,auto 跟随系统,dark 暗色模式,light 亮色模式
  13. modePicker: false, // 默认 true,false 不显示模式调节按钮,true 则显示
  14. // author
  15. author: 'xxb',
  16. // if your docs are in a different repo from your main project:
  17. docsRepo: 'https://git.xxb.lttc.cn/xxb-train/dev-train-doc',
  18. // if your docs are in a specific branch (defaults to 'master'):
  19. docsBranch: 'master',
  20. // if your docs are not at the root of the repo:
  21. //docsDir: 'doc',
  22. // defaults to false, set to true to enable
  23. editLinks: true,
  24. // custom text for edit link. Defaults to "Edit this page"
  25. editLinkText: '编辑此页面',
  26. lastUpdated: '更新时间', // string | boolean
  27. nav: [
  28. {text: '首页', link: '/'},
  29. {text: 'SQL', link: '/sql/'},
  30. {text: 'C#', link: '/csharp/'},
  31. {text: 'WinForm', link: '/winform/'},
  32. ],
  33. sidebar: {
  34. '/sql/': [
  35. {
  36. title: 'SQL简介',
  37. collapsable: false,
  38. children: [
  39. {title:'简介', path: '/sql/'},
  40. {title:'安装', path: '/sql/01.install'},
  41. {title:'库表操作',path:'/sql/02.db&table'},
  42. {title:'单表操作',path:'/sql/03.singletable'},
  43. {title:'多表操作',path:'/sql/04.multitable'},
  44. {title:'分组、聚合函数',path:'/sql/05.group'},
  45. {title:'索引',path:'/sql/06.index'},
  46. {title:'视图',path:'/sql/07.preview'},
  47. {title:'触发器',path:'/sql/08.trigger'},
  48. {title:'存储过程',path:'/sql/09.procedure'},
  49. {title:'窗口函数',path:'/sql/10.windowsfunc'},
  50. {title:'事务',path:'/sql/11.transaction'},
  51. {title:'常用函数',path:'/sql/12.commonfunc'},
  52. ],
  53. },
  54. ],
  55. '/csharp/': [{
  56. title: '认识c#',
  57. collapsable: false,
  58. children: [
  59. {title: '简介', path: '/csharp/'},
  60. {title: '数据类型', path: '/csharp/01.dbtype'},
  61. {title: '类', path: '/csharp/02.class'},
  62. {title: '接口、继承与多态', path: '/csharp/03.interface'},
  63. {title: '基础语法', path: '/csharp/04.syntax'},
  64. {title: '数组与集合', path: '/csharp/05.array'},
  65. {title: '字符串', path: '/csharp/06.string'},
  66. {title: '内存对象', path: '/csharp/07.memoryobject'},
  67. {title: '数据库操作', path: '/csharp/08.dbop'},
  68. {title: '委托与事件',path: '/csharp/09.delege&event', collapsable:true,children:[
  69. {title: '委托', path: '/csharp/091.delege'},
  70. {title: '事件', path: '/csharp/092.event'},
  71. {title: '委托事件进阶', path: '/csharp/093.advanced'},
  72. ]},
  73. {title: '泛型', path: '/csharp/10.genericity'},
  74. {title: 'Linq', path: '/csharp/11.linq'},
  75. {title: '语法糖', path: '/csharp/12.sugar'},
  76. {title: '异常处理', path: '/csharp/13.exception'},
  77. ],
  78. },
  79. ],
  80. '/winform/': [{
  81. title: 'WinForm简介',
  82. collapsable: false,
  83. children: [
  84. {title: 'WinFrom架构运行机制', path: '/winform/'},
  85. {title: '功能架构管理', path: '/winform/01.funcframe'},
  86. {title: '窗体界面设计', path: '/winform/02.formdesign'},
  87. {title: 'WnDataSource', path: '/winform/03.datasource'},
  88. {title: '控件库接口', path: '/winform/04.interface'},
  89. {title: '容器控件', path: '/winform/05.container'},
  90. {title: '菜单导航控件', path: '/winform/06.menu&navigator'},
  91. {title: '单值控件', path: '/winform/07.singlecontrol'},
  92. {title: '数据展示控件', path: '/winform/08.datacontrol'},
  93. {title: '模块设计原则', path:'/winform/09.moduledesign'},
  94. {title: '编程指南', path:'/winform/10.programingguide'},
  95. {title: '编程规范', path:'/winform/11.programingstandard'},
  96. {title: '环境搭建', path:'/winform/12.devenvironment'},
  97. {title: '代码调试', path:'/winform/13.debug'},
  98. {title: '通用类、方法', path:'/winform/14.commonfunc'}
  99. ],
  100. },
  101. ],
  102. },
  103. sidebarDepth: 1
  104. },
  105. head: [
  106. ['link', {rel: 'icon', href: '/logo.png'}],
  107. ['script', {}, `
  108. var _hmt = _hmt || [];
  109. (function() {
  110. var hm = document.createElement("script");
  111. hm.src = "https://hm.baidu.com/hm.js?d6b9b94a6fafaa41c63920e1af80bcaf";
  112. var s = document.getElementsByTagName("script")[0];
  113. s.parentNode.insertBefore(hm, s);
  114. })();
  115. `]
  116. ]
  117. }