Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//@ts-check
// @ts-nocheck

import {themes as prismThemes} from "prism-react-renderer";
const path = require("path");
import {visit} from "unist-util-visit";
const { themes: prismThemes } = require("prism-react-renderer");
const visit = require("unist-util-visit");
const FontPreloadPlugin = require("webpack-font-preload-plugin");

/** @type {import('@docusaurus/types').DocusaurusConfig} */
Expand Down Expand Up @@ -50,7 +49,7 @@ module.exports = {
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"},
{ name: "twitter:card", content: "summary_large_image" },
],
headTags: [
// Preconnect tag
Expand Down Expand Up @@ -259,7 +258,8 @@ module.exports = {
* in `/docs/next` directory, only versioned docs.
*/
// excludeNextVersionDocs: false,
lastVersion: "4.0.0",
// Previous v3.0.0 archived in versioned_docs/version-3.0.0-archive
lastVersion: "3.0.0",
versions: {
"1.0.0": {
label: "1.0.0",
Expand All @@ -271,13 +271,8 @@ module.exports = {
path: "2.0.0",
banner: "unmaintained",
},
"3.0.0": {
label: "3.0.0",
path: "3.0.0",
banner: "unmaintained",
},
},
onlyIncludeVersions: ["1.0.0", "2.0.0", "3.0.0", "4.0.0"],
onlyIncludeVersions: ["1.0.0", "2.0.0", "3.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: [
Expand Down Expand Up @@ -343,11 +338,12 @@ module.exports = {
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-LLS95VWZPC",
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
// Temporarily disabled gtag due to "window.gtag is not a function" error
// 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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"react-player": "^2.6.0",
"remark-typescript-tools": "1.0.9",
"typescript": "5",
"unist-util-visit": "^2.0.3",
"uuid": "^8.3.2",
"webpack-font-preload-plugin": "^1.5.0"
},
Expand Down
33 changes: 33 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation

The sidebars can be generated from the filesystem, or explicitly defined here.

Create as many sidebars as you want.
*/

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],

// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};

module.exports = sidebars;
Loading
Loading