Skip to content

Commit

Permalink
Update docusaurus.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
3keyroman committed Nov 19, 2024
1 parent 956c56e commit d178768
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,21 @@ const config = {
// './src/plugins/test'
// ],
plugins: [
[
"docusaurus-plugin-remote-content",
{
// options here
name: "czertainly-helm-docs", // used by CLI, must be path safe
noRuntimeDownloads: true, // disable runtime downloads, use only CLI to download (docusaurus download-remote-czertainly-helm-docs)
performCleanup: false, // do not remove downloaded files on build
sourceBaseUrl: "https://raw.githubusercontent.com/3KeyCompany/CZERTAINLY-Helm-Charts/"+chartVersion+"/charts/czertainly/docs/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "docs/10-certificate-key/03-installation-guide/04-deployment/04-deployment-helm", // the base directory to output to.
documents: ["configurable-parameters.md", "overview.md", "troubleshooting.md", "upgrading.md"], // the file names to download
},
],
[
'@docusaurus/plugin-client-redirects',
{
createRedirects(existingPath) {
redirects: [
{
to: '/docs',
from: '/test',
},
],
createRedirects: function (existingPath) {
// do not redirect root
if (existingPath === '/') {
return undefined;
} else if (existingPath.endsWith('/')) {
}
if (existingPath.endsWith('/')) {
// remove the trailing slash and redirect
return existingPath.slice(0, -1);
}
Expand Down

0 comments on commit d178768

Please sign in to comment.