Skip to content

Commit

Permalink
Revert docusaurus from this PR
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rockwood <[email protected]>
  • Loading branch information
benr committed Mar 5, 2024
1 parent de136f7 commit 33e1307
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @type {import('@docusaurus/types').DocusaurusConfig};

const { themes } = require("prism-react-renderer")
const { themes } = require("prism-react-renderer");

const legacyRedirects = [
// NOTE: Path / is equivalent to https://mondoo.com/docs/
Expand Down Expand Up @@ -45,7 +45,7 @@ const legacyRedirects = [
from: "/references/cli/mondoo",
to: "/cnspec/cli/cnspec_scan",
},
]
];

module.exports = {
title: "Mondoo Docs",
Expand All @@ -71,27 +71,27 @@ module.exports = {
if (existingPath.includes("/platform/infra/cloud")) {
return [
existingPath.replace("/platform/infra/cloud", "/platform/cloud"),
]
];
} else if (existingPath.includes("/platform/infra/opsys")) {
return [
existingPath.replace(
"/platform/infra/opsys",
"/platform/operating_systems"
"/platform/operating_systems",
),
]
];
} else if (existingPath.includes("/platform/infra/saas")) {
return [
existingPath.replace("/platform/infra/saas", "/platform/saas"),
]
];
} else if (existingPath.includes("/platform/infra/supply")) {
return [
existingPath.replace(
"/platform/infra/supply",
"/platform/supplychain"
"/platform/supplychain",
),
]
];
}
return undefined // Return a falsy value: no redirect created
return undefined; // Return a falsy value: no redirect created
},
},
],
Expand All @@ -104,7 +104,7 @@ module.exports = {
],
themeConfig: {
hubspot: {
accountId: "HS_ACCOUNTID",
accountId: HS_ACCOUNTID,
},
docs: {
sidebar: {
Expand Down Expand Up @@ -296,4 +296,4 @@ module.exports = {
},
],
],
}
};

0 comments on commit 33e1307

Please sign in to comment.