ToolJet/docs/docusaurus.config.js

130 lines
3.5 KiB
JavaScript
Raw Normal View History

const isProd = process.env.NODE_ENV === 'production';
2021-04-23 12:54:49 +00:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
2021-04-23 17:59:01 +00:00
title: 'ToolJet - Documentation',
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: '/',
onBrokenLinks: 'ignore',
2021-04-23 12:54:49 +00:00
onBrokenMarkdownLinks: 'warn',
2021-04-23 15:21:16 +00:00
favicon: 'img/logo.svg',
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',
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,
},
colorMode: {
},
2021-04-23 12:54:49 +00:00
navbar: {
logo: {
href: '/docs',
alt: 'ToolJet Logo',
2021-04-23 12:54:49 +00:00
src: 'img/logo.svg',
2022-01-27 05:38:37 +00:00
width: 90
2021-04-23 12:54:49 +00:00
},
items: [
{
type: 'search',
position: 'left',
},
2021-04-23 12:54:49 +00:00
{
href: 'https://github.com/ToolJet/ToolJet',
2021-04-23 12:54:49 +00:00
label: 'GitHub',
position: 'right',
},
{
href: 'https://join.slack.com/t/tooljet/shared_invite/zt-r2neyfcw-KD1COL6t2kgVTlTtAV5rtg',
label: 'Slack',
position: 'right',
},
{
href: 'https://twitter.com/ToolJet',
label: 'Twitter',
position: 'right',
},
2021-04-23 12:54:49 +00:00
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
2021-04-29 05:51:06 +00:00
href: 'https://stackoverflow.com/questions/tagged/tooljet',
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
},
{
label: 'Slack',
href: 'https://join.slack.com/t/tooljet/shared_invite/zt-r2neyfcw-KD1COL6t2kgVTlTtAV5rtg',
},
{
label: 'Twitter',
href: 'https://twitter.com/ToolJet',
},
2021-04-23 12:54:49 +00:00
],
},
],
2021-10-08 08:19:07 +00:00
copyright: `Copyright © ${new Date().getFullYear()} ToolJet Solutions, Inc.`,
2021-04-23 12:54:49 +00:00
},
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',
},
2021-04-23 12:54:49 +00:00
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/ToolJet/Tooljet/blob/main/docs/',
2021-04-23 12:54:49 +00:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
2021-12-09 06:15:33 +00:00
sitemap: {},
gtag: isProd
? {
trackingID: process.env.GA_MID,
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
}
: undefined,
2021-04-23 12:54:49 +00:00
},
],
],
};