代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/tooljet 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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,
],
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。