forked from Tab-SE/embedding_playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.jsx
71 lines (67 loc) · 2.3 KB
/
theme.config.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { useRouter } from 'next/router';
import { useConfig } from 'nextra-theme-docs';
// import { Logo, Head } from 'components';
const vercel = 'https://embedding-playbook.vercel.app';
const description = "This playbook teaches you how to compose Tableau's varied product capabilities into applications that thrill customers, coworkers and friends!";
const basePath = process.env.NEXT_PUBLIC_BASE_URL;
let opts = {
darkMode: false,
primaryHue: 201,
primarySaturation: 100,
// logo:
// <Logo
// src={basePath + "/img/tableau/tableau_logo.png"}
// width='33'
// text='Embed Tableau'
// />,
// footer: {
// text:
// <Logo
// src={basePath + "/img/tableau/logo_text.png"}
// width='300'
// />
// },
search: {
placeholder: "Search Documentation"
},
toc: {
backToTop: true
},
project: {
link: 'https://github.com/Tab-SE/embedding_playbook',
},
docsRepositoryBase: 'https://github.com/Tab-SE/embedding_playbook/tree/main',
useNextSeoProps() {
const { route } = useRouter();
// changes title on home '/' route
if (route !== '/') {
return {
titleTemplate: '%s ✨ Embed Tableau'
};
} else {
return {
titleTemplate: 'Embed Tableau ✨ Home'
};
}
},
// head: function useHead() {
// const { title } = useConfig();
// const imgHost = vercel;
// return (
// <>
// <Head
// title={title}
// description={description}
// imgHost={imgHost}
// />
// {/* {process.env.NODE_ENV === 'development' && <script src="http://localhost:8097"></script>} */}
// <link rel="icon" href={imgHost + basePath + "/svg/logo_color.svg?h=32&w=32"} type="image/svg+xml" />
// <link rel="icon" href={imgHost + basePath + "/img/tableau/tableau.ico?h=32&w=32"} type="image/ico" />
// <link rel="icon" href={imgHost + basePath + "/img/tableau/tableau_logo.png?h=32&w=32"} type="image/png" />
// <link rel="icon" href={imgHost + basePath + "/svg/dark.svg?h=32&w=32"} type="image/svg+xml" media="(prefers-color-scheme: dark)" />
// <link rel="icon" href={imgHost + basePath + "/img/tableau/tableau_logo_dark.png?h=32&w=32"} type="image/png" media="(prefers-color-scheme: dark)" />
// </>
// );
// }
}
export default opts;