2022-08-29 08:42:30 +00:00
const devServerPlugin = require ( './src/plugins/devServer/index.js' ) ;
2022-05-04 15:15:00 +00:00
const isProd = process . env . NODE _ENV === 'production' ;
2021-04-23 12:54:49 +00:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module . exports = {
2022-12-26 06:47:29 +00:00
title : 'ToolJet' ,
2021-11-18 14:56:39 +00:00
tagline : 'Low-code framework to Build internal tools and business apps.' ,
2021-11-18 07:13:37 +00:00
url : 'https://docs.tooljet.com' ,
2021-04-23 12:54:49 +00:00
baseUrl : '/' ,
2021-04-30 16:15:42 +00:00
onBrokenLinks : 'ignore' ,
2021-04-23 12:54:49 +00:00
onBrokenMarkdownLinks : 'warn' ,
2024-03-18 08:51:31 +00:00
favicon : 'img/tooljet-favicon.svg' ,
2021-04-23 13:17:19 +00:00
organizationName : 'ToolJet' , // Usually your GitHub org/user name.
projectName : 'ToolJet' , // Usually your repo name.
2021-04-23 12:54:49 +00:00
themeConfig : {
2022-01-11 03:33:48 +00:00
image : 'img/tooljet-og-image.png' ,
2021-11-19 03:37:35 +00:00
announcementBar : {
id : 'support_us' ,
content :
2021-12-10 10:16:41 +00:00
'⭐️ 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>' ,
2021-11-19 03:37:35 +00:00
backgroundColor : '#4D72DA' ,
textColor : '#ffffff' ,
isCloseable : true ,
} ,
2022-12-09 10:19:55 +00:00
docs : {
sidebar : {
hideable : true ,
autoCollapseCategories : true
}
} ,
2021-04-23 13:17:19 +00:00
colorMode : {
2022-08-26 05:33:22 +00:00
2021-04-23 13:17:19 +00:00
} ,
2021-04-23 12:54:49 +00:00
navbar : {
logo : {
2022-05-05 04:29:09 +00:00
href : '/docs' ,
2021-04-23 13:17:19 +00:00
alt : 'ToolJet Logo' ,
2022-12-30 06:48:15 +00:00
src : 'img/Logomark.svg' ,
srcDark : ` img/Logomark_white.svg ` ,
2022-01-27 05:38:37 +00:00
width : 90
2021-04-23 12:54:49 +00:00
} ,
items : [
2022-12-09 10:19:55 +00:00
{
type : 'docsVersionDropdown' ,
position : 'right' ,
} ,
2022-06-06 01:28:28 +00:00
{
type : 'search' ,
position : 'left' ,
} ,
2021-04-23 12:54:49 +00:00
{
2021-04-23 13:17:19 +00:00
href : 'https://github.com/ToolJet/ToolJet' ,
2021-04-23 12:54:49 +00:00
position : 'right' ,
2022-08-26 05:33:22 +00:00
className : 'navbar-social-link navbar-github-logo' ,
'aria-label' : 'GitHub repository' ,
2021-04-23 12:54:49 +00:00
} ,
2021-08-02 11:12:59 +00:00
{
2023-04-05 12:39:41 +00:00
href : 'https://tooljet.com/slack' ,
2021-08-02 11:12:59 +00:00
position : 'right' ,
2022-08-26 05:33:22 +00:00
className : 'navbar-social-link navbar-slack-logo' ,
'aria-label' : 'Slack workspace' ,
2021-08-02 11:12:59 +00:00
} ,
{
href : 'https://twitter.com/ToolJet' ,
position : 'right' ,
2022-08-26 05:33:22 +00:00
className : 'navbar-social-link navbar-twitter-logo' ,
'aria-label' : 'Twitter account' ,
2021-08-02 11:12:59 +00:00
} ,
2021-04-23 12:54:49 +00:00
] ,
} ,
footer : {
style : 'dark' ,
links : [
{
title : 'Docs' ,
} ,
{
title : 'Community' ,
items : [
{
2022-08-25 06:56:18 +00:00
label : 'Slack' ,
2023-04-05 12:39:41 +00:00
href : 'https://tooljet.com/slack' ,
2021-04-23 12:54:49 +00:00
} ,
] ,
} ,
{
title : 'More' ,
items : [
{
label : 'GitHub' ,
2021-04-29 05:51:06 +00:00
href : 'https://github.com/ToolJet/ToolJet' ,
2021-04-23 12:54:49 +00:00
} ,
2021-08-02 11:12:59 +00:00
{
2022-08-25 06:56:18 +00:00
label : 'YouTube' ,
href : 'https://www.youtube.com/channel/UCf1p2G5Z7fPpvlBPf4l2I1w' ,
2021-08-02 11:12:59 +00:00
} ,
{
label : 'Twitter' ,
href : 'https://twitter.com/ToolJet' ,
} ,
2021-04-23 12:54:49 +00:00
] ,
} ,
] ,
2023-12-21 05:43:07 +00:00
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" / > ` ,
2021-04-23 12:54:49 +00:00
} ,
2022-05-27 10:33:05 +00:00
algolia : {
appId : 'O8HQRLI0WA' ,
2022-06-29 09:52:02 +00:00
apiKey : process . env . ALGOLIA _API _KEY || 'development' , // Public API key: it is safe to commit it
2022-05-27 10:33:05 +00:00
indexName : 'tooljet' ,
contextualSearch : true ,
externalUrlRegex : 'external\\.com|domain\\.com' ,
} ,
2021-04-23 12:54:49 +00:00
} ,
presets : [
[
'@docusaurus/preset-classic' ,
{
docs : {
sidebarPath : require . resolve ( './sidebars.js' ) ,
// Please change this to your repo.
2023-01-03 06:35:22 +00:00
editUrl : 'https://github.com/ToolJet/Tooljet/blob/develop/docs/' ,
2024-04-01 04:20:18 +00:00
includeCurrentVersion : false ,
2024-04-26 09:47:51 +00:00
lastVersion : '2.36.0' ,
2021-04-23 12:54:49 +00:00
} ,
theme : {
customCss : require . resolve ( './src/css/custom.css' ) ,
} ,
2024-01-03 10:06:54 +00:00
sitemap : {
2024-01-09 08:54:23 +00:00
changefreq : 'weekly' ,
priority : 0.5 ,
ignorePatterns : [ '/docs/1.x.x/**' ] ,
filename : 'sitemap.xml' ,
2024-01-03 10:06:54 +00:00
} ,
2023-10-25 22:12:05 +00:00
googleTagManager : isProd
2022-05-04 15:15:00 +00:00
? {
2023-10-25 22:12:05 +00:00
containerId : process . env . GTM ,
2022-12-26 06:47:29 +00:00
}
2022-05-04 15:15:00 +00:00
: undefined ,
2021-04-23 12:54:49 +00:00
} ,
] ,
] ,
2022-08-29 08:42:30 +00:00
plugins : [
devServerPlugin ,
2023-11-02 06:24:19 +00:00
'plugin-image-zoom'
2022-08-29 08:42:30 +00:00
] ,
2024-04-26 06:25:01 +00:00
} ;