mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* add app-builder doc updates on Table and themes * breakdown chart docs in two parts and add custom css for headers * update chart example images and add more examples * revamp table component and minor fixes * fix typos * fix table formatting for docusarus v3 * fix filepicker table * create new version * fix grammar and tables
148 lines
4.1 KiB
JavaScript
148 lines
4.1 KiB
JavaScript
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: 'Low-code framework to Build internal tools and business apps.',
|
|
url: 'https://docs.tooljet.com',
|
|
baseUrl: '/',
|
|
onBrokenLinks: 'ignore',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
favicon: 'img/tooljet-favicon.svg',
|
|
organizationName: 'ToolJet', // Usually your GitHub org/user name.
|
|
projectName: 'ToolJet', // Usually your repo name.
|
|
themeConfig: {
|
|
image: 'img/tooljet-og-image.png',
|
|
announcementBar: {
|
|
id: 'support_us',
|
|
content:
|
|
'⭐️ If you like ToolJet, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/ToolJet/ToolJet">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/ToolJet">Twitter</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://github.com/ToolJet/ToolJet',
|
|
position: 'right',
|
|
className: 'navbar-social-link navbar-github-logo',
|
|
'aria-label': 'GitHub repository',
|
|
},
|
|
{
|
|
href: 'https://tooljet.com/slack',
|
|
position: 'right',
|
|
className: 'navbar-social-link navbar-slack-logo',
|
|
'aria-label': 'Slack workspace',
|
|
},
|
|
{
|
|
href: 'https://twitter.com/ToolJet',
|
|
position: 'right',
|
|
className: 'navbar-social-link navbar-twitter-logo',
|
|
'aria-label': 'Twitter account',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
label: 'Slack',
|
|
href: 'https://tooljet.com/slack',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{
|
|
label: 'GitHub',
|
|
href: 'https://github.com/ToolJet/ToolJet',
|
|
},
|
|
{
|
|
label: 'YouTube',
|
|
href: 'https://www.youtube.com/channel/UCf1p2G5Z7fPpvlBPf4l2I1w',
|
|
},
|
|
{
|
|
label: 'Twitter',
|
|
href: 'https://twitter.com/ToolJet',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} ToolJet Solutions, Inc.
|
|
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=4f00afac-ae1f-4cf6-8c53-8a2c7b3ca206" />`,
|
|
},
|
|
algolia: {
|
|
appId: 'O8HQRLI0WA',
|
|
apiKey: process.env.ALGOLIA_API_KEY || 'development', // Public API key: it is safe to commit it
|
|
indexName: 'tooljet',
|
|
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://github.com/ToolJet/Tooljet/blob/develop/docs/',
|
|
includeCurrentVersion: false,
|
|
lastVersion: '2.36.0',
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
sitemap: {
|
|
changefreq: 'weekly',
|
|
priority: 0.5,
|
|
ignorePatterns: ['/docs/1.x.x/**'],
|
|
filename: 'sitemap.xml',
|
|
},
|
|
googleTagManager: isProd
|
|
? {
|
|
containerId: process.env.GTM,
|
|
}
|
|
: undefined,
|
|
},
|
|
],
|
|
],
|
|
plugins: [
|
|
devServerPlugin,
|
|
'plugin-image-zoom'
|
|
],
|
|
};
|