1
0

config.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. { text: 'WinForm专题', link: '/winformspecialtopic/' },
  33. ],
  34. sidebar: {
  35. '/sql/': [
  36. {
  37. title: 'SQL简介',
  38. collapsable: false,
  39. children: [
  40. { title: '简介', path: '/sql/' },
  41. { title: '安装', path: '/sql/01.install' },
  42. { title: '库表操作', path: '/sql/02.db&table' },
  43. { title: '单表操作', path: '/sql/03.singletable' },
  44. { title: '多表操作', path: '/sql/04.multitable' },
  45. { title: '分组、聚合函数', path: '/sql/05.group' },
  46. { title: '索引', path: '/sql/06.index' },
  47. { title: '视图', path: '/sql/07.view' },
  48. { title: '触发器', path: '/sql/08.trigger' },
  49. { title: '存储过程', path: '/sql/09.procedure' },
  50. { title: '窗口函数', path: '/sql/10.windowsfunc' },
  51. { title: '事务', path: '/sql/11.transaction' },
  52. { title: '常用函数', path: '/sql/12.commonfunc' },
  53. ],
  54. },
  55. ],
  56. '/csharp/': [{
  57. title: '认识c#',
  58. collapsable: false,
  59. children: [
  60. { title: '简介', path: '/csharp/' },
  61. { title: '数据类型', path: '/csharp/01.dbtype' },
  62. { title: '类', path: '/csharp/02.class' },
  63. { title: '接口、继承与多态', path: '/csharp/03.interface' },
  64. { title: '基础语法', path: '/csharp/04.syntax' },
  65. { title: '数组与集合', path: '/csharp/05.array' },
  66. { title: '字符串', path: '/csharp/06.string' },
  67. { title: '内存对象', path: '/csharp/07.memoryobject' },
  68. { title: '数据库操作', path: '/csharp/08.dbop' },
  69. {
  70. title: '委托与事件', path: '/csharp/09.delege&event', collapsable: true, children: [
  71. { title: '委托', path: '/csharp/09_1.delege' },
  72. { title: '事件', path: '/csharp/09_2.event' },
  73. { title: '委托事件进阶', path: '/csharp/09_3.advanced' },
  74. ]
  75. },
  76. { title: '泛型', path: '/csharp/10.genericity' },
  77. { title: 'Linq', path: '/csharp/11.linq' },
  78. { title: '语法糖', path: '/csharp/12.sugar' },
  79. { title: '异常处理', path: '/csharp/13.exception' },
  80. ],
  81. },
  82. ],
  83. '/winform/': [
  84. {
  85. title: 'WinForm简介',
  86. collapsable: false,
  87. children: [
  88. { title: 'WinFrom架构简介', path: '/winform/' },
  89. {
  90. title: '功能架构管理', path: '/winform/01.funcframe', children: [
  91. { title: '导出模块配置', path: '/winform/01_1.exportsettings' },
  92. { title: '系统参数定义', path: '/winform/01_2.paramsetting' },
  93. { title: '辅助资料定义', path: '/winform/01_3.auxdatasetting' },
  94. { title: '报表定义', path: '/winform/01_4.report' }
  95. ]
  96. },
  97. { title: '窗体界面设计', path: '/winform/02.formdesign' },
  98. { title: 'WnDataSource', path: '/winform/03.wndatasource' },
  99. { title: '控件库接口', path: '/winform/04.interface' },
  100. { title: '容器控件', path: '/winform/05.container' },
  101. { title: '菜单导航控件', path: '/winform/06.menu&navigator' },
  102. { title: '单值控件', path: '/winform/07.singlecontrol' },
  103. { title: '数据展示控件', path: '/winform/08.datacontrol' },
  104. { title: '模块设计原则', path: '/winform/09.moduledesign' },
  105. { title: '编程指南', path: '/winform/10.programmingguide' },
  106. { title: '编程规范', path: '/winform/11.programmingstandard' },
  107. { title: '环境搭建', path: '/winform/12.devenvironment' },
  108. { title: '代码调试', path: '/winform/13.debug' }
  109. ],
  110. },
  111. ],
  112. '/winformspecialtopic/':[
  113. {
  114. title:'简介',
  115. collapsable:false,
  116. children:[
  117. {title:'简介',path:'/winformspecialtopic/'},
  118. {title:'Grid查询',path:'/winformspecialtopic/gridlookup'},
  119. {title:'Form查询',path:'/winformspecialtopic/formlookup'},
  120. {title:'数据权限',path:'/winformspecialtopic/dataright'},
  121. {title:'常用方法',path:'/winformspecialtopic/commonfunc'},
  122. ]
  123. }
  124. ],
  125. },
  126. sidebarDepth: 1
  127. },
  128. head: [
  129. ['link', { rel: 'icon', href: '/logo.png' }],
  130. ['script', {}, `
  131. var _hmt = _hmt || [];
  132. (function() {
  133. var hm = document.createElement("script");
  134. hm.src = "https://hm.baidu.com/hm.js?d6b9b94a6fafaa41c63920e1af80bcaf";
  135. var s = document.getElementsByTagName("script")[0];
  136. s.parentNode.insertBefore(hm, s);
  137. })();
  138. `]
  139. ]
  140. }