From 7bb52b46cb471683371a58118ba4d591c329f9c6 Mon Sep 17 00:00:00 2001 From: aravindputrevu Date: Mon, 9 Sep 2024 11:50:41 +0200 Subject: [PATCH 1/2] SaaS GitLab change to Gitlab.com and added relevant redirect --- docs/platforms/{saas-gitlab.md => gitlab-com.md} | 2 +- docs/platforms/platforms.md | 2 +- docusaurus.config.ts | 15 ++++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) rename docs/platforms/{saas-gitlab.md => gitlab-com.md} (99%) diff --git a/docs/platforms/saas-gitlab.md b/docs/platforms/gitlab-com.md similarity index 99% rename from docs/platforms/saas-gitlab.md rename to docs/platforms/gitlab-com.md index 17547b57..cba5a8f9 100644 --- a/docs/platforms/saas-gitlab.md +++ b/docs/platforms/gitlab-com.md @@ -1,7 +1,7 @@ --- title: Integrating CodeRabbit with SaaS GitLab description: Integrate CodeRabbit with SaaS GitLab. -sidebar_label: SaaS GitLab +sidebar_label: GitLab.com sidebar_position: 1 --- diff --git a/docs/platforms/platforms.md b/docs/platforms/platforms.md index c5a405be..f8ebc236 100644 --- a/docs/platforms/platforms.md +++ b/docs/platforms/platforms.md @@ -18,7 +18,7 @@ CodeRabbit supports various Git platforms to provide code review for your reposi | Host | Support | | ------------------- | ---------------------------------- | -| GitLab.com | [Supported](saas-gitlab.md) | +| GitLab.com | [Supported](gitlab-com.md) | | GitLab Self Managed | [Supported](self-hosted-gitlab.md) | ## Azure DevOps diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 90748268..69013b2d 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,7 +1,8 @@ -import type * as Preset from "@docusaurus/preset-classic"; -import type { Config } from "@docusaurus/types"; -import { themes as prismThemes } from "prism-react-renderer"; -import { EnumChangefreq } from "sitemap"; +import { themes as prismThemes } from 'prism-react-renderer'; +import { EnumChangefreq } from 'sitemap'; + +import type * as Preset from '@docusaurus/preset-classic'; +import type { Config } from '@docusaurus/types'; const baseUrl = "/"; @@ -74,7 +75,7 @@ const config: Config = { }, { from: "/integrations/saas-gitlab", - to: "/platforms/saas-gitlab", + to: "/platforms/gitlab-com", }, { from: "/integrations/self-hosted-gitlab", @@ -88,6 +89,10 @@ const config: Config = { from: "/platforms/saas-azure-devops", to: "/platforms/azure-devops", }, + { + from: "/platforms/saas-gitlab", + to: "/platforms/gitlab-com", + }, ], }, From 6e5746b5d8b74931dcd853fdac7fec322e6146a1 Mon Sep 17 00:00:00 2001 From: aravindputrevu Date: Mon, 9 Sep 2024 12:52:21 +0200 Subject: [PATCH 2/2] changes for the self-hosted-github to Github Enterprise Server --- .../{self-hosted-github.md => github-enterprise-server.md} | 2 +- docs/platforms/platforms.md | 2 +- docusaurus.config.ts | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) rename docs/platforms/{self-hosted-github.md => github-enterprise-server.md} (99%) diff --git a/docs/platforms/self-hosted-github.md b/docs/platforms/github-enterprise-server.md similarity index 99% rename from docs/platforms/self-hosted-github.md rename to docs/platforms/github-enterprise-server.md index 4ec9a58a..30de829f 100644 --- a/docs/platforms/self-hosted-github.md +++ b/docs/platforms/github-enterprise-server.md @@ -1,7 +1,7 @@ --- title: CodeRabbit for Self-Managed GitHub description: Integrate CodeRabbit with your Self-Managed GitHub instance. -sidebar_label: Self-Managed GitHub +sidebar_label: Github Enteprise Server sidebar_position: 3 --- diff --git a/docs/platforms/platforms.md b/docs/platforms/platforms.md index f8ebc236..b507e108 100644 --- a/docs/platforms/platforms.md +++ b/docs/platforms/platforms.md @@ -12,7 +12,7 @@ CodeRabbit supports various Git platforms to provide code review for your reposi | Host | Support | | ------------------------ | ---------------------------------- | | GitHub.com | [Supported][login] | -| GitHub Enterprise Server | [Supported](self-hosted-github.md) | +| GitHub Enterprise Server | [Supported](github-enterprise-server.md) | ## GitLab diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 69013b2d..d00670f2 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -83,7 +83,7 @@ const config: Config = { }, { from: "/integrations/self-hosted-github", - to: "/platforms/self-hosted-github", + to: "/platforms/github-enterprise-server", }, { from: "/platforms/saas-azure-devops", @@ -93,6 +93,10 @@ const config: Config = { from: "/platforms/saas-gitlab", to: "/platforms/gitlab-com", }, + { + from: "/platforms/self-hosted-github", + to: "/platforms/github-enterprise-server", + }, ], },