diff --git a/docs/docs/configuration/config-file.mdx b/docs/docs/configuration/config-file.mdx
index 4e63cde85..d6162451d 100644
--- a/docs/docs/configuration/config-file.mdx
+++ b/docs/docs/configuration/config-file.mdx
@@ -23,7 +23,7 @@ The config file tells Sourcebot which repos to index, what language models to us
The config file you provide Sourcebot must follow the [schema](https://github.com/sourcebot-dev/sourcebot/blob/main/schemas/v3/index.json). This schema consists of the following properties:
-- [Connections](/docs/connections/overview) (`connections`): Defines a set of connections that tell Sourcebot which repos to index and from where
+- [Connections](/docs/connections/indexing-your-code) (`connections`): Defines a set of connections that tell Sourcebot which repos to index and from where
- [Language Models](/docs/configuration/language-model-providers) (`models`): Defines a set of language model providers for use with [Ask Sourcebot](/docs/features/ask)
- [Settings](#settings) (`settings`): Additional settings to tweak your Sourcebot deployment
- [Search Contexts](/docs/features/search/search-contexts) (`contexts`): Groupings of repos that you can search against
diff --git a/docs/docs/configuration/declarative-config.mdx b/docs/docs/configuration/declarative-config.mdx
index cdfdb4458..f998320b6 100644
--- a/docs/docs/configuration/declarative-config.mdx
+++ b/docs/docs/configuration/declarative-config.mdx
@@ -5,7 +5,7 @@ sidebarTitle: Declarative config
import ConfigSchema from '/snippets/schemas/v3/index.schema.mdx'
-Some teams require Sourcebot to be configured via a file (where it can be stored in version control, run through CI/CD pipelines, etc.) instead of a web UI. For more information on configuring connections, see this [overview](/docs/connections/overview).
+Some teams require Sourcebot to be configured via a file (where it can be stored in version control, run through CI/CD pipelines, etc.) instead of a web UI. For more information on configuring connections, see this [overview](/docs/connections/indexing-your-code).
| Variable | Description |
diff --git a/docs/docs/configuration/environment-variables.mdx b/docs/docs/configuration/environment-variables.mdx
index 875a32dbe..396c4cf36 100644
--- a/docs/docs/configuration/environment-variables.mdx
+++ b/docs/docs/configuration/environment-variables.mdx
@@ -10,8 +10,8 @@ The following environment variables allow you to configure your Sourcebot deploy
| Variable | Default | Description |
| :------- | :------ | :---------- |
-| `AUTH_CREDENTIALS_LOGIN_ENABLED` | `true` | Enables/disables authentication with basic credentials. Username and passwords are stored encrypted at rest within the postgres database. Checkout the [auth docs](/docs/configuration/auth/overview) for more info
| -| `AUTH_EMAIL_CODE_LOGIN_ENABLED` | `false` |Enables/disables authentication with a login code that's sent to a users email. `SMTP_CONNECTION_URL` and `EMAIL_FROM_ADDRESS` must also be set. Checkout the [auth docs](/docs/configuration/auth/overview) for more info
| +| `AUTH_CREDENTIALS_LOGIN_ENABLED` | `true` |Enables/disables authentication with basic credentials. Username and passwords are stored encrypted at rest within the postgres database. Checkout the [auth docs](/docs/configuration/auth/authentication) for more info
| +| `AUTH_EMAIL_CODE_LOGIN_ENABLED` | `false` |Enables/disables authentication with a login code that's sent to a users email. `SMTP_CONNECTION_URL` and `EMAIL_FROM_ADDRESS` must also be set. Checkout the [auth docs](/docs/configuration/auth/authentication) for more info
| | `AUTH_SECRET` | Automatically generated at startup if no value is provided. Generated using `openssl rand -base64 33` |Used to validate login session cookies
| | `AUTH_SESSION_MAX_AGE_SECONDS` | `2592000` (30 days) |Relative time from now in seconds when to expire the session.
| | `AUTH_SESSION_UPDATE_AGE_SECONDS` | `86400` (1 day) |How often the session should be updated in seconds. If set to `0`, session is updated every time.
| @@ -43,7 +43,7 @@ The following environment variables allow you to configure your Sourcebot deploy | `SOURCEBOT_LOG_LEVEL` | `info` |The Sourcebot logging level. Valid values are `debug`, `info`, `warn`, `error`, in order of severity.
| | `SOURCEBOT_STRUCTURED_LOGGING_ENABLED` | `false` |Enables/disable structured JSON logging. See [this doc](/docs/configuration/structured-logging) for more info.
| | `SOURCEBOT_STRUCTURED_LOGGING_FILE` | - |Optional file to log to if structured logging is enabled
| -| `SOURCEBOT_TELEMETRY_DISABLED` | `false` |Enables/disables telemetry collection in Sourcebot. See [this doc](/docs/overview#telemetry) for more info.
| +| `SOURCEBOT_TELEMETRY_DISABLED` | `false` |Enables/disables telemetry collection in Sourcebot. See [this doc](/docs/misc/telemetry) for more info.
| | `DEFAULT_MAX_MATCH_COUNT` | `10000` |The default maximum number of search results to return when using search in the web app.
| | `ALWAYS_INDEX_FILE_PATTERNS` | - |A comma separated list of glob patterns matching file paths that should always be indexed, regardless of size or number of trigrams.
| | `NODE_USE_ENV_PROXY` | `0` |Enables Node.js to automatically use `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment variables for network requests. Set to `1` to enable or `0` to disable. See [this doc](https://nodejs.org/en/learn/http/enterprise-network-configuration) for more info.
| diff --git a/docs/docs/configuration/idp.mdx b/docs/docs/configuration/idp.mdx index 52c342498..e99c12640 100644 --- a/docs/docs/configuration/idp.mdx +++ b/docs/docs/configuration/idp.mdx @@ -5,7 +5,7 @@ sidebarTitle: External identity providers import LicenseKeyRequired from '/snippets/license-key-required.mdx' -
- - `"Contents" repository permissions (read)` (only needed if using the app to [authenticate a connection](/docs/connections/github#github-app))
+ - `"Contents" repository permissions (read)` (only needed if using the app to [authenticate a connection](/docs/connections/github#authenticating-with-github))
diff --git a/docs/docs/connections/ado-cloud.mdx b/docs/docs/connections/ado-cloud.mdx
index b1d12d5e3..6808817b3 100644
--- a/docs/docs/connections/ado-cloud.mdx
+++ b/docs/docs/connections/ado-cloud.mdx
@@ -6,7 +6,7 @@ icon: https://www.svgrepo.com/show/448307/azure-devops.svg
import AzureDevopsSchema from '/snippets/schemas/v3/azuredevops.schema.mdx'
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Examples
diff --git a/docs/docs/connections/ado-server.mdx b/docs/docs/connections/ado-server.mdx
index 09a592e7f..61d243e54 100644
--- a/docs/docs/connections/ado-server.mdx
+++ b/docs/docs/connections/ado-server.mdx
@@ -6,7 +6,7 @@ icon: https://www.svgrepo.com/show/448307/azure-devops.svg
import AzureDevopsSchema from '/snippets/schemas/v3/azuredevops.schema.mdx'
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Examples
diff --git a/docs/docs/connections/bitbucket-cloud.mdx b/docs/docs/connections/bitbucket-cloud.mdx
index dfa620565..755b4f85f 100644
--- a/docs/docs/connections/bitbucket-cloud.mdx
+++ b/docs/docs/connections/bitbucket-cloud.mdx
@@ -10,7 +10,7 @@ import BitbucketSchema from '/snippets/schemas/v3/bitbucket.schema.mdx'
Looking for docs on Bitbucket Data Center? See [this doc](/docs/connections/bitbucket-data-center).
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Examples
diff --git a/docs/docs/connections/bitbucket-data-center.mdx b/docs/docs/connections/bitbucket-data-center.mdx
index be536e9e9..c14e81bcc 100644
--- a/docs/docs/connections/bitbucket-data-center.mdx
+++ b/docs/docs/connections/bitbucket-data-center.mdx
@@ -10,7 +10,7 @@ import BitbucketSchema from '/snippets/schemas/v3/bitbucket.schema.mdx'
Looking for docs on Bitbucket Cloud? See [this doc](/docs/connections/bitbucket-cloud).
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Examples
diff --git a/docs/docs/connections/generic-git-host.mdx b/docs/docs/connections/generic-git-host.mdx
index 4ebf363b6..585bf0eb3 100644
--- a/docs/docs/connections/generic-git-host.mdx
+++ b/docs/docs/connections/generic-git-host.mdx
@@ -5,13 +5,13 @@ icon: git-alt
import GenericGitHost from '/snippets/schemas/v3/genericGitHost.schema.mdx'
-Sourcebot can sync code from any Git host (by clone url). This is helpful when you want to search code that not in a [supported code host](/docs/connections/overview#platform-connection-guides).
+Sourcebot can sync code from any Git host (by clone url). This is helpful when you want to search code that not in a [supported code host](/docs/connections/indexing-your-code#platform-connection-guides).
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Getting Started
-To connect to a Git host, create a new [connection](/docs/connections/overview) with type `git` and specify the clone url in the `url` property. For example:
+To connect to a Git host, create a new [connection](/docs/connections/indexing-your-code) with type `git` and specify the clone url in the `url` property. For example:
```json
{
diff --git a/docs/docs/connections/gerrit.mdx b/docs/docs/connections/gerrit.mdx
index ae90104ee..0db4dace3 100644
--- a/docs/docs/connections/gerrit.mdx
+++ b/docs/docs/connections/gerrit.mdx
@@ -10,7 +10,7 @@ import GerritSchema from '/snippets/schemas/v3/gerrit.schema.mdx'
Sourcebot can sync code from self-hosted gerrit instances.
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Connecting to a Gerrit instance
diff --git a/docs/docs/connections/gitea.mdx b/docs/docs/connections/gitea.mdx
index 1c589c413..b21e35d51 100644
--- a/docs/docs/connections/gitea.mdx
+++ b/docs/docs/connections/gitea.mdx
@@ -8,7 +8,7 @@ import GiteaSchema from '/snippets/schemas/v3/gitea.schema.mdx'
Sourcebot can sync code from Gitea Cloud, and self-hosted.
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Examples
diff --git a/docs/docs/connections/github.mdx b/docs/docs/connections/github.mdx
index 5f03fef96..fd5fbbb42 100644
--- a/docs/docs/connections/github.mdx
+++ b/docs/docs/connections/github.mdx
@@ -9,7 +9,7 @@ import LicenseKeyRequired from '/snippets/license-key-required.mdx'
Sourcebot can sync code from GitHub.com, GitHub Enterprise Server, and GitHub Enterprise Cloud.
-If you're not familiar with Sourcebot [connections](/docs/connections/overview), please read that overview first.
+If you're not familiar with Sourcebot [connections](/docs/connections/indexing-your-code), please read that overview first.
## Examples
@@ -161,7 +161,7 @@ In order to index private repositories, you'll need to authenticate with GitHub.
[GitHub docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#fine-grained-personal-access-tokens)
+
+
+## Option 2: Manual steps
+
+### Obtain the Docker Compose file
+
+Download the [docker-compose.yml](https://github.com/sourcebot-dev/sourcebot/blob/main/docker-compose.yml) file from the Sourcebot repository.
+
+```bash wrap icon="terminal"
+curl -o docker-compose.yml https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml
+```
+
+### Create a config.json
+
+In the same directory as the `docker-compose.yml` file, create a [configuration file](/docs/configuration/config-file). The configuration file is a JSON file that configures Sourcebot's behaviour, including which repos to index, what language models to use, and more.
+
+```bash wrap icon="terminal" Create example config
+touch config.json
+echo '{
+ "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
+ // Comments are supported.
+ // This config creates a single connection to GitHub.com that
+ // indexes the Sourcebot repository
+ "connections": {
+ "starter-connection": {
+ "type": "github",
+ "repos": [
+ "sourcebot-dev/sourcebot"
+ ]
+ }
+ }
+}' > config.json
+```
+
+### Launch your instance
+
+Update the secrets in the `docker-compose.yml` and then run Sourcebot using:
+
+```bash wrap icon="terminal"
+docker compose up
+```
+
+Navigate to [http://localhost:3000](http://localhost:3000) to access your Sourcebot instance.
## Next steps
+Congrats, you've deployed Sourcebot! Check out the following guides to learn more.
+
+#### Configuration
+
+
diff --git a/docs/docs/features/ask/connectors.mdx b/docs/docs/features/ask/connectors.mdx
new file mode 100644
index 000000000..d962f25a0
--- /dev/null
+++ b/docs/docs/features/ask/connectors.mdx
@@ -0,0 +1,65 @@
+---
+title: Connectors
+---
+
+Connectors let Ask Sourcebot access your apps and services so it can answer questions and take action on your behalf.
+
+They communicate over MCP and use the same permission boundaries as the connected user. This means a connector can only retrieve data that the user is authorized to access.
+
+Once [configured](#configuration), connectors make Ask Sourcebot more useful across your workflow. For example, Ask Sourcebot can help identify the root cause of a bug in your codebase, then create a Linear or Jira
+issue with the findings and a link to the chat so teammates can pick up where you left off.
+
+## Usage
+
+From the Ask page, you can choose which connectors are available for each chat.
+
+Turn off a connector to prevent Ask Sourcebot from using it in that chat.
+
+
+
+
+
+During a chat, Ask Sourcebot shows each connector tool it uses.
+
+If Ask Sourcebot needs to use a tool that requires approval, it pauses and asks for your permission before continuing.
+
+
+
+
+
+## Configuration
+
+An owner must add a connector before organization members can use it.
+
+To add a connector:
+1. **Settings → Workspace → Ask Agent**
+2. Click **Add connector**.
+3. Enter the MCP server URL and the name the organization will see for this server.
+
+Most MCP servers support dynamic client registration. When this is available, Sourcebot registers with the server automatically.
+
+Some MCP servers require a pre-registered OAuth app instead. In that case, an owner must register Sourcebot with the connector platform first,
+then enter the OAuth client ID and client secret in Sourcebot.
+
+
+
+
+
+