Ai
1 Star 6 Fork 33

HuangWanddy/tooljet

forked from Gitee 极速下载/tooljet 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docusaurus.config.js 3.81 KB
一键复制 编辑 原始数据 按行查看 历史
const devServerPlugin = require('./src/plugins/devServer/index.js');
const isProd = process.env.NODE_ENV === 'production';
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'ToolJet',
tagline: '用于构建内部工具和业务应用程序的低代码框架。',
url: 'https://tdoc.xhrjy.cn',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/icon.svg',
organizationName: 'ToolJet', // Usually your GitHub org/user name.
projectName: 'ToolJet', // Usually your repo name.
i18n: {
defaultLocale: 'zh',
locales: ['zh'],
path: 'i18n',
localeConfigs: {
zh: {
label: '简体中文',
direction: 'ltr',
htmlLang: 'zh-CN',
calendar: 'gregory',
path: 'zh',
},
},
},
themeConfig: {
image: 'img/tooljet-og-image.png',
announcementBar: {
id: 'support_us',
content:
'⭐️ 如果您喜欢 ToolJet,请在 <a target="_blank" rel="noopener noreferrer" href="https://gitee.com/wanddyh/tooljet">GitHub</a> 上给它加星',
backgroundColor: '#4D72DA',
textColor: '#ffffff',
isCloseable: true,
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true
}
},
colorMode: {
},
navbar: {
logo: {
href: '/docs',
alt: 'ToolJet Logo',
src: 'img/Logomark.svg',
srcDark: `img/Logomark_white.svg`,
width: 90
},
items: [
{
type: 'docsVersionDropdown',
position: 'right',
},
{
type: 'search',
position: 'left',
},
{
href: 'https://gitee.com/wanddyh/tooljet',
position: 'right',
className: 'navbar-social-link navbar-github-logo',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '文档',
items: [
{
label: '教程',
to: '/docs/category/教程',
},
],
},
{
title: '更多',
items: [
{
label: '码云',
href: 'https://gitee.com/wanddyh/tooljet',
},
],
},
],
copyright: `版权 © ${new Date().getFullYear()} ToolJet Solutions, Inc.中文翻译由达州小黄仁科技有限公司完成`,
},
algolia: {
appId: '2Q8LT30XV1',
apiKey: process.env.ALGOLIA_API_KEY || '3812f4e6598c41b852e4f364a140192a', // Public API key: it is safe to commit it
indexName: 'tooljetdocs',
contextualSearch: true,
externalUrlRegex: 'external\\.com|domain\\.com',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://gitee.com/wanddyh/tooljet/blob/develop/docs/',
includeCurrentVersion: false,
lastVersion: '2.0.0-beta-zh',
versions: {
'2.0.0-beta-zh': {
label: 'v2.0.0-zh',
banner: 'none',
},
'2.1.0': {
label: 'v2.1.0',
banner: 'none',
},
'1.x.x': {
label: 'v1.x.x',
banner: 'none',
},
},
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {},
// gtag: isProd
// ? {
// trackingID: process.env.GA_MID || "development",
// // Optional fields.
// anonymizeIP: true, // Should IPs be anonymized?
// }
// : undefined,
},
],
],
plugins: [
devServerPlugin,
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wanddyh/tooljet.git
git@gitee.com:wanddyh/tooljet.git
wanddyh
tooljet
tooljet
develop

搜索帮助