2022-08-26 16:29:01 -05:00
require ( "dotenv" ) . config ( ) ;
const isSaas = process . env . DOCUSAURUS _IS _SAAS === "true" ;
2021-03-05 00:12:12 -08:00
module . exports = {
2022-08-26 16:29:01 -05:00
title : process . env . DOCUSAURUS _CONFIG _TITLE || "DataHub" ,
2024-09-18 13:51:44 -04:00
tagline : "The #1 Open Source Metadata Platform" ,
2025-04-28 23:34:33 +09:00
url : process . env . DOCUSAURUS _CONFIG _URL || "https://docs.datahub.com" ,
2022-08-26 16:29:01 -05:00
baseUrl : process . env . DOCUSAURUS _CONFIG _BASE _URL || "/" ,
2021-03-05 00:12:12 -08:00
onBrokenLinks : "throw" ,
onBrokenMarkdownLinks : "throw" ,
favicon : "img/favicon.ico" ,
2022-07-25 22:08:28 +00:00
organizationName : "datahub-project" , // Usually your GitHub org/user name.
2021-03-05 00:12:12 -08:00
projectName : "datahub" , // Usually your repo name.
2025-02-22 16:54:59 -08:00
staticDirectories : [ "static" ] ,
2023-09-26 14:26:06 -05:00
stylesheets : [ "https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap" ] ,
2025-01-13 13:38:04 -06:00
headTags : [
{
tagName : 'meta' ,
attributes : {
httpEquiv : 'Content-Security-Policy' ,
content : "frame-ancestors 'self' https://*.acryl.io https://acryldata.io http://localhost:*"
}
} ,
] ,
2023-10-25 09:39:57 +09:00
scripts : [
{
src : "https://tools.luckyorange.com/core/lo.js?site-id=28ea8a38" ,
async : true ,
defer : true ,
} ,
2024-07-08 16:12:30 -07:00
{
src : "/scripts/rb2b.js" ,
async : true ,
defer : true ,
2024-09-11 07:07:56 +09:00
} ,
{
src : "https://app.revenuehero.io/scheduler.min.js"
2025-03-13 16:26:15 -05:00
} ,
{
src : "https://tag.clearbitscripts.com/v1/pk_2e321cabe30432a5c44c0424781aa35f/tags.js" ,
referrerPolicy : "strict-origin-when-cross-origin"
2025-03-21 12:59:57 -05:00
} ,
{
src : "/scripts/reo.js" ,
2025-05-09 09:08:57 +09:00
} ,
{
id : "runllm-widget-script" ,
type : "module" ,
src : "https://widget.runllm.com" ,
crossorigin : "true" ,
"runllm-name" : "DataHub" ,
"runllm-assistant-id" : "81" ,
"runllm-position" : "BOTTOM_RIGHT" ,
"runllm-keyboard-shortcut" : "Mod+j" ,
"runllm-preset" : "docusaurus" ,
"runllm-theme-color" : "#1890FF" ,
"runllm-brand-logo" : "https://docs.datahub.com/img/datahub-logo-color-mark.svg" ,
"runllm-community-url" : "https://datahub.com/slack" ,
"runllm-community-type" : "slack" ,
"runllm-disable-ask-a-person" : "true" ,
async : true ,
} ,
2023-10-25 09:39:57 +09:00
] ,
2022-08-26 16:29:01 -05:00
noIndex : isSaas ,
customFields : {
isSaas : isSaas ,
} ,
2024-03-11 15:06:39 -07:00
// See https://github.com/facebook/docusaurus/issues/4765
// and https://github.com/langchain-ai/langchainjs/pull/1568
webpack : {
jsLoader : ( isServer ) => ( {
loader : require . resolve ( "swc-loader" ) ,
options : {
jsc : {
parser : {
syntax : "typescript" ,
tsx : true ,
} ,
target : "es2017" ,
} ,
module : {
type : isServer ? "commonjs" : "es6" ,
} ,
} ,
} ) ,
} ,
2021-03-05 00:12:12 -08:00
themeConfig : {
2024-09-18 13:51:44 -04:00
// ...(!isSaas && {
// announcementBar: {
// id: "announcement",
// content:
2025-04-28 23:34:33 +09:00
// '<div><img src="/img/acryl-logo-white-mark.svg" /><p><strong>DataHub Cloud</strong><span> DataHub delivers an easy to consume DataHub platform for the enterprise</span></p></div> <a href="https://www.datahub.com/demo?utm_source=datahub&utm_medium=referral&utm_campaign=acryl_signup" target="_blank" class="button button--primary">Sign Up for DataHub Cloud →</a>',
2024-09-18 13:51:44 -04:00
// backgroundColor: "#070707",
// textColor: "#ffffff",
// isCloseable: false,
// },
// }),
2024-10-15 10:55:23 -04:00
announcementBar : {
2025-04-08 20:17:43 -07:00
id : "announcement-3" ,
content :
2025-05-21 19:38:48 -04:00
'<div class="shimmer-banner"><p>DataHub Secures $35 Million Series B</p><a href="https://datahub.com/news/series-b-announcement/" target="_blank" class="button"><div>Read the announcement<span> →</span></div></a></div>' ,
2025-04-08 20:17:43 -07:00
backgroundColor : "transparent" ,
textColor : "#ffffff" ,
isCloseable : false ,
} ,
2024-09-24 18:24:08 -07:00
colorMode : {
// Only support light mode.
defaultMode : 'light' ,
disableSwitch : true ,
respectPrefersColorScheme : false ,
} ,
2021-03-05 00:12:12 -08:00
navbar : {
2021-10-21 15:49:44 -05:00
title : null ,
2021-03-05 00:12:12 -08:00
logo : {
alt : "DataHub Logo" ,
2023-09-26 14:26:06 -05:00
src : ` img/ ${ isSaas ? "acryl" : "datahub" } -logo-color-light-horizontal.svg ` ,
srcDark : ` img/ ${ isSaas ? "acryl" : "datahub" } -logo-color-dark-horizontal.svg ` ,
2025-04-28 23:34:33 +09:00
href : "https://datahub.com" ,
2021-03-05 00:12:12 -08:00
} ,
items : [
2024-09-27 16:17:51 +05:30
{
2025-04-28 23:34:33 +09:00
to : "/docs" ,
2021-03-05 00:12:12 -08:00
activeBasePath : "docs" ,
label : "Docs" ,
position : "right" ,
} ,
2024-07-31 09:13:16 +09:00
{
2024-09-27 14:54:05 +09:00
to : "/integrations" ,
activeBasePath : "integrations" ,
label : "Integrations" ,
2024-07-31 09:13:16 +09:00
position : "right" ,
} ,
2025-04-28 23:34:33 +09:00
// {
// type: "dropdown",
// activeBasePath: "learn",
// label: "Learn",
// position: "right",
// items: [
// {
// to: "https://pages.acryl.io/webinar-governance-ai-5",
// label: "Weekly Demo",
// },
// {
// to: "/learn",
// label: "Use Cases",
// },
// {
// to: "/adoption-stories",
// label: "Adoption Stories",
// },
// {
// href: "https://medium.com/datahub-project",
// label: "Blog",
// },
// {
// href: "https://www.youtube.com/channel/UC3qFQC5IiwR5fvWEqi_tJ5w",
// label: "YouTube",
// },
// ],
// },
// {
// type: "dropdown",
// label: "Community",
// position: "right",
// items: [
// {
// href: "https://datahub.com/slack?utm_source=docs&utm_medium=header&utm_campaign=docs_header",
// label: "Join Slack",
// },
// {
// to: "/events",
// label: "Events",
// },
// {
// to: "/champions",
// label: "Champions",
// },
// {
// label: "Share Your Journey",
// href: "/customer-stories-survey",
// },
// ],
// },
2024-07-19 07:59:22 +09:00
{
2025-04-28 23:34:33 +09:00
href : "https://datahub.com/products/why-datahub-cloud/" ,
2024-09-27 14:54:05 +09:00
html : `
< style >
2025-04-28 23:34:33 +09:00
. cloud - cta {
color : var ( -- ifm - menu - color - active ) ;
font - weight : 600 ;
background : linear - gradient ( 40 deg , var ( -- ifm - menu - color - active ) , var ( -- ifm - menu - color - active ) ) ;
background - size : 200 % 100 % ;
- webkit - background - clip : text ;
background - clip : text ;
transition : background - image 0.3 s ease ;
}
. cloud - cta : hover {
color : transparent ;
background : linear - gradient ( 40 deg , var ( -- ifm - menu - color - active ) , # ff1493 ) ;
background - size : 200 % 100 % ;
- webkit - background - clip : text ;
background - clip : text ;
animation : gradientShift 3 s ease infinite ;
}
@ keyframes gradientShift {
0 % , 100 % { background - position : 0 % 50 % ; }
50 % { background - position : 100 % 50 % ; }
2024-09-27 14:54:05 +09:00
}
< / s t y l e >
2025-04-28 23:34:33 +09:00
< div class = 'cloud-cta' > Get Cloud < / d i v >
2024-09-27 14:54:05 +09:00
` ,
2021-11-17 18:51:56 -06:00
position : "right" ,
} ,
2023-08-26 06:10:13 +09:00
{
2025-04-28 23:34:33 +09:00
type : "docsVersionDropdown" ,
position : "left" ,
dropdownActiveClassDisabled : true ,
2025-05-09 04:41:40 +01:00
dropdownItemsAfter : [
{
type : 'html' ,
value : '<hr class="dropdown-separator" style="margin: 0.4rem;">' ,
} ,
{
type : 'html' ,
value : '<div class="dropdown__link"><b>Archived versions</b></div>' ,
} ,
2025-05-29 11:51:12 +01:00
{
value : `
< a class = "dropdown__link" href = "https://docs-website-t9sv4w3gr-acryldata.vercel.app/docs/0.15.0/features" > 0.15 . 0
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
type : "html" ,
} ,
2025-05-09 04:41:40 +01:00
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-8jkm4uler-acryldata.vercel.app/docs/0.14.1/features" > 0.14 . 1
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-eue2qafvn-acryldata.vercel.app/docs/features" > 0.14 . 0
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-psat3nzgi-acryldata.vercel.app/docs/features" > 0.13 . 1
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-lzxh86531-acryldata.vercel.app/docs/features" > 0.13 . 0
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-2uuxmgza2-acryldata.vercel.app/docs/features" > 0.12 . 1
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-irpoe2osc-acryldata.vercel.app/docs/features" > 0.11 . 0
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
{
value : `
2025-04-28 23:34:33 +09:00
< a class = "dropdown__link" href = "https://docs-website-1gv2yzn9d-acryldata.vercel.app/docs/features" > 0.10 . 5
< svg width = "12" height = "12" aria - hidden = "true" viewBox = "0 0 24 24" > < path fill = "currentColor" d = "M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" > < / p a t h > < / s v g >
< / a >
` ,
2025-05-09 04:41:40 +01:00
type : "html" ,
} ,
] ,
2025-04-28 23:34:33 +09:00
} ,
{
href : "https://datahub.com/slack?utm_source=docs&utm_medium=header&utm_campaign=docs_header" ,
2024-09-27 14:54:05 +09:00
html : `
< style >
2025-04-28 23:34:33 +09:00
. slack - logo : hover {
2024-09-27 14:54:05 +09:00
opacity : 0.8 ;
}
< / s t y l e >
2025-04-28 23:34:33 +09:00
< img class = 'slack-logo' src = 'https://upload.wikimedia.org/wikipedia/commons/d/d5/Slack_icon_2019.svg' , alt = 'slack' , height = '20px' style = 'margin: 10px 0 0 0;' / >
2024-09-27 14:54:05 +09:00
` ,
position : "right" ,
2025-04-28 23:34:33 +09:00
} ,
2021-03-05 00:12:12 -08:00
] ,
} ,
footer : {
style : "dark" ,
links : [
{
title : "Docs" ,
items : [
{
label : "Introduction" ,
to : "docs/" ,
} ,
{
label : "Quickstart" ,
to : "docs/quickstart" ,
} ,
] ,
} ,
{
title : "Community" ,
items : [
{
label : "Slack" ,
2025-04-28 23:34:33 +09:00
href : "https://datahub.com/slack" ,
2021-03-05 00:12:12 -08:00
} ,
{
label : "YouTube" ,
href : "https://www.youtube.com/channel/UC3qFQC5IiwR5fvWEqi_tJ5w" ,
} ,
2021-11-17 18:51:56 -06:00
{
label : "Blog" ,
2025-03-14 17:45:47 -07:00
href : "https://medium.com/datahub-project" ,
2021-11-17 18:51:56 -06:00
} ,
2021-03-05 00:12:12 -08:00
{
label : "Town Halls" ,
to : "docs/townhalls" ,
} ,
{
label : "Adoption" ,
2025-04-28 23:34:33 +09:00
href : "https://datahub.com/adoption-stories/" ,
2021-03-05 00:12:12 -08:00
} ,
] ,
} ,
{
title : "More" ,
items : [
{
label : "Demo" ,
2025-04-27 21:37:30 -04:00
to : "https://demo.datahub.com/" ,
2021-03-05 00:12:12 -08:00
} ,
{
label : "Roadmap" ,
2022-01-17 16:23:25 -06:00
href : "https://feature-requests.datahubproject.io/roadmap" ,
2021-03-05 00:12:12 -08:00
} ,
{
label : "Contributing" ,
to : "docs/contributing" ,
} ,
{
label : "GitHub" ,
2022-03-18 22:12:19 +01:00
href : "https://github.com/datahub-project/datahub" ,
2021-03-05 00:12:12 -08:00
} ,
2021-11-17 18:51:56 -06:00
{
label : "Feature Requests" ,
href : "https://feature-requests.datahubproject.io/" ,
} ,
2021-03-05 00:12:12 -08:00
] ,
} ,
] ,
copyright : ` Copyright © 2015- ${ new Date ( ) . getFullYear ( ) } DataHub Project Authors. ` ,
} ,
2021-05-11 15:16:12 -07:00
prism : {
2022-12-06 19:13:28 -05:00
// https://docusaurus.io/docs/markdown-features/code-blocks#theming
// theme: require("prism-react-renderer/themes/vsLight"),
// darkTheme: require("prism-react-renderer/themes/vsDark"),
additionalLanguages : [ "ini" , "java" , "graphql" , "shell-session" ] ,
2021-05-11 15:16:12 -07:00
} ,
2025-03-10 13:23:30 -07:00
algolia : {
// This is the "Search API Key" in Algolia, which means that it is ok to be public.
apiKey : "2adf840a044a5ecbf7bdaac88cbf9ee5" ,
appId : "RK0UG797F3" ,
indexName : "datahubproject" ,
insights : true ,
contextualSearch : true ,
// debug: true,
} ,
2021-03-05 00:12:12 -08:00
} ,
presets : [
[
"@docusaurus/preset-classic" ,
{
docs : {
2025-05-09 04:41:40 +01:00
lastVersion : "current" ,
versions : {
current : {
label : "Next" ,
banner : 'none' ,
} ,
} ,
2021-03-05 00:12:12 -08:00
path : "genDocs" ,
sidebarPath : require . resolve ( "./sidebars.js" ) ,
2022-08-26 16:29:01 -05:00
... ( ! isSaas && {
editUrl : "https://github.com/datahub-project/datahub/blob/master/" ,
} ) ,
2022-02-17 15:15:39 -05:00
numberPrefixParser : false ,
2021-03-05 00:12:12 -08:00
// TODO: make these work correctly with the doc generation
2024-03-05 16:28:03 -08:00
showLastUpdateAuthor : false ,
showLastUpdateTime : false ,
2021-03-05 00:12:12 -08:00
} ,
2024-07-19 07:59:22 +09:00
blog : {
blogTitle : "DataHub Learn" ,
blogSidebarTitle : "DataHub Learn" ,
blogDescription : "Learn about the hot topics in the data ecosystem and how DataHub can help you with your data journey." ,
path : "src/learn" ,
routeBasePath : "learn" ,
postsPerPage : "ALL" ,
blogListComponent : "../src/learn/_components/LearnListPage" ,
} ,
2021-03-05 00:12:12 -08:00
theme : {
2022-08-26 16:29:01 -05:00
customCss : [
2023-09-26 14:26:06 -05:00
isSaas ? require . resolve ( "./src/styles/acryl.scss" ) : require . resolve ( "./src/styles/datahub.scss" ) ,
2022-08-26 16:29:01 -05:00
require . resolve ( "./src/styles/global.scss" ) ,
2023-04-07 13:28:31 -05:00
require . resolve ( "./src/styles/sphinx.scss" ) ,
2023-04-04 18:40:19 +05:30
require . resolve ( "./src/styles/config-table.scss" ) ,
2022-08-26 16:29:01 -05:00
] ,
2021-03-05 00:12:12 -08:00
} ,
2023-03-13 11:37:24 -07:00
pages : {
path : "src/pages" ,
mdxPageComponent : "@theme/MDXPage" ,
} ,
2024-03-22 09:36:53 +09:00
googleTagManager : {
2025-04-30 09:59:52 +09:00
containerId : 'GTM-5M8T9HNN' ,
2024-03-22 09:36:53 +09:00
} ,
2025-04-28 23:34:33 +09:00
gtag : {
2025-04-30 09:59:52 +09:00
trackingID : "G-PKGVLETT4C" ,
2025-04-28 23:34:33 +09:00
} ,
2021-03-05 00:12:12 -08:00
} ,
] ,
] ,
plugins : [
2024-04-19 15:12:32 +09:00
[
'@docusaurus/plugin-client-redirects' ,
{
createRedirects ( existingPath ) {
if ( existingPath . includes ( '/docs' ) ) {
return [
existingPath . replace ( '/docs' , '/docs/next' ) ,
2024-04-30 08:02:33 +09:00
existingPath . replace ( '/docs' , '/docs/0.13.0' ) ,
existingPath . replace ( '/docs' , '/docs/0.12.1' ) ,
existingPath . replace ( '/docs' , '/docs/0.11.0' ) ,
existingPath . replace ( '/docs' , '/docs/0.10.5' ) ,
2024-04-19 15:12:32 +09:00
] ;
}
return undefined ; // Return a falsy value: no redirect created
} ,
2025-04-08 16:07:57 -05:00
redirects : [
{
from : '/docs/managed-datahub/operator-guide/setting-up-remote-ingestion-executor' ,
to : '/docs/managed-datahub/remote-executor/about' ,
} ,
] ,
2024-04-19 15:12:32 +09:00
} ,
] ,
2023-09-26 14:26:06 -05:00
[ "@docusaurus/plugin-ideal-image" , { quality : 100 , sizes : [ 320 , 640 , 1280 , 1440 , 1600 ] } ] ,
2021-10-21 15:49:44 -05:00
"docusaurus-plugin-sass" ,
2021-09-22 17:30:15 -07:00
[
"docusaurus-graphql-plugin" ,
{
schema : "./graphql/combined.graphql" ,
routeBasePath : "/docs/graphql" ,
} ,
2021-10-21 15:49:44 -05:00
] ,
2021-03-05 00:12:12 -08:00
// [
// require.resolve("@easyops-cn/docusaurus-search-local"),
// {
// // `hashed` is recommended as long-term-cache of index file is possible.
// hashed: true,
// language: ["en"],
// docsDir: "genDocs",
// blogDir: [],
// },
// ],
] ,
} ;