This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
forked from temporalio/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
197 lines (196 loc) · 5.69 KB
/
docusaurus.config.js
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
193
194
195
196
197
const versions = require('./versions.json');
module.exports = {
title: 'Temporal',
tagline: 'Invincible applications, invisible infrastructure',
url: 'https://docs.temporal.io',
baseUrl: '/',
onBrokenLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'temporalio', // Usually your GitHub org/user name.
projectName: 'temporal-documentation-legacy-v2', // Usually your repo name.
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: false,
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
navbar: {
hideOnScroll: true,
logo: {
alt: 'Temporal logo',
src: 'img/temporal-logo-dark.svg',
srcDark: 'img/temporal-logo.svg',
},
items: [
{
to: 'docs/get-started/',
activeBasePath: 'docs',
label: 'Docs',
position: 'right',
},
{
to: 'blog',
label: 'Blog',
position: 'right',
},
{
to: 'blog/tags/case-study',
label: 'Case Studies',
position: 'right',
},
{
href: 'https://community.temporal.io/',
label: 'Support',
position: 'right',
},
{
href: 'https://github.com/temporalio/temporal',
label: 'GitHub',
position: 'right',
},
{
to: 'https://temporal.io/careers',
label: 'Jobs',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Get Started',
to: 'docs/get-started/',
},
{
label: 'About',
to: '/about',
},
{
label: 'Privacy Policy',
to: '/privacy-policy',
},
{
label: 'Terms of Service',
to: 'https://docs.temporal.io/pdf/temporal-tos-2021-01-19.pdf'
},
],
},
{
title: 'Community',
items: [
{
label: 'Discourse Forum',
href: 'https://community.temporal.io/',
},
{
label: 'Stack Overflow',
href:
'https://stackoverflow.com/questions/tagged/temporal-workflow',
},
{
label: 'Slack',
href:
'https://join.slack.com/t/temporalio/shared_invite/zt-kfgfjuye-L8gCQVRhPykA2td8pk7eTQ',
},
],
},
{
title: 'Social',
items: [
{
label: 'GitHub',
href: 'https://github.com/temporalio/temporal',
},
{
label: 'Twitter',
href: 'https://twitter.com/temporalio',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/channel/UCGovZyy8OfFPNlNV0i1fI1g',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Temporal Technologies Inc. All rights reserved. Copyright © 2020 Uber Technologies, Inc.`,
},
gtag: {
trackingID: 'UA-163137879-1',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
algolia: {
apiKey: '14805ba2eb682edb2e719df4d5e03c8a',
indexName: 'temporal',
// contextualSearch: true, // Optional, If you different version of docs etc (v1 and v2) doesn't display dup results
// appId: 'app-id', // Optional, if you run the DocSearch crawler on your own
// algoliaOptions: {}, // Optional, if provided by Algolia
},
},
presets: [
[
'@docusaurus/preset-classic',
{
// Will be passed to @docusaurus/plugin-content-docs
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: 'docs',
editUrl: 'https://github.com/temporalio/documentation/blob/master',
/**
* Whether to display the author who last updated the doc.
*/
showLastUpdateAuthor: false,
/**
* Whether to display the last date the doc was updated.
*/
showLastUpdateTime: false,
/**
* Skip the next release docs when versioning is enabled.
* This will not generate HTML files in the production build for documents
* in `/docs/next` directory, only versioned docs.
*/
// excludeNextVersionDocs: false,
includeCurrentVersion: true, // excludeNextVersionDocs is now deprecated
},
// Will be passed to @docusaurus/plugin-content-blog
blog: {
routeBasePath: 'blog',
path: 'blog',
postsPerPage: 10,
/**
* Show estimated reading time for the blog post.
*/
showReadingTime: true,
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Temporal Technologies Inc. All rights reserved. Copyright © 2020 Uber Technologies, Inc.`,
},
},
// Will be passed to @docusaurus/theme-classic.
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
// Will be passed to @docusaurus/plugin-content-sitemap
sitemap: {
cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: 'weekly',
priority: 0.5,
},
},
],
],
scripts: [
{
src: '/scripts/feedback.js',
async: true,
defer: true,
},
],
};