Commit 4dfa3abe authored by Sparkf's avatar Sparkf 🏙️
Browse files

use docsearch

parent 3f70264c
Loading
Loading
Loading
Loading
+19 −3
Changes for docs/.vuepress/config.js: 19 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -44,15 +44,31 @@ module.exports = {
    ['link', { rel: 'stylesheet', type: 'text/css', href: 'https://cdn.jsdelivr.net/npm/datatables@1.10.18/media/css/jquery.dataTables.min.css' }]
  ],
  plugins: [
    // [
    //   '@vuepress/plugin-search',
    //   {
    //     locales: {
    //       '/': {
    //         placeholder: 'Search',
    //       },
    //       '/zh/': {
    //         placeholder: '搜索',
    //       },
    //     },
    //   },
    // ],
    [
      '@vuepress/plugin-search',
      '@vuepress/plugin-docsearch',
      {
        appId: '72QKXPCF9X',
        apiKey: '552989af61cfaf1e2d114956c326aef1',
        indexName: 'sustech-online-vp2',
        locales: {
          '/': {
            placeholder: 'Search',
            placeholder: 'Search Documentation',
          },
          '/zh/': {
            placeholder: '搜索',
            placeholder: '搜索文档',
          },
        },
      },
+1 −1
Changes for package.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
{
  "devDependencies": {
    "@vuepress/plugin-docsearch": "2.0.0-beta.20",
    "vuepress": "^2.0.0-beta.20"
  },
  "scripts": {
@@ -7,6 +8,5 @@
    "docs:build": "vuepress build docs"
  },
  "dependencies": {
    "@vuepress/plugin-search": "2.0.0-beta.20"
  }
}