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" ,
2021-06-24 22:21:21 -07:00
tagline : "A Metadata Platform for the Modern Data Stack" ,
2022-08-26 16:29:01 -05:00
url : process . env . DOCUSAURUS _CONFIG _URL || "https://datahubproject.io" ,
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.
2023-03-22 21:31:32 +05:30
staticDirectories : [ "static" , "genStatic" ] ,
2023-09-26 14:26:06 -05:00
stylesheets : [ "https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap" ] ,
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 ,
}
2023-10-25 09:39:57 +09:00
] ,
2022-08-26 16:29:01 -05:00
noIndex : isSaas ,
customFields : {
isSaas : isSaas ,
2024-03-28 12:10:03 +09:00
markpromptProjectKey : process . env . DOCUSAURUS _MARKPROMPT _PROJECT _KEY || "0U6baUoEdHVV4fyPpr5pxcX3dFlAMEu9" ,
2022-08-26 16:29:01 -05:00
} ,
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 : {
2022-08-26 16:29:01 -05:00
... ( ! isSaas && {
announcementBar : {
id : "announcement" ,
2022-09-22 17:01:46 -05:00
content :
2024-04-13 08:09:21 +09:00
'<div><img src="/img/acryl-logo-white-mark.svg" /><p><strong>Acryl DataHub</strong><span> Acryl Data delivers an easy to consume DataHub platform for the enterprise</span></p></div> <a href="https://www.acryldata.io/datahub-sign-up?utm_source=datahub&utm_medium=referral&utm_campaign=acryl_signup" target="_blank" class="button button--primary">Sign Up for Acryl DataHub →</a>' ,
2022-08-26 16:29:01 -05:00
backgroundColor : "#070707" ,
textColor : "#ffffff" ,
isCloseable : 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 ` ,
2021-03-05 00:12:12 -08:00
} ,
items : [
{
2024-04-17 17:54:44 +09:00
to : "docs/" ,
2021-03-05 00:12:12 -08:00
activeBasePath : "docs" ,
label : "Docs" ,
position : "right" ,
} ,
2023-03-13 11:37:24 -07:00
{
2023-09-26 14:26:06 -05:00
to : "/integrations" ,
activeBasePath : "integrations" ,
2023-03-13 11:37:24 -07:00
label : "Integrations" ,
position : "right" ,
} ,
2024-01-17 05:55:02 +09:00
{
type : "dropdown" ,
label : "Community" ,
position : "right" ,
items : [
{
2024-01-30 04:33:17 +09:00
to : "/slack" ,
2024-01-16 18:37:25 -05:00
label : "Join Slack" ,
} ,
2024-04-08 12:37:34 +09:00
{
href : "https://forum.datahubproject.io/" ,
label : "Community Forum" ,
} ,
2024-01-16 18:37:25 -05:00
{
2024-02-10 04:43:40 +09:00
to : "/events" ,
2024-01-16 18:37:25 -05:00
label : "Events" ,
2024-01-17 05:55:02 +09:00
} ,
{
to : "/champions" ,
label : "Champions" ,
} ,
2024-06-17 12:54:34 +09:00
{
label : "Share Your Journey" ,
href : "/customer-stories-survey" ,
} ,
2024-01-17 05:55:02 +09:00
] ,
} ,
2021-03-05 00:12:12 -08:00
{
2023-10-25 09:40:28 +09:00
type : "dropdown" ,
label : "Resources" ,
2021-11-17 18:51:56 -06:00
position : "right" ,
2023-10-25 09:40:28 +09:00
items : [
{
href : "https://demo.datahubproject.io/" ,
label : "Demo" ,
} ,
{
2024-05-07 09:14:08 +09:00
href : "https://blog.datahubproject.io/" ,
2023-10-25 09:40:28 +09:00
label : "Blog" ,
} ,
{
href : "https://feature-requests.datahubproject.io/roadmap" ,
label : "Roadmap" ,
} ,
{
href : "https://github.com/datahub-project/datahub" ,
label : "GitHub" ,
} ,
{
href : "https://www.youtube.com/channel/UC3qFQC5IiwR5fvWEqi_tJ5w" ,
label : "YouTube" ,
} ,
2024-01-22 18:49:29 -06:00
{
href : "https://www.youtube.com/playlist?list=PLdCtLs64vZvGCKMQC2dJEZ6cUqWsREbFi" ,
label : "Case Studies" ,
} ,
{
href : "https://www.youtube.com/playlist?list=PLdCtLs64vZvErAXMiqUYH9e63wyDaMBgg" ,
label : "DataHub Basics" ,
} ,
2023-10-25 09:40:28 +09:00
] ,
2021-11-17 18:51:56 -06:00
} ,
2023-08-26 06:10:13 +09:00
{
2023-09-26 14:26:06 -05:00
type : "docsVersionDropdown" ,
2023-10-25 09:40:28 +09:00
position : "left" ,
2023-08-26 06:10:13 +09:00
dropdownActiveClassDisabled : true ,
2024-03-05 16:05:26 +09:00
dropdownItemsAfter : [
{
2024-03-15 17:43:23 +09:00
type : 'html' ,
value : '<hr class="dropdown-separator" style="margin: 0.4rem;">' ,
2024-03-05 16:05:26 +09:00
} ,
{
2024-03-15 17:43:23 +09:00
type : 'html' ,
value : '<div class="dropdown__link"><b>Archived versions</b></div>' ,
} ,
{
2024-04-17 17:54:44 +09:00
value : `
< 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 >
` ,
type : "html" ,
} ,
{
value : `
< 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 >
` ,
type : "html" ,
} ,
{
2024-03-15 17:43:23 +09:00
value : `
< 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 >
` ,
type : "html" ,
} ,
{
value : `
< 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 >
` ,
type : "html" ,
2024-03-05 16:05:26 +09:00
} ,
] ,
2023-08-26 06:10:13 +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" ,
2021-03-31 12:29:01 -07:00
href : "https://slack.datahubproject.io" ,
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" ,
href : "https://blog.datahubproject.io/" ,
} ,
2021-03-05 00:12:12 -08:00
{
label : "Town Halls" ,
to : "docs/townhalls" ,
} ,
{
label : "Adoption" ,
to : "docs/#adoption" ,
} ,
] ,
} ,
{
title : "More" ,
items : [
{
label : "Demo" ,
2023-04-06 10:40:20 +09:00
to : "https://demo.datahubproject.io/" ,
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
} ,
2021-03-05 00:12:12 -08:00
algolia : {
2022-07-25 22:08:28 +00:00
appId : "RK0UG797F3" ,
apiKey : "39d7eb90d8b31d464e309375a52d674f" ,
2021-03-05 00:12:12 -08:00
indexName : "datahubproject" ,
2023-08-29 16:48:54 -07:00
insights : true ,
contextualSearch : true ,
2021-03-05 00:12:12 -08:00
// debug: true,
} ,
} ,
presets : [
[
"@docusaurus/preset-classic" ,
{
docs : {
2024-04-19 15:12:32 +09: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
} ,
blog : false ,
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 : {
containerId : 'GTM-WK28RLTG' ,
} ,
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
} ,
} ,
] ,
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: [],
// },
// ],
] ,
} ;