| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| import { getDirname, path } from 'vuepress/utils'; |
| import { viteBundler } from '@vuepress/bundler-vite'; |
| import { defineUserConfig } from 'vuepress'; |
| import theme from './theme.js'; |
| |
| const dirname = getDirname(import.meta.url); |
| |
| export default defineUserConfig({ |
| base: '/', |
| |
| locales: { |
| '/': { |
| lang: 'en-US', |
| title: 'IoTDB Website', |
| description: 'Apache IoTDB', |
| }, |
| '/zh/': { |
| lang: 'zh-CN', |
| title: 'IoTDB Website', |
| description: 'Apache IoTDB', |
| }, |
| }, |
| |
| theme, |
| head: [ |
| ['link', { rel: 'icon', href: '/favicon.ico' }], |
| [ |
| 'meta', |
| { |
| name: 'Description', |
| content: 'Apache IoTDB: Time Series Database for IoT', |
| }, |
| ], |
| [ |
| 'meta', |
| { |
| name: 'Keywords', |
| content: |
| 'TSDB, time series, time series database, IoTDB, IoT database, IoT data management, 时序数据库, 时间序列管理, IoTDB, 物联网数据库, 实时数据库, 物联网数据管理, 物联网数据', |
| }, |
| ], |
| ['meta', { name: 'baidu-site-verification', content: 'wfKETzB3OT' }], |
| [ |
| 'meta', |
| { |
| name: 'google-site-verification', |
| content: 'mZWAoRY0yj_HAr-s47zHCGHzx5Ju-RVm5wDbPnwQYFo', |
| }, |
| ], |
| [ |
| 'script', |
| { type: 'text/javascript' }, |
| `\ |
| var _paq = window._paq = window._paq || []; |
| /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
| _paq.push(["setDoNotTrack", true]); |
| _paq.push(["disableCookies"]); |
| _paq.push(['trackPageView']); |
| _paq.push(['enableLinkTracking']); |
| (function() { |
| var u="https://analytics.apache.org/"; |
| _paq.push(['setTrackerUrl', u+'matomo.php']); |
| _paq.push(['setSiteId', '56']); |
| var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
| g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); |
| })(); |
| `, |
| ], |
| ], |
| |
| shouldPrefetch: false, |
| alias: { |
| '@theme-hope/components/PageFooter': path.resolve( |
| dirname, |
| './components/PageFooter.vue', |
| ), |
| '@theme-hope/modules/sidebar/components/Sidebar': path.resolve( |
| dirname, |
| './components/Sidebar.vue', |
| ), |
| }, |
| bundler: viteBundler({ |
| vuePluginOptions: { |
| template: { |
| compilerOptions: { |
| isCustomElement: (tag) => tag === 'center', |
| }, |
| }, |
| }, |
| }), |
| pagePatterns: [ |
| '**/*.md', |
| '!**/*_timecho.md', |
| '!**/stage/**/*.md', |
| '!**/Master/**/*.md', |
| '!.vuepress', |
| '!node_modules', |
| ], |
| }); |