Skip to content

Commit 536bf8a

Browse files
committed
improve platform support ui in docs
1 parent b71a28b commit 536bf8a

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

docs/docs/connections/overview.mdx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Overview
33
sidebarTitle: Overview
44
---
55

6+
import SupportedPlatforms from '/snippets/platform-support.mdx'
7+
68
To connect your code to Sourcebot you create **connections**. A **connection** is a configuration object that describes how Sourcebot should fetch information from a supported code host.
79

810
There are two ways to define connections:
@@ -23,15 +25,6 @@ There are two ways to define connections:
2325

2426
### Supported code hosts
2527

26-
<CardGroup cols={2}>
27-
<Card horizontal title="GitHub" icon="github" href="/docs/connections/github" />
28-
<Card horizontal title="GitLab" icon="gitlab" href="/docs/connections/gitlab" />
29-
<Card horizontal title="Bitbucket Cloud" icon="bitbucket" href="/docs/connections/bitbucket-cloud" />
30-
<Card horizontal title="Bitbucket Data Center" icon="bitbucket" href="/docs/connections/bitbucket-data-center" />
31-
<Card horizontal title="Gitea" href="/docs/connections/gitea" />
32-
<Card horizontal title="Gerrit" href="/docs/connections/gerrit" />
33-
<Card horizontal title="Other Git hosts" icon="git-alt" href="/docs/connections/generic-git-host" />
34-
<Card horizontal title="Local Git repos" icon="folder" href="/docs/connections/local-repos" />
35-
</CardGroup>
28+
<SupportedPlatforms />
3629

3730
<Note>Missing your code host? [Submit a feature request on GitHub](https://github.com/sourcebot-dev/sourcebot/discussions/categories/ideas).</Note>

docs/self-hosting/overview.mdx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Self-host Sourcebot
33
sidebarTitle: Overview
44
---
55

6+
import SupportedPlatforms from '/snippets/platform-support.mdx'
7+
68
<Note>Want a managed solution? Checkout [Sourcebot Cloud](/docs/getting-started).</Note>
79

810
Sourcebot is open source and can be self-hosted using our official [Docker image](https://github.com/sourcebot-dev/sourcebot/pkgs/container/sourcebot).
@@ -75,16 +77,7 @@ Sourcebot is open source and can be self-hosted using our official [Docker image
7577
<Step title="Link your code">
7678
Sourcebot supports indexing public & private code on the following code hosts:
7779

78-
<CardGroup cols={2}>
79-
<Card horizontal title="GitHub" icon="github" href="/docs/connections/github" />
80-
<Card horizontal title="GitLab" icon="gitlab" href="/docs/connections/gitlab" />
81-
<Card horizontal title="Bitbucket Cloud" icon="bitbucket" href="/docs/connections/bitbucket-cloud" />
82-
<Card horizontal title="Bitbucket Data Center" icon="bitbucket" href="/docs/connections/bitbucket-data-center" />
83-
<Card horizontal title="Gitea" href="/docs/connections/gitea" />
84-
<Card horizontal title="Gerrit" href="/docs/connections/gerrit" />
85-
<Card horizontal title="Other Git hosts" icon="git-alt" href="/docs/connections/generic-git-host" />
86-
<Card horizontal title="Local Git repos" icon="folder" href="/docs/connections/local-repos" />
87-
</CardGroup>
80+
<SupportedPlatforms />
8881

8982
<Note>Missing your code host? [Submit a feature request on GitHub](https://github.com/sourcebot-dev/sourcebot/discussions/categories/ideas).</Note>
9083
</Step>

docs/snippets/platform-support.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<CardGroup cols={2}>
2+
<Card horizontal title="GitHub" icon="github" href="/docs/connections/github" />
3+
<Card horizontal title="GitLab" icon="gitlab" href="/docs/connections/gitlab" />
4+
<Card horizontal title="Bitbucket Cloud" icon="bitbucket" href="/docs/connections/bitbucket-cloud" />
5+
<Card horizontal title="Bitbucket Data Center" icon="bitbucket" href="/docs/connections/bitbucket-data-center" />
6+
<Card horizontal title="Gitea" icon="mug-tea" href="/docs/connections/gitea" />
7+
<Card horizontal title="Gerrit" icon="crow" href="/docs/connections/gerrit" />
8+
<Card horizontal title="Other Git hosts" icon="git-alt" href="/docs/connections/generic-git-host" />
9+
<Card horizontal title="Local Git repos" icon="folder" href="/docs/connections/local-repos" />
10+
</CardGroup>

0 commit comments

Comments
 (0)