145 lines
5.3 KiB
JavaScript
145 lines
5.3 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: 'Airbyte Documentation',
|
|
tagline:
|
|
'Airbyte is an open-source data integration platform to build ELT pipelines. Consolidate your data in your data warehouses, lakes and databases.',
|
|
url: 'https://airbytehq.github.io',
|
|
// Assumed relative path. If you are using airbytehq.github.io use /
|
|
// anything else should match the repo name
|
|
baseUrl: '/',
|
|
onBrokenLinks: 'throw',
|
|
onBrokenMarkdownLinks: 'throw',
|
|
favicon: 'img/favicon.png',
|
|
organizationName: 'airbytehq', // Usually your GitHub org/user name.
|
|
projectName: 'airbyte', // Usually your repo name.
|
|
|
|
plugins: [
|
|
[
|
|
require.resolve('@cmfcmf/docusaurus-search-local'), {indexBlog: false},
|
|
],
|
|
[
|
|
'@docusaurus/plugin-client-redirects',
|
|
{
|
|
fromExtensions: ['html', 'htm'], // /myPage.html -> /myPage
|
|
redirects: [
|
|
// /docs/oldDoc -> /docs/newDoc
|
|
{
|
|
from: '/upgrading-airbyte',
|
|
to: '/operator-guides/upgrading-airbyte',
|
|
},
|
|
{
|
|
from: '/catalog',
|
|
to: '/understanding-airbyte/airbyte-protocol',
|
|
},
|
|
{
|
|
from: '/integrations/sources/google-analytics-data-api',
|
|
to: '/integrations/sources/google-analytics-v4',
|
|
},
|
|
{
|
|
from: '/project-overview/security',
|
|
to: '/operator-guides/security',
|
|
},
|
|
{
|
|
from: '/operator-guides/securing-airbyte',
|
|
to: '/operator-guides/security',
|
|
},
|
|
{
|
|
from: '/connector-development/config-based/',
|
|
to: '/connector-development/config-based/low-code-cdk-overview',
|
|
},
|
|
// {
|
|
// from: '/some-lame-path',
|
|
// to: '/a-much-cooler-uri',
|
|
// },
|
|
],
|
|
},
|
|
],
|
|
],
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
routeBasePath: '/',
|
|
sidebarCollapsible: true,
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
editUrl: 'https://github.com/airbytehq/airbyte/blob/master/docs',
|
|
path: '../docs',
|
|
},
|
|
blog: false,
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
gtag: {
|
|
trackingID: 'UA-156258629-2',
|
|
anonymizeIP: true,
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
colorMode: {
|
|
disableSwitch: false,
|
|
},
|
|
docs: {
|
|
sidebar: {
|
|
autoCollapseCategories: true,
|
|
},
|
|
},
|
|
navbar: {
|
|
title: '',
|
|
logo: {
|
|
alt: 'Simple, secure and extensible data integration',
|
|
src: 'img/logo-dark.png',
|
|
srcDark: 'img/logo-light.png',
|
|
width: 140,
|
|
height: 40,
|
|
},
|
|
items: [
|
|
{
|
|
href: 'https://airbyte.io/',
|
|
position: 'left',
|
|
label: 'Home',
|
|
},
|
|
{
|
|
href: 'https://status.airbyte.io/',
|
|
label: 'Status',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://airbyte.com/tutorials',
|
|
label: 'Tutorials',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://discuss.airbyte.io/',
|
|
label: 'Support',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://cloud.airbyte.io/signup?utm_campaign=22Q1_AirbyteCloudSignUpCampaign_Trial&utm_source=Docs&utm_content=NavBar',
|
|
label: 'Try Airbyte Cloud',
|
|
position: 'left',
|
|
},
|
|
],
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
}),
|
|
};
|
|
|
|
module.exports = config;
|