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 ,
} ,
] ,
2022-08-26 16:29:01 -05:00
noIndex : isSaas ,
customFields : {
isSaas : isSaas ,
2023-09-26 14:26:06 -05:00
markpromptProjectKey : process . env . DOCUSAURUS _MARKPROMPT _PROJECT _KEY || "IeF3CUFCUQWuouZ8MP5Np9nES52QAtaA" ,
2022-08-26 16:29:01 -05:00
} ,
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 :
2023-10-02 16:59:18 -04:00
'<div><img src="/img/acryl-logo-white-mark.svg" /><p><strong>Managed 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 Managed 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 : [
{
to : "docs/" ,
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-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" ,
} ,
] ,
} ,
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-01-17 05:55:02 +09:00
href : "https://www.acryldata.io/blog" ,
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 : [
{
href : "https://docs-website-irpoe2osc-acryldata.vercel.app/docs/" ,
label : "0.11.0" ,
} ,
{
href : "https://docs-website-1gv2yzn9d-acryldata.vercel.app/docs/" ,
label : "0.10.5" ,
} ,
] ,
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" ,
} ,
{
label : "Features" ,
to : "docs/features" ,
} ,
] ,
} ,
{
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 : {
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" ,
} ,
2021-03-05 00:12:12 -08:00
} ,
] ,
] ,
plugins : [
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
// '@docusaurus/plugin-google-gtag',
// [
// 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: [],
// },
// ],
] ,
} ;