-
Notifications
You must be signed in to change notification settings - Fork 10
/
theme.config.jsx
73 lines (70 loc) · 2.01 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
72
73
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!";
export default {
darkMode: false,
color: {
hue: 201,
saturation: 100,
lightness: {
dark: 100,
light: 50
}
},
logo:
<Logo
src='/img/tableau/tableau_logo.png'
width='33'
text='Embed Tableau'
/>,
footer: {
content:
<Logo
src="/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}
/>
<link rel="icon" href={imgHost + "/svg/logo_color.svg?h=32&w=32"} type="image/svg+xml" />
<link rel="icon" href={imgHost + "/img/tableau/tableau.ico?h=32&w=32"} type="image/ico" />
<link rel="icon" href={imgHost + "/img/tableau/tableau_logo.png?h=32&w=32"} type="image/png" />
<link rel="icon" href={imgHost + "/svg/dark.svg?h=32&w=32"} type="image/svg+xml" media="(prefers-color-scheme: dark)" />
<link rel="icon" href={imgHost + "/img/tableau/tableau_logo_dark.png?h=32&w=32"} type="image/png" media="(prefers-color-scheme: dark)" />
</>
);
}
}