forked from temporalio/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
262 lines (261 loc) · 9.77 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Temporal documentation",
tagline: "Build invincible applications",
url: "https://docs.temporal.io",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.png",
organizationName: "temporalio", // Usually your GitHub org/user name.
projectName: "temporal-documentation", // Usually your repo name.
themeConfig: {
colorMode: {
defaultMode: "light",
disableSwitch: false,
},
prism: {
theme: require("prism-react-renderer/themes/dracula"),
additionalLanguages: ["java", "ruby", "php"],
},
hideableSidebar: true,
navbar: {
hideOnScroll: true,
logo: {
alt: "Temporal logo",
src: "img/temporal-logo-dark.svg",
srcDark: "img/temporal-logo.svg",
},
items: [
{
activeBasePath: "/docs",
label: "Docs",
items: [
{
to: "/docs/concepts/introduction",
activeBasePath: "/docs/concepts/",
label: "Concepts",
},
{
to: "/docs/server/introduction",
activeBasePath: "/docs/server/",
label: "Server",
},
{
to: "/application-development",
activeBasePath: "/application-development",
label: "SDKs",
},
{
to: "/docs/system-tools/introduction",
activeBasePath: "/docs/system-tools/",
label: "System Tools",
},
],
},
{
activeBasePath: "none",
label: "Case Studies",
items: [
{
to: "/blog/how-temporal-simplified-checkr-workflows",
label: "Checkr",
},
{
to: "/blog/Temporal-a-central-brain-for-Box",
label: "Box",
},
{
to: "/blog/reliable-crypto-transactions-at-coinbase",
label: "Coinbase",
},
{
to: "/blog/descript-case-study",
label: "Descript",
},
],
},
{
to: "/blog",
activeBasePath: "/blog",
label: "Blog",
},
],
},
footer: {
style: "dark",
links: [
{
items: [
{
label: "All SDKs",
to: "/application-development",
},
{
label: "Go SDK",
to: "/docs/go/introduction",
},
{
label: "Java SDK",
to: "/docs/java/introduction",
},
{
label: "PHP SDK",
to: "/docs/php/introduction",
},
{
label: "Node SDK (alpha)",
to: "/docs/node/introduction",
},
],
},
{
items: [
{
label: "Core concepts",
to: "/docs/concepts/introduction",
},
{
label: "Temporal Server",
to: "/docs/server/introduction",
},
{
label: "System Tools",
to: "/docs/system-tools/introduction",
},
{
label: "Glossary",
to: "/docs/glossary",
},
],
},
{
items: [
{
label: "Support Forum",
href: "https://community.temporal.io/",
},
{
label: "Public Slack",
href: "https://join.slack.com/t/temporalio/shared_invite/zt-onhti57l-J0bl~Tr7MqSUnIc1upjRkw",
},
{
label: "Temporal Careers",
href: "https://temporal.io/careers",
},
{
label: "Open Office Hours",
href: "https://lu.ma/temporal",
},
],
},
{
items: [
{
label: "Case Studies",
href: "/blog/tags/case-study",
},
{
label: "Blog",
href: "/blog",
},
{
label: "External resources",
to: "/docs/external-resources",
},
],
},
],
copyright: `
<div>
<a href="https://github.com/temporalio/temporal" aria-label="GitHub"><svg class="footer__svg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg></a>
<a href="https://twitter.com/temporalio" aria-label="Twitter"><svg class="footer__svg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg></a>
<a href="https://www.youtube.com/channel/UCGovZyy8OfFPNlNV0i1fI1g" aria-label="YouTube"><svg class="footer__svg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"/></svg></a>
</div>
<div class="footer__copyright"><span class="footer__block">Copyright © ${new Date().getFullYear()}</span> Temporal Technologies Inc.</div>
<div>
<a class="footer__link-item" href="/about">About</a>
<span class="footer__separators"> | </span>
<a class="footer__link-item" href="/security">Security</a>
<span class="footer__separators"> | </span>
<a class="footer__link-item" href="/privacy-policy">Privacy Policy</a>
<span class="footer__separators"> | </span>
<a class="footer__link-item" href="https://docs.temporal.io/pdf/temporal-tos-2021-01-19.pdf">Terms of Service</a>
</div>
`,
},
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
// options: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog
blog: {
routeBasePath: "blog",
path: "blog",
postsPerPage: 10,
editUrl:
"https://github.com/temporalio/documentation/tree/master/blog",
blogTitle: "Temporal Blog",
showReadingTime: true, // Show estimated reading time for the blog post.
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: {
// Per v2.0.0-alpha.72 cacheTime is now deprecated
//cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: "weekly",
priority: 0.5,
},
},
],
],
scripts: [
{
src: "/scripts/feedback.js",
async: true,
defer: true,
},
],
};