config.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. module.exports = {
  2. title: '文档中心',
  3. description: '优巨引擎·文档中心',
  4. head: [
  5. [
  6. 'meta',
  7. {
  8. name: 'viewport',
  9. content:
  10. 'width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no',
  11. },
  12. ],
  13. ['meta', { name: 'keywords', content: '文档中心 猎豹 开放平台' }],
  14. ['link', { rel: 'icon', href: '/favicon.ico' }],
  15. ],
  16. themeConfig: {
  17. search: true,
  18. searchMaxSuggestions: 10,
  19. lastUpdated: 'Last Updated',
  20. // 启动页面丝滑滚动
  21. smoothScroll: true,
  22. nextLinks: true,
  23. prevLinks: true,
  24. sidebar: {
  25. '/': [
  26. {
  27. text: '文档说明',
  28. link: '../index'
  29. },
  30. {
  31. text: '接口规则',
  32. children: [
  33. { text: '签名', link: '../views/interfaceRules/sign' },
  34. ]
  35. },
  36. {
  37. text: 'API列表',
  38. children: [
  39. { text: 'token刷新', link: '../views/apiList/tokenRefresh' },
  40. {
  41. text: '门店相关', children: [
  42. {
  43. text: '创建门店',
  44. link: '../views/apiList/shopInterface/shopCreate'
  45. },
  46. {
  47. text: '更新门店',
  48. link: '../views/apiList/shopInterface/shopUpdate'
  49. },
  50. {
  51. text: '门店运力查询',
  52. link: '../views/apiList/shopInterface/shopDelivery'
  53. },
  54. {
  55. text: '门店运力禁用',
  56. link: '../views/apiList/shopInterface/deliveryStatus'
  57. },
  58. {
  59. text: '门店运力状态同步',
  60. link: '../views/apiList/shopInterface/statusSync'
  61. },
  62. ]
  63. },
  64. {
  65. text: '订单相关', children: [
  66. {
  67. text: '订单计费',
  68. link: '../views/apiList/orderInterface/orderValuation'
  69. },
  70. {
  71. text: '创建订单',
  72. link: '../views/apiList/orderInterface/orderCreate'
  73. },
  74. {
  75. text: '取消订单',
  76. link: '../views/apiList/orderInterface/orderCancel'
  77. },
  78. {
  79. text: '推送订单',
  80. link: '../views/apiList/orderInterface/orderPush'
  81. },
  82. {
  83. text: '骑手位置',
  84. link: '../views/apiList/orderInterface/riderLocation'
  85. },
  86. {
  87. text: '订单状态通知',
  88. link: '../views/apiList/orderInterface/orderStatusNotice'
  89. },
  90. ]
  91. }
  92. ]
  93. },
  94. {
  95. text: '附录',
  96. children: [
  97. { text: '经营品类', link: '../views/appendix/businessCategory' },
  98. { text: '运力平台', link: '../views/appendix/deliveryPlatform' },
  99. { text: '错误编码', link: '../views/appendix/errorCode' }
  100. ]
  101. }
  102. ],
  103. },
  104. author: 'Funny<15151556015@163.com>',
  105. nav: [
  106. { text: '首页', link: 'http://opentest.liebaoai.cn:88/' },
  107. // { text: '分类', link: '/tags' },
  108. ],
  109. },
  110. dest: './dist',
  111. plugins: [
  112. '@vuepress/back-to-top', // 返回顶部插件
  113. ],
  114. }