You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/connections/overview.mdx
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ There are two ways to define connections:
9
9
10
10
<AccordionGroup>
11
11
<Accordiontitle="Declarative configuration file">
12
-
This is only supported when self-hosting, and is the default mechanism to define connections. Connections are defined in a [JSON file](http://localhost:3001/self-hosting/more/declarative-config)
12
+
This is only supported when self-hosting, and is the default mechanism to define connections. Connections are defined in a [JSON file](/self-hosting/more/declarative-config)
13
13
and the path to the file is provided through the `CONFIG_PATH` environment variable
14
14
</Accordion>
15
15
<Accordiontitle="UI connection management">
16
-
This is the only way to define connections when using Sourcebot Cloud, and can be enabled when self-hosting by enabling [authentication](/self-hosting/more/authentications).
16
+
This is the only way to define connections when using Sourcebot Cloud, and can be configured when self-hosting by enabling [authentication](/self-hosting/more/authentications).
17
17
18
18
In this method, connections are defined and managed within the webapp:
19
19
@@ -28,4 +28,6 @@ There are two ways to define connections:
Copy file name to clipboardExpand all lines: docs/docs/getting-started.mdx
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ This page will provide a quick walkthrough of how to get onboarded on Sourcebot,
36
36
- Secret (optional): An [access token](/access-tokens/overview) that is used to fetch private repos
37
37
- Configuration: The JSON configuration schema that defines the repos/orgs to fetch.
38
38
39
-
For a more detailed explanation of connections, check out the [Connections](/connections/overview) page.
39
+
For a more detailed explanation of connections, check out the [Connections](/docs/connections/overview) page.
40
40
41
41
The example below shows a connection named `sourcebot-org` that fetches all of the repos for the `sourcebot-dev` GitHub organization, but excludes the `sourcebot-dev/zoekt` repo
42
42
@@ -52,5 +52,4 @@ of the repos you've indexed
52
52
53
53

54
54
55
-
Congrats, you've successfuly setup Sourcebot! Read on to learn more about the Sourcebot's capabilities
56
-
- Checkout the [Connections](/connections/overview) page to learn how to control which repos Sourcebot fetches
55
+
Congrats, you've successfuly setup Sourcebot! Read on to learn more about the Sourcebot's capabilities. Checkout the [Connections](/docs/connections/overview) page to learn how to control which repos Sourcebot fetches
Sourcebot is an **[open-source](https://github.com/sourcebot-dev/) code search tool** that is purpose built to search multi-million line codebases in seconds. It integrates with [GitHub](/docs/connections/github), [GitLab](/docs/connections/gitlab), and [other platforms](/docs/connections).
7
+
Sourcebot is an **[open-source](https://github.com/sourcebot-dev/sourcebot) code search tool** that is purpose built to search multi-million line codebases in seconds. It integrates with [GitHub](/docs/connections/github), [GitLab](/docs/connections/gitlab), and [other platforms](/docs/connections).
8
8
9
9
## Getting Started
10
10
@@ -20,9 +20,3 @@ There are two ways to get started using Sourcebot:
20
20
</CardGroup>
21
21
22
22
We also have a [public demo](https://sourcebot.dev/search) if you'd like to try Sourcebot out before registering.
23
-
24
-
# Platform Support
25
-
26
-
Sourcebot can index repositories across various different code host platforms.
Copy file name to clipboardExpand all lines: docs/self-hosting/more/authentication.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ sidebarTitle: Authentication
9
9
Sourcebot has built-in authentication that gates access to your organization. OAuth, email codes, and email / password are supported. To enable authentication, set the `SOURCEBOT_AUTH_ENABLED` environment variable to `true`.
10
10
When authentication is enabled:
11
11
12
-
- Connection managment happens through the UI
12
+
-[Connection managment](/docs/connections/overview) happens through the UI
13
13
- Members must be invited to an organization to gain access
14
14
- If you're in single-tenant mode, the first user to register will be made the owner of the default organization. Check out the [roles page](/docs/more/roles-and-permissions) for more info on the different roles and permissions
Copy file name to clipboardExpand all lines: docs/self-hosting/more/tenancy.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ named `SOURCEBOT_AUTH_ENABLED` and set its value to `multi`. When multi tenancy
16
16
### Organization creation form
17
17
18
18
When you sign in for the first time (assuming you didn't go through an invite), you'll be presented with the organization creation form. The member who creates
Copy file name to clipboardExpand all lines: docs/self-hosting/overview.mdx
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Sourcebot is open source and can be self-hosted using our official [Docker image
23
23
24
24
<Steps>
25
25
<Steptitle="Create a config">
26
-
By default, Sourcebot requires a [configuration file](/self-hosting/more/declarative-config) with a list of [code host connections](/docs/connections/overview) that specify what repositories should be **synced** (cloned and indexed). To get started, run the following command to create a starter `config.json`:
26
+
By default, Sourcebot requires a configuration file with a list of [code host connections](/docs/connections/overview) that specify what repositories should be **synced** (cloned and indexed). To get started, run the following command to create a starter `config.json`:
27
27
28
28
```bash
29
29
touch config.json
@@ -48,15 +48,22 @@ Sourcebot is open source and can be self-hosted using our official [Docker image
48
48
Sourcebot is packaged as a [single Docker image](https://github.com/sourcebot-dev/sourcebot/pkgs/container/sourcebot). In the same directory as `config.json`, run the following command to start your instance:
Navigate to `localhost:3000` to start searching the Sourcebot repo.
55
62
56
63
<Accordiontitle="Details">
57
-
**This command will**:
64
+
**This command**:
58
65
- pulls the latest version of the `sourcebot` docker image.
59
-
- mounts the working directory to `/data` in the container to allow Sourcebot to persist data (like Postgres & Redis) across restarts, and to access the `config.json`. In your local directory, you should see a `.sourcebot` folder created that contains all persistent data.
66
+
- mounts the working directory to `/data` in the container to allow Sourcebot to persist data across restarts, and to access the `config.json`. In your local directory, you should see a `.sourcebot` folder created that contains all persistent data.
60
67
- runs any pending database migrations.
61
68
- starts up all services, including the webserver exposed on port 3000.
62
69
- reads `config.json` and starts syncing.
@@ -105,13 +112,15 @@ Sourcebot does not support horizontal scaling at this time, but it is on our roa
105
112
106
113
107
114
## Telemetry
108
-
109
-
By default, Sourcebot collects anonymized usage data through [PostHog](https://posthog.com/) to help us improve the performance and reliability of our tool. We don't collect or transmit [any information related to your codebase](https://sourcebot.dev/search/search?query=captureEvent%5C(%20repo%3Asourcebot). In addition, all events are [sanitized](https://github.com/sourcebot-dev/sourcebot/blob/HEAD/packages/web/src/app/posthogProvider.tsx) to ensure that no sensitive details (ex. ip address, query info) leave your machine.
115
+
By default, Sourcebot collects anonymized usage data through [PostHog](https://posthog.com/) to help us improve the performance and reliability of our tool. We don't collect or transmit <ahref="https://sourcebot.dev/search/search?query=captureEvent%5C(%20repo%3Asourcebot">any information related to your codebase</a>. In addition, all events are [sanitized](https://github.com/sourcebot-dev/sourcebot/blob/HEAD/packages/web/src/app/posthogProvider.tsx) to ensure that no sensitive details (ex. ip address, query info) leave your machine.
110
116
111
117
The data we collect includes general usage statistics and metadata such as query performance (e.g., search duration, error rates) to monitor the application's health and functionality. This information helps us better understand how Sourcebot is used and where improvements can be made.
112
118
113
119
If you'd like to disable all telemetry, you can do so by setting the environment variable `SOURCEBOT_TELEMETRY_DISABLED` to `true`:
114
120
115
121
```bash
116
-
docker run -e SOURCEBOT_TELEMETRY_DISABLED=true /* additional args */ ghcr.io/sourcebot-dev/sourcebot:latest
0 commit comments