.umirc.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import { defineConfig } from "dumi";
  2. import { join } from "path";
  3. export default defineConfig({
  4. history: {
  5. type: "hash",
  6. },
  7. title: "@dage/tools",
  8. favicon: "https://4dkk.4dage.com/FDKKIMG/icon/kankan_icon.ico",
  9. outputPath: "docs-dist",
  10. mode: "site",
  11. resolve: {
  12. includes: ["./docs"],
  13. },
  14. alias: {
  15. "@dage/utils": join(__dirname, "../utils/dist/"),
  16. "@dage/pc-components": join(__dirname, "../pc-components/dist/"),
  17. },
  18. navs: [
  19. {
  20. title: "组件",
  21. path: "/components",
  22. },
  23. {
  24. title: "工具",
  25. path: "/utils",
  26. },
  27. {
  28. title: "更新日志",
  29. path: "/log",
  30. },
  31. {
  32. title: "Gogs",
  33. path: "http://face3d.4dage.com:7005/chenlei/dage-web-tools",
  34. },
  35. ],
  36. menus: {
  37. "/components": [
  38. {
  39. title: "获取用户信息",
  40. path: "/components/login",
  41. },
  42. {
  43. title: "布局",
  44. children: ["/components/TableActions"],
  45. },
  46. {
  47. title: "表单组件",
  48. children: [
  49. "/components/Upload",
  50. "/components/FileCheckbox",
  51. "/components/Map",
  52. ],
  53. },
  54. {
  55. title: "工具",
  56. children: ["/components/utils/services", "/components/utils/storage"],
  57. },
  58. ],
  59. "/utils": [
  60. {
  61. title: "EventBus 事件",
  62. path: "/utils/eventbus",
  63. },
  64. {
  65. title: "日期格式化",
  66. path: "/utils/date",
  67. },
  68. ],
  69. "/log": [
  70. {
  71. title: "pc-components 更新日志",
  72. path: "/log/PC-COMPONENTS_CHANGELOG",
  73. },
  74. ],
  75. },
  76. // more config: https://d.umijs.org/config
  77. });