// const demoCode = require("vuepress-plugin-demo-code");

module.exports = {
  title: "ConfigUI",
  dest: "dist-docs",
  locales: {
    "/": {
      lang: "zh-CN",
      title: "中地数码",
      description: "@mapgis/mapgis-pan-spatial-map-widgets-config-ui"
    }
  },
  themeConfig: {
    locales: {
      "/": {
        // 多语言下拉菜单的标题
        selectText: "选择语言",
        // 该语言在下拉菜单中的标签
        label: "简体中文",
        // 编辑链接文字
        editLinkText: "在 GitHub 上编辑此页",
        // Service Worker 的配置
        serviceWorker: {
          updatePopup: {
            message: "发现新内容可用.",
            buttonText: "刷新"
          }
        },
        // 当前 locale 的 algolia docsearch 选项
        algolia: {},
        nav: [
          {
            text: "向导",
            link: "/guide/"
          },
          {
            text: "API",
            link: "/api/common/MultiImgWithForm.md"
          },
        ],
        sidebar: [
          {
            title: "指南",
            collapsable: false,
            children: [
              ["/guide/", "快速上手"],
              ["/guide/publish.md", "发布流程"],
            ]
          },
          {
            title: "API",
            collapsable: false,
            children: [
              {
                title: "公共组件",
                collapsable: false
              },
              ["/api/common/MultiImgWithForm.md", "多类别组件（带缩略图）"],
              ["/api/common/MultiTypeForm.md", "多类型表单组件"],
            ]
          },
        ]
      }
    }
  },
  head: [
    [
      "script",
      { src: "https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js" }
    ],
    ["script", { src: "https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js" }]
  ],
  plugins: [
    [
      "demo-code",
      {
        jsLibs: ["https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"]
      }
    ]
  ]
};
