-
-
Notifications
You must be signed in to change notification settings - Fork 289
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
564 lines (558 loc) · 24 KB
/
docusaurus.config.js
File metadata and controls
564 lines (558 loc) · 24 KB
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
//@ts-check
import {themes as prismThemes} from "prism-react-renderer";
const path = require("path");
import {visit} from "unist-util-visit";
const FontPreloadPlugin = require("webpack-font-preload-plugin");
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Keploy Documentation",
titleDelimiter: "🐰",
tagline: "API Test Generator Tool",
url: "https://keploy.io",
baseUrl: "/docs/",
onBrokenLinks: "throw",
trailingSlash: true,
favicon: "img/favicon.png",
organizationName: "keploy", // Usually your GitHub org/user name.
projectName: "docs", // Usually your repo name.
plugins: [
function preloadFontPlugin() {
return {
name: "preload-font-plugin",
configureWebpack() {
return {
plugins: [new FontPreloadPlugin()],
};
},
};
},
"docusaurus-tailwindcss-loader",
],
themeConfig: {
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 2,
},
canonicalBase: "https://keploy.io/",
metadata: [
{
description: "Documentation for Keploy Backend Test Generator",
},
{
name: "x-default",
content: "en-us",
},
{
name: "description",
content:
"Keploy - Open source tool that generates Regression Tests like unit tests with mocks and stubs from API calls.",
},
{
name: "keywords",
content:
"API testing, Keploy docs, incident replay, network calls, code paths, test scenarios, code coverage, stubs, junit, go-test, live environment, production incidents, open source, regression tests, ai tests",
},
{name: "twitter:card", content: "summary_large_image"},
{
property: "og:image",
content: "https://keploy.io/images/keploy-hero.png",
},
{property: "og:image:width", content: "1200"},
{property: "og:image:height", content: "630"},
],
headTags: [
// Google Fonts - DM Sans (loaded via headTags instead of CSS @import)
{
tagName: "link",
attributes: {
rel: "preconnect",
href: "https://fonts.googleapis.com",
},
},
{
tagName: "link",
attributes: {
rel: "preconnect",
href: "https://fonts.gstatic.com",
crossorigin: "anonymous",
},
},
{
tagName: "link",
attributes: {
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap",
},
},
// Preconnect tag
{
tagName: "link",
attributes: {
rel: "preconnect",
href: "https://keploy.io/",
},
},
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "SoftwareApplication",
name: "Keploy",
description:
"Keploy is an open-source, AI-powered testing agent and sandboxing platform that automatically generates test cases, dependency mocks, and production-like sandboxes from real user traffic using eBPF. It helps developers achieve 90% test coverage in minutes with zero code changes. Native support is available on Linux; macOS and Windows require a Linux environment such as Lima, WSL, or Docker.",
applicationCategory: "DeveloperTool",
applicationSubCategory: "Test Automation",
operatingSystem: "Linux",
license: "https://www.apache.org/licenses/LICENSE-2.0",
softwareHelp: "https://keploy.io/docs/",
codeRepository: "https://github.com/keploy/keploy",
downloadUrl: "https://github.com/keploy/keploy/releases",
isAccessibleForFree: true,
url: "https://keploy.io",
featureList: [
"Automatic test case generation from real user traffic",
"Production-like sandbox environments from captured traffic",
"AI-powered dependency virtualization and mock generation",
"Record and replay testing with eBPF kernel capture",
"AI noise detection for flaky test elimination",
"Legacy application testing without code changes",
"Migration regression testing against production baselines",
"Continuous validation in CI/CD pipelines",
"Multi-language support (Go, Java, TypeScript, Python)",
],
keywords: [
"test automation",
"API testing",
"API test generation",
"unit testing",
"integration testing",
"mock generation",
"dependency virtualization",
"eBPF-based testing",
"record and replay",
"production sandbox",
],
programmingLanguage: [
"Go",
"Java",
"TypeScript",
"JavaScript",
"Python",
],
publisher: {
"@type": "Organization",
name: "Keploy",
url: "https://keploy.io",
},
}),
},
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org/",
"@type": "Organization",
name: "Keploy",
url: "https://keploy.io/",
logo: "https://keploy.io/images/keploy-logo-full.svg",
foundingDate: "2021-01-01",
knowsAbout: [
"API Testing",
"Test Automation",
"eBPF-based Testing",
"Dependency Virtualization",
"AI-Powered Testing",
],
award: [
"API World 2023 Award: Best in API Infrastructure",
"CNCF Landscape",
"Google for Startups Accelerator",
"Google Summer of Code Mentoring Organization",
],
sameAs: [
"https://github.com/keploy",
"https://twitter.com/Keployio",
"https://www.linkedin.com/company/keploy",
"https://www.youtube.com/@keploy",
"https://www.gartner.com/reviews/product/keploy-618993540",
"https://www.g2.com/products/keploy/reviews",
"https://www.capterra.in/software/1070466/Keploy",
],
}),
},
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org/",
"@type": "WebSite",
name: "Keploy Documentation",
url: "https://keploy.io/docs/",
potentialAction: {
"@type": "SearchAction",
target: "https://keploy.io/docs/search?q={search_term_string}",
"query-input": "required name=search_term_string",
},
}),
},
],
colorMode: {
defaultMode: "light",
disableSwitch: false,
// switchConfig: {
// darkIcon: "🌙",
// darkIconStyle: {
// content: `url(/img/moon.svg)`,
// transform: "scale(2)",
// margin: "0 0.2rem",
// },
// lightIcon: "\u{1F602}",
// lightIconStyle: {
// content: `url(/img/sun.svg)`,
// transform: "scale(2)",
// },
// },
},
announcementBar: {
id: "announcementBar_1", // Increment on change
content: `⭐️ If you like Keploy, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/keploy/keploy">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/keployio">Twitter</a> ❤️ `,
},
prism: {
theme: prismThemes.vsLight,
darkTheme: prismThemes.dracula,
additionalLanguages: ["java", "ruby", "php", "bash"],
},
// hideableSidebar: true,
navbar: {
hideOnScroll: false,
logo: {
alt: "Keploy logo",
src: "img/keploy-logo-dark.svg",
srcDark: "img/keploy-logo-dark.svg",
},
items: [
{
label: "Products",
position: "left",
items: [
{
label: "Integration Testing",
to: "server/install",
},
{
label: "API Testing (AI)",
to: "/running-keploy/api-test-generator",
},
],
},
{
label: "Blog",
items: [
{
label: "Tech Blogs",
href: "https://keploy.io/blog/technology",
},
{
label: "Community Articles",
href: "https://keploy.io/blog/community",
},
{
label: "Glossary",
href: "/concepts/reference/glossary/",
},
],
position: "left",
},
{
to: "/keploy-explained/contribution-guide",
label: "Contribution Guide",
position: "left",
},
{
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
{
href: "https://join.slack.com/t/keploy/shared_invite/zt-357qqm9b5-PbZRVu3Yt2rJIa6ofrwWNg",
position: "right",
className: "header-slack-link",
"aria-label": "Join our Slack community",
},
{
href: "https://github.com/keploy/keploy",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
},
footer: {
copyright: `
<div className="footer__icons footer">
<a href="https://github.com/keploy/keploy" 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/keployio" aria-label="Twitter"><svg class="footer__svg" xmlns="http://www.w3.org/2000/svg" width="27px" height="24px" viewBox="0 0 24 24" version="1.1"><path d="M 20.476562 0.00390625 L 24.464844 0.00390625 L 15.753906 10.167969 L 26 23.996094 L 17.976562 23.996094 L 11.691406 15.609375 L 4.503906 23.996094 L 0.511719 23.996094 L 9.828125 13.125 L 0 0.00390625 L 8.226562 0.00390625 L 13.90625 7.671875 Z M 19.078125 21.558594 L 21.285156 21.558594 L 7.027344 2.3125 L 4.65625 2.3125 Z M 19.078125 21.558594 "/>
</g>
</svg></a>
<a href="https://www.youtube.com/channel/UC6OTg7F4o0WkmNtSoob34lg" 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>
<a href="https://www.instagram.com/keploy.io/" aria-label="Instagram"><svg class="footer__svg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg></a>
<a href="https://join.slack.com/t/keploy/shared_invite/zt-357qqm9b5-PbZRVu3Yt2rJIa6ofrwWNg" aria-label="Slack"><svg class="footer__svg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 2447.6 2452.5">
<path d="m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z" /><path d="m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z" /><path d="m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z" /><path d="m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0"/>
</svg></a>
</div>
<div className="footer__icons footer">
<a class="footer__link-item" href="https://calendar.app.google/cXVaj6hbMUjvmrnt9" target="_blank" rel="noopener noreferrer"> Have a Keploy use-case? Let's Talk!</a>
</div>
<div class="footer__copyright"><span class="footer__block">Copyright © ${new Date().getFullYear()} </span> Keploy Inc.</div>
<div>
<a class="footer__link-item" href="/about">About</a>
<span class="footer__separators"> | </span>
<a class="footer__link-item" href="https://keploy.io/docs/security/">Security</a>
<span class="footer__separators"> | </span>
<a class="footer__link-item" href="/privacy-policy">Privacy Policy</a>
</div>
`,
},
algolia: {
apiKey: "c4628c331b0f4997178c879978033276",
indexName: "keploy",
appId: "WZTL8PLCOD",
contextualSearch: true, // Optional, If you different version of docs etc (v1 and v2) doesn't display dup results
// 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: "/",
exclude: ["**/shared/**"], // do not render "shared" content
editUrl: "https://github.com/keploy/docs/blob/master",
/**
* Whether to display the author who last updated the doc.
*/
showLastUpdateAuthor: true,
/**
* Whether to display the last date the doc was updated.
*/
showLastUpdateTime: true,
/**
* 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,
lastVersion: "4.0.0",
versions: {
"4.0.0": {
label: "3.0.0",
},
"1.0.0": {
label: "1.0.0",
path: "1.0.0",
banner: "unmaintained",
},
"2.0.0": {
label: "2.0.0",
path: "2.0.0",
banner: "unmaintained",
},
},
onlyIncludeVersions: ["1.0.0", "2.0.0", "4.0.0"],
includeCurrentVersion: true, // excludeNextVersionDocs is now deprecated
// // below remark plugin disabled until we can figure out why it is not transpiling to ESNext properly - swyx
remarkPlugins: [
[
() =>
function addTSNoCheck(tree) {
// Disable TS type checking for any TypeScript code blocks.
// This is because imports are messy with snipsync: we don't
// have a way to pull in a separate config for every example
// snipsync pulls from.
function visitor(node) {
if (!/^ts$/.test(node.lang)) {
return;
}
node.value = "// @ts-nocheck\n" + node.value.trim();
}
visit(tree, "code", visitor);
},
{},
],
[
() =>
function removeTSNoCheck(tree) {
function visitor(node) {
if (!/^ts$/.test(node.lang) && !/^js$/.test(node.lang)) {
return;
}
if (node.value.startsWith("// @ts-nocheck\n")) {
node.value = node.value.slice("// @ts-nocheck\n".length);
}
// If TS compiled output is empty, replace it with a more helpful comment
if (
node.lang === "js" &&
node.value.trim() === "export {};"
) {
node.value = "// Not required in JavaScript";
} else if (node.lang === "js") {
node.value = convertIndent4ToIndent2(node.value).trim();
}
}
visit(tree, "code", visitor);
},
{},
],
],
},
// Will be passed to @docusaurus/plugin-content-blog
// TODO : Add Blogging Section
// blog: {
// routeBasePath: "blog",
// path: "blog",
// postsPerPage: 10,
// editUrl: "https://github.com/keploy/docs/blob/master",
// blogTitle: "Keploy Blog",
// showReadingTime: true, // Show estimated reading time for the blog post.
// feedOptions: {
// type: "all",
// copyright: `Copyright © ${new Date().getFullYear()} Keploy Inc. All rights reserved.`,
// },
// },
// Will be passed to @docusaurus/theme-classic.
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-LLS95VWZPC",
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
// 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,
filename: "sitemap.xml",
// Differentiate docs sitemap priorities by content type so
// search engines spend crawl budget proportional to how
// canonical each page is. Priority buckets:
// 1.0 → /docs/ root (highest — primary entry point)
// 0.9 → /docs/quickstart/* (highest-intent user flow)
// 0.8 → /docs/running-keploy/* (primary product docs)
// 0.7 → /docs/concepts/*, /docs/keploy-explained/*
// 0.6 → /docs/keploy-cloud/*, /docs/ci-cd/*
// 0.6 → /docs/keploy-explained/*-faq/ (3 FAQ pages) and
// /docs/keploy-explained/common-errors/ (troubleshooting)
// — reference-style, lower crawl priority than core docs
// 0.5 → /docs/concepts/reference/glossary/* (long-tail
// glossary; noindexed legacy versions excluded via
// netlify headers + robots.txt)
createSitemapItems: async (params) => {
const {defaultCreateSitemapItems, ...rest} = params;
const items = await defaultCreateSitemapItems(rest);
return items.map((item) => {
const url = item.url;
// The /docs/ home page is the highest-priority entry point
// for the whole docs subtree.
if (url.endsWith("/docs/") || url.endsWith("/docs")) {
return {...item, priority: 1.0, changefreq: "weekly"};
}
if (url.includes("/quickstart/")) {
return {...item, priority: 0.9, changefreq: "weekly"};
}
if (url.includes("/running-keploy/")) {
return {...item, priority: 0.8, changefreq: "weekly"};
}
if (url.includes("/concepts/reference/glossary/")) {
// Glossary entries are numerous, long-tail, and often
// off-topic for core product queries. Keep them in the
// sitemap but mark them low priority.
return {...item, priority: 0.5, changefreq: "monthly"};
}
// FAQ + troubleshooting match FIRST, because these pages live
// under /keploy-explained/ in the v4 docs (e.g.
// /docs/keploy-explained/integration-testing-faq/,
// /docs/keploy-explained/api-testing-faq/,
// /docs/keploy-explained/unit-testing-faq/,
// /docs/keploy-explained/common-errors/ — "common-errors" is
// the troubleshooting guide, labelled "Troubleshooting Guide"
// in the sidebar). Without matching first, they would be
// captured by the /keploy-explained/ rule below and get
// priority 0.7 instead of the intended 0.6.
if (
url.includes("-faq/") ||
url.includes("-faq") ||
url.includes("/common-errors")
) {
return {...item, priority: 0.6, changefreq: "monthly"};
}
if (
url.includes("/concepts/") ||
url.includes("/keploy-explained/")
) {
return {...item, priority: 0.7, changefreq: "weekly"};
}
if (url.includes("/keploy-cloud/") || url.includes("/ci-cd/")) {
return {...item, priority: 0.6, changefreq: "monthly"};
}
return item;
});
},
},
},
],
],
scripts: [
{
src: "/docs/scripts/feedback.js",
async: true,
defer: true,
},
{
src: "/docs/scripts/clarity.js",
async: true,
defer: true,
},
{
src: "/docs/js/apollo-init.js",
async: true,
defer: true,
},
{
src: "https://telemetry.keploy.io/sessions/sdk.js",
async: true,
defer: true,
"data-endpoint": "https://telemetry.keploy.io/sessions/collect",
"data-source": "docs",
},
/*{
src: "/docs/scripts/chat.js",
async: true,
defer: true,
},
{
src: "/scripts/fullstory.js",
async: true,
defer: true,
},*/
],
};
function convertIndent4ToIndent2(code) {
// TypeScript always outputs 4 space indent. This is a workaround.
// See https://github.com/microsoft/TypeScript/issues/4042
return code.replace(/^( {4})+/gm, (match) => {
return " ".repeat(match.length / 4);
});
}