forked from DhanushNehru/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
175 lines (170 loc) · 4.76 KB
/
docusaurus.config.js
File metadata and controls
175 lines (170 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
const devServerPlugin = require('./src/plugins/devServer/index.js');
import versionsArchived from './versionsArchived.json';
const baseArchivedURL = "https://archived-docs.tooljet.com/docs/";
const lastFiveArchivedVersions = versionsArchived
.slice(0, 5)
.map((version, index) => ({
version,
url: index === 0 ? baseArchivedURL : `${baseArchivedURL}${version}`
}));
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: true,
lastVersion: '2.50.0-LTS',
versions: {
current : {
label: '3.0.0-Beta 🚧',
path: 'beta',
},
}
},
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 || 'development',
}
: undefined,
},
],
],
plugins: [
devServerPlugin,
'plugin-image-zoom',
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/docs/',
from: '/',
},
],
},
],
],
};