Skip to content

Commit 6d0d6ab

Browse files
authored
Merge branch 'main' into ask-ai
2 parents 6ad9831 + a291dd9 commit 6d0d6ab

28 files changed

+699
-194
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Sourcegraph Docs
22

3-
<!-- Working branch for August Release -->
4-
<!-- This is the PR to ship AI in docs -->
3+
4+
<!-- Working branch for September 2024 Release -->
5+
56

67
Welcome to the Sourcegraph documentation! We're excited to have you contribute to our docs. We've recently rearchitectured our docs tech stack — powered by Next.js, TailwindCSS and deployed on Vercel. This guide will walk you through the process of contributing to our documentation using the new tech stack.
78

docs.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
DOCS_LATEST_VERSION: '5.6'
2+
DOCS_LATEST_VERSION: '5.7'
33
};
44

55
module.exports = config;

docs/CHANGELOG.mdx

Lines changed: 440 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Webhooks
22

33
- [Incoming webhooks](/admin/config/webhooks/incoming)
4-
- [Outgoing webhooks](/admin/config/webhooks/outgoing) (Beta)
4+
- [Outgoing webhooks](/admin/config/webhooks/outgoing)

docs/admin/config/webhooks/outgoing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Outgoing webhooks
22

3-
<Callout type="note"> This feature is currently in beta and supported on Sourcegraph versions 5.0 or more.</Callout>
3+
<Callout type="note"> This feature is supported on Sourcegraph versions 5.0 or more.</Callout>
44

55
Outgoing webhooks can be configured on a Sourcegraph instance in order to send Sourcegraph events to external tools and services. This allows for deeper integrations between Sourcegraph and other applications.
66

docs/admin/index.mdx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
# Administration
22

3-
Administration is usually handled by site administrators are the admins responsible for deploying, managing, and configuring Sourcegraph for regular users. They have [special privileges](/admin/privileges) on a Sourcegraph instance. Check out this [quickstart guide](/admin/how-to/site-admin-quickstart) for more info on Site Administration.
3+
Sourcegraph administration is primarily managed by site administrators, who are responsible for the deployment, management, and configuration of Sourcegraph instances for end users. For a comprehensive introduction to site administration, refer to our [quickstart guide](/admin/how-to/site-admin-quickstart).
4+
45

56
## [Deploy Sourcegraph](/admin/deploy/)
67

8+
Get started running Sourcegraph on-prem.
9+
710
- [Deployment overview](/admin/deploy/)
8-
- [Kubernetes with Helm](/admin/deploy/kubernetes/)
9-
- [See all deployment options](/admin/deploy/#deployment-types)
1011
- [Best practices](/admin/deployment_best_practices)
11-
- [Using external services (PostgreSQL, Redis, S3/GCS)](/admin/external_services/)
12-
- [Deploying Executors](/admin/executors/deploy_executors)
13-
- [Validation](/admin/validation) (experimental)
12+
- [Validate a Sourcegraph deployment](/admin/validation) (experimental)
1413

1514
## [Upgrade Sourcegraph](/admin/updates/)
1615

17-
> NOTE: The Sourcegraph [`migrator`](/admin/updates/migrator/migrator-operations) service can now perform upgrades across [multiple versions](/admin/updates/#multi-version-upgrades) on any instance 3.20 or later.
18-
19-
- [Upgrade Sourcegraph](/admin/updates/)
20-
- [Single-minor-version "standard" upgrades](/admin/updates/#standard-upgrades)
21-
- [Multi-version upgrades](/admin/updates/#multi-version-upgrades)
22-
- [Migration guides](/admin/migration/)
16+
- [Upgrade Overview](/admin/updates/)
17+
- [Migrate to Sourcegraph](/admin/migration/)
2318
- [Upgrading PostgreSQL](/admin/postgres#upgrading-postgresql)
2419

2520
## [Configure Sourcegraph](/admin/config/)
2621

2722
- [Site Administrator Quickstart](/admin/how-to/site-admin-quickstart)
2823
- [Integrations](/integration/)
29-
- [Adding Git repositories](/admin/repo/add) (from a code host or clone URL)
24+
- [Add Git repositories](/admin/repo/add) (from a code host or clone URL)
3025
- [Monorepo](/admin/monorepo)
3126
- [Repository webhooks](/admin/repo/webhooks)
3227
- [HTTP and HTTPS/SSL configuration](/admin/http_https_configuration)

docs/admin/updates/index.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Sourcegraph releases have three digits, for example: `v5.0.3`
2222
| minor | `0` |
2323
| patch | `3` |
2424

25-
For more details on our release candence, refer to the [Sourcegraph handbook](https://handbook.sourcegraph.com/departments/engineering/dev/process/releases/#sourcegraph-releases).
25+
For more details on our release cadence, refer to the [Sourcegraph handbook](https://handbook.sourcegraph.com/departments/engineering/dev/process/releases/#sourcegraph-releases).
2626

2727
Generally, we ship a new version of Sourcegraph with new features and bug fixes monthly, followed by a patch release later that month. Major and minor releases happen less frequently and contain substantial changes to Sourcegraph.
2828

@@ -44,17 +44,17 @@ Sourcegraph has two upgrade types. **Standard** upgrades and **Multiversion** up
4444

4545
> *Note: Patch versions don't determine upgrade type -- you should always upgrade to the latest patch.*
4646
47-
| From Version | To Version | Upgrade Type | Notes |
48-
|--------------|------------|--------------|--------------------------------------|
49-
| `v5.0.0` | `v5.1.0` | Standard | A minor version |
50-
| `v5.0.0` | `v5.2.0` | Multiversion | Two minor versions |
51-
| `v3.41.0` | `v3.42.2` | Standard | A minor version and patch version |
52-
| `v5.1.0` | `v5.1.3` | Standard | Multiple patch versions |
47+
| From Version | To Version | Upgrade Type | Notes |
48+
|--------------|------------|--------------|------------------------------------------------------|
49+
| `v5.0.0` | `v5.1.0` | Standard | A minor version |
50+
| `v5.0.0` | `v5.2.0` | Multiversion | Two minor versions |
51+
| `v3.41.0` | `v3.42.2` | Standard | A minor version and patch version |
52+
| `v5.1.0` | `v5.1.3` | Standard | Multiple patch versions |
5353
| `v3.43.0` | `v4.0.0` | Standard | A major version change but only one absolute version |
54-
| `v5.0.0` | `v5.2.2` | Multiversion | Two minor versions and patch |
55-
| `v3.33.0` | `v5.2.0` | Multiversion | Major and minor |
56-
| `v4.5.0` | `v5.0.0` | Standard | This is a major version but only one version change |
57-
| `v4.4.2` | `v5.0.3` | Multiversion | Major, minor, and patch |
54+
| `v5.0.0` | `v5.2.2` | Multiversion | Two minor versions and patch |
55+
| `v3.33.0` | `v5.2.0` | Multiversion | Major and minor |
56+
| `v4.5.0` | `v5.0.0` | Standard | This is a major version but only one version change |
57+
| `v4.4.2` | `v5.0.3` | Multiversion | Major, minor, and patch |
5858

5959
> *Note:*
6060
> - *Our major releases do not occur on a consistent interval, so make sure to check our changelog if you aren't certain about whether a major version is multiple minor versions away from your current version. You can also reach out to our support team [[email protected]](mailto:[email protected])*
@@ -78,7 +78,7 @@ It is highly recommended to:
7878
Sourcegraph upgrades take the following general form:
7979
1. Determine if your instance is ready to Upgrade (check upgrade notes)
8080
2. Merge the latest Sourcegraph release into your deployment manifests
81-
3. If updating more than a single minor version, perform an [**automatic multi-version upgrade**]/admin/updates/automatic) if targeting **Sourcegraph 5.1 or later**; [manual multi-verison upgrades]/admin/updates/migrator/migrator-operations) are required if upgrading to an earlier version, which requires shutting off the instance and invoking the `migrator` container or job to perform the database rewrite and application of unfinished out-of-band migrations
81+
3. If updating more than a single minor version, perform an [**automatic multi-version upgrade**]/admin/updates/automatic) if targeting **Sourcegraph 5.1 or later**; [manual multi-version upgrades]/admin/updates/migrator/migrator-operations) are required if upgrading to an earlier version, which requires shutting off the instance and invoking the `migrator` container or job to perform the database rewrite and application of unfinished out-of-band migrations
8282
4. With upstream changes to your manifests merged, start the new instance
8383

8484
> Note: For more explicit steps, specific to your deployment see the operations guides linked below.

docs/cloud/private_connectivity_sourcegraph_connect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<Callout type="note">This feature is in the Experimental stage. Please contact Sourcegraph directly via [prefered contact method](https://about.sourcegraph.com/contact) for more information.</Callout>
44

5-
As part of the [Enterprise tier](https://sourcegraph.com/pricing), Sourcegraph Cloud supports connecting private resouces on any on-prem private network by running Sourcegraph Connect tunne agent in customer infrastructure.
5+
As part of the [Enterprise tier](https://sourcegraph.com/pricing), Sourcegraph Cloud supports connecting private resources on any on-prem private network by running Sourcegraph Connect tunnel agent in customer infrastructure.
66

77
## How it works
88

docs/code-search/code-navigation/how-to/index_other_languages.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ Possible errors that can happen during upload include:
7171
- Unknown repository (404): check your `-endpoint` and make sure you can view the repository on your Sourcegraph instance
7272
- Invalid commit (404): try visiting the repository at that commit on your Sourcegraph instance to trigger an update
7373
- Invalid auth when using Sourcegraph.com or when [`lsifEnforceAuth`](/admin/config/site_config#lsifEnforceAuth) is `true` (401 for an invalid token or 404 if the repository cannot be found on GitHub.com): make sure your GitHub token is valid and that the repository is correct
74-
- Unexpected errors (500s): [file an issue](https://github.com/sourcegraph/sourcegraph/issues/new)
74+
- Unexpected errors (500s): reach out to your Sourcegraph support team for assistance

docs/code-search/types/search-jobs.mdx

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
# Search Jobs
22

3-
<p className="subtitle">Use Search Jobs to search code at scale for large-scale organizations.</p>
4-
5-
<Callout type="note" title="Beta"> Search Jobs feature is in Beta stage and only available for Enterprise accounts. It is enabled by default since 5.3.0.</Callout>
3+
Use Search Jobs to search code at scale for large-scale organizations.
64

75
Search Jobs allows you to run search queries across your organization's codebase (all repositories, branches, and revisions) at scale. It enhances the existing Sourcegraph's search capabilities, enabling you to run searches without query timeouts or incomplete results.
86

97
With Search Jobs, you can start a search, let it run in the background, and then download the results from the Search Jobs UI when it's done. Site administrators can **enable** or **disable** the Search Jobs feature, making it accessible to all users on the Sourcegraph instance.
108

9+
## Using Search Jobs
10+
11+
To use Search Jobs, you need to:
12+
13+
- Run a search query from your Sourcegraph instance
14+
- Click the result menu below the search bar to see if your query is supported by Search Jobs
15+
16+
![run-query-for-search-jobs](https://storage.googleapis.com/sourcegraph-assets/Docs/search-jobs/search-jobs-create.png)
17+
18+
- If your query is valid, click **Create a search job** to initiate the search job
19+
- You will be redirected to the "Search Jobs UI" page at `/search-jobs`, where you can view all your created search jobs. If you're a site admin, you can also view search jobs from other users on the instance
20+
21+
![view-search-jobs](https://storage.googleapis.com/sourcegraph-assets/Docs/search-jobs/search-jobs-manage.png)
22+
1123
## Search results format
1224

1325
The downloaded results are formatted as [JSON lines](https://jsonlines.org).
@@ -67,21 +79,6 @@ If you would like to allow your Sourcegraph instance to control the creation and
6779

6880
- `SEARCH_JOBS_UPLOAD_MANAGE_BUCKET=true`
6981

70-
## Using Search Jobs
71-
72-
To use Search Jobs, you need to:
73-
74-
- Run a search query from your Sourcegraph instance
75-
- Click the result menu below the search bar to see if your query is valid for the long search
76-
77-
![run-query-for-search-jobs](https://storage.googleapis.com/sourcegraph-assets/Docs/query-serach-jobs.png)
78-
79-
- If your query is valid, click **Run search job** to initiate the search job
80-
- You will be redirected to the "Search Jobs UI" page at `/search-jobs`, where you can view all your created search jobs. If you're a site admin, you can also view search jobs from other users on the instance
81-
82-
![view-search-jobs](https://storage.googleapis.com/sourcegraph-assets/Docs/view-search-jobs.png)
83-
84-
8582
## Supported result types
8683

8784
Search jobs supports the following result types:
@@ -99,20 +96,20 @@ The following result types are not supported:
9996
The following elements of our query language are not supported:
10097

10198
- file predicates, such as `file:has.content`, `file:has.owner`, `file:has.contributor`, `file:contains.content`
102-
- `.*` regexp search
99+
- catch-all `.*` regexp search
103100
- Multiple `rev` filters
104101
- Queries with `index: filter`
105102

106-
<Callout type="note">The search bar already supports exhaustive searches with the `count:all` operator. However, these searches are subject to lower timeouts, making them harder to use in large codebases.</Callout>
107103

108-
## Disable Search Jobs
104+
<Callout type="note">
105+
Alternatively, the search bar supports the `count:all` operator which increases result limits and timeouts.
106+
This works well if the search completes within a few minutes and the number of results is less than the configured display limit.
107+
For longer running searches and searches with huge result sets, Search Jobs is the better choice.
108+
</Callout>
109109

110-
Follow these steps to disable Search Jobs and to hide the feature in the Sourcegraph UI:
110+
## Disable Search Jobs
111111

112-
- Login to your Sourcegraph instance and go to the site admin
113-
- Next, click the site configuration
114-
- From here, you'll see `experimentalFeatures`
115-
- Set `searchJobs` to `false` and then refresh the page
112+
To disable Search Jobs, set `DISABLE_SEARCH_JOBS=true` in your frontend and worker services.
116113

117114
## FAQ
118115

0 commit comments

Comments
 (0)