-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.ts
192 lines (173 loc) · 6.81 KB
/
docusaurus.config.ts
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Home | ReVISit',
tagline: 'reVISit: Reproducible and Powerful Visualization User Studies',
favicon: 'img/logos/favicon.svg',
url: 'https://revisit.dev',
baseUrl: '/',
trailingSlash: true,
organizationName: 'University of Utah', // Usually your GitHub org/user name.
projectName: 'ReVISit', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
lastVersion: 'current',
versions: {
current: { label: 'v1.0.5', path: '' },
}
},
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-FLX70EGV5P',
anonymizeIP: true,
},
} satisfies Preset.Options,
],
],
themeConfig: {
announcementBar: {
id: 'support_us',
content:
'ReVISit Version 1.0.0 Is Out! 🎉 <a target="_blank" href="https://vdl.sci.utah.edu/blog/2024/06/20/revisit/">Read the blog post.',
backgroundColor: '#fafbfc',
textColor: '#091E42',
isCloseable: true,
},
algolia: {
// The application ID provided by Algolia
appId: 'CE7T3Q5S25',
// Public API key: it is safe to commit it
apiKey: '0e172022221452330a1cf49f25f6ebc6',
indexName: 'revisit-docusaurus',
// Ensures that search is based on version
contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
insights: false,
// ... other Algolia params
},
image: 'img/logos/revisitLogoThumbnail.png',
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'ReVISit',
logo: {
alt: 'ReVISit Logo',
src: 'img/logos/revisitLogoThumbnail-dotted-light.svg',
srcDark: 'img/logos/revisitLogoThumbnail-dotted-dark.svg',
},
items: [
{ to: '/community', label: 'Community', position: 'left' },
{
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Documentation',
},
{
type: 'docSidebar',
sidebarId: 'reference',
position: 'left',
label: 'Reference',
},
{ to: '/about', label: 'About', position: 'left' },
{
to: '/testimonials',
label: 'Testimonials',
position: 'left',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
{
href: 'https://github.com/revisit-studies/study',
label: 'GitHub',
position: 'right',
},
{
href: 'https://revisit.dev/study',
label: 'Demo',
position: 'right',
},
],
},
footer: {
style: 'light',
links: [
{
html: `
<div class="footer-wrapper row">
<a class="col " target="_blank" href="https://vdl.sci.utah.edu/">
<img src="/img/logos/vdl-logo-light.svg" class='logo light-theme-display-component'/>
<img src="/img/logos/vdl-logo-dark.svg" class='logo dark-theme-display-component'/>
</a>
<a class="col " target="_blank" href="https://www.sci.utah.edu/">
<img src="/img/logos/sci-logo-light.svg" class='logo light-theme-display-component'/>
<img src="/img/logos/sci-logo-dark.svg" class='logo dark-theme-display-component'/>
</a>
<a class="col " target="_blank" href="https://www.cs.utah.edu/">
<img src="/img/logos/ULogo-light.svg" class='logo light-theme-display-component'/>
<img src="/img/logos/ULogo-dark.svg" class='logo dark-theme-display-component'/>
</a>
<a class="col " target="_blank" href="http://web.cs.wpi.edu/~ltharrison/">
<img src="/img/logos/view-logo-light.svg" class='logo light-theme-display-component'/>
<img src="/img/logos/view-logo-dark.svg" class='logo dark-theme-display-component'/>
</a>
<a class="col " target="_blank" href="https://wpi.edu/">
<img src="/img/logos/wpi.png" class='logo'/>
</a>
<a class="col " target="_blank" href="https://www.cs.toronto.edu/~cnobre/">
<img src="/img/logos/HIVE_logo.png" class='logo light-theme-display-component'/>
<img src="/img/logos/HIVE-logo-dark.svg" class='logo dark-theme-display-component'/>
</a>
<a class="col " target="_blank" href="https://www.cs.toronto.edu/">
<img src="/img/logos/UofTLogo.png" class='logo light-theme-display-component'/>
<img src="/img/logos/UofT-logo-dark.svg" class='logo dark-theme-display-component'/>
</a>
<a class="col " target="_blank" href="https://www.nsf.gov/">
<img src="/img/logos/nsf.png" class='logo'/>
</a>
</div>
`,
},
],
copyright: `Copyright © 2022-${new Date().getFullYear()}. The reVISit team. Last updated on ${
new Date().toISOString().split('T')[0]
}. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'typescript'],
},
} satisfies Preset.ThemeConfig,
};
export default config;