2022-02-22 18:35:06 +08:00
|
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
|
const navbar = require('./config/navbar');
|
|
|
|
|
const footer = require('./config/footer');
|
|
|
|
|
|
|
|
|
|
const config = {
|
2022-07-01 16:47:25 +08:00
|
|
|
|
title: '飞冰 ICE ',
|
|
|
|
|
tagline: ' 基于 React 的应用研发框架',
|
|
|
|
|
url: 'https://v3.ice.work',
|
2022-02-22 18:35:06 +08:00
|
|
|
|
baseUrl: '/',
|
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
|
onBrokenMarkdownLinks: 'throw',
|
|
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
|
organizationName: 'alibaba',
|
|
|
|
|
projectName: 'ice',
|
|
|
|
|
themeConfig: {
|
2022-07-01 16:47:25 +08:00
|
|
|
|
announcementBar: {
|
|
|
|
|
id: 'announcementBar-2',
|
2022-07-07 17:13:41 +08:00
|
|
|
|
content: 'ICE 3 Beta,不仅是 PC,更适配移动端能力,<a href="/docs/guide/about">更多</a>',
|
2022-07-01 16:47:25 +08:00
|
|
|
|
isCloseable: true,
|
|
|
|
|
},
|
2022-02-22 18:35:06 +08:00
|
|
|
|
navbar,
|
|
|
|
|
footer,
|
2022-07-01 16:47:25 +08:00
|
|
|
|
prism: {
|
|
|
|
|
theme: require('prism-react-renderer/themes/oceanicNext'),
|
|
|
|
|
},
|
2022-02-22 18:35:06 +08:00
|
|
|
|
// algolia: {
|
|
|
|
|
// apiKey: '01f284e7e1c13eac3dc14beb6d8b153d',
|
|
|
|
|
// indexName: 'ice',
|
|
|
|
|
// },
|
|
|
|
|
},
|
2022-07-01 16:47:25 +08:00
|
|
|
|
i18n: {
|
|
|
|
|
defaultLocale: 'zh-CN',
|
|
|
|
|
locales: [
|
|
|
|
|
'zh-CN',
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-02-22 18:35:06 +08:00
|
|
|
|
presets: [
|
|
|
|
|
[
|
|
|
|
|
'@docusaurus/preset-classic',
|
|
|
|
|
{
|
|
|
|
|
docs: {
|
|
|
|
|
sidebarPath: require.resolve('./config/sidebars.js'),
|
|
|
|
|
// TODO
|
|
|
|
|
editUrl:
|
|
|
|
|
'https://github.com/ice-lab/ice-next/edit/master/website/',
|
|
|
|
|
},
|
|
|
|
|
theme: {
|
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
|
},
|
|
|
|
|
// TODO
|
|
|
|
|
// gtag: {
|
|
|
|
|
// trackingID: 'G-QZ0FEKY38G',
|
|
|
|
|
// },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
plugins: [
|
2022-02-23 11:24:50 +08:00
|
|
|
|
require.resolve('./plugins/redirect.js'),
|
|
|
|
|
],
|
2022-02-22 18:35:06 +08:00
|
|
|
|
};
|
|
|
|
|
|
2022-07-01 16:47:25 +08:00
|
|
|
|
// if (process.env.USE_LOCAL_SEARCH) {
|
|
|
|
|
// 内部站点无法使用 algolia
|
|
|
|
|
delete config.themeConfig.algolia;
|
|
|
|
|
config.plugins.push([
|
|
|
|
|
require.resolve('@easyops-cn/docusaurus-search-local'),
|
|
|
|
|
{
|
|
|
|
|
hashed: true,
|
|
|
|
|
language: ['zh', 'en'],
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
// }
|
2022-02-22 18:35:06 +08:00
|
|
|
|
|
2022-07-01 16:47:25 +08:00
|
|
|
|
module.exports = config;
|