Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/analytics/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To get started, visit the [Sourcegraph Analytics access tokens management page](

## API reference

To authenticate to the API, follow the instructions for [token creation](#token-creation).
To authenticate to the API, follow the instructions for [token creation](#access-tokens).

Export your access token as an environment variable:

Expand Down
2 changes: 1 addition & 1 deletion docs/cloud/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ As part of this service you will receive a number of benefits from our team, inc

- Initial resource estimations based on your organization & code size.
- Putting forward a transparent deployment & cost estimate plan.
- Your own `example.sourcegraphcloud.com` domain with fully managed [DNS & HTTPS](/self-hosted/http-https-configuration). Optionally, you can [bring your own domain](#custom-domain).
- Your own `example.sourcegraphcloud.com` domain with fully managed [DNS & HTTPS](/self-hosted/http-https-configuration). Optionally, you can [bring your own domain](#custom-domains).
- Hardware provisioning, software installation, and kernel configuration done for you.
- Direct assistance in:
- [Adding repositories from all of your code hosts to Sourcegraph](/admin/code-hosts/)
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/github-vs-sourcegraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ In addition to searching your organization’s private code, you can use Sourceg

Sourcegraph offers [structural search](/code-search/types/structural), and GitHub code search does not offer this search method. Structural search lets you match richer syntax patterns, specifically in code and structured data formats like JSON. Sourcegraph offers structural search on indexed code and uses [Comby syntax](https://comby.dev/docs/syntax-reference) for structural matching of code blocks or nested expressions. For example, the `fmt.Sprintf` function is a popular print function in Go. [Here](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/about%24+fmt.Sprintf%28...%29&patternType=structural&_ga=2.204781593.827352295.1667227568-1057140468.1661198534&_gac=1.118615675.1665776224.CjwKCAjwkaSaBhA4EiwALBgQaJCOc6GlhIDQyg6HQScgfSBQpoFTUf7T_NNqEX5JaobtCS08GUEJuRoCIlIQAvD_BwE&_gl=1*1r2u5zs*_ga*MTA1NzE0MDQ2OC4xNjYxMTk4NTM0*_ga_E82CCDYYS1*MTY2NzUwODExNC4xMTQuMS4xNjY3NTA5NjUyLjAuMC4w) is a pattern that matches all of the arguments in `fmt.Sprintf` in our code using structural search compared to the [search](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/about%24+fmt.Sprintf%28...%29&patternType=regexp) using regex.

Both GitHub code search and Sourcegraph support regular expression and keyword search. [Regular expression](/code-search/queries#standard-search) helps you find code that matches a pattern (including classes of characters like letters, numbers, and whitespace) and can restrict the results to anchors like the start of a line, the end of a line, or word boundary. Keyword search matches on individual terms, supporting both literal searches and flexible keyword-style queries.
Both GitHub code search and Sourcegraph support regular expression and keyword search. [Regular expression](/code-search/queries#regular-expression-search) helps you find code that matches a pattern (including classes of characters like letters, numbers, and whitespace) and can restrict the results to anchors like the start of a line, the end of a line, or word boundary. Keyword search matches on individual terms, supporting both literal searches and flexible keyword-style queries.

GitHub’s search syntax can be found [here](https://cs.github.com/about/syntax), and Sourcegraph’s search syntax can be found [here](/code-search/queries).

Expand Down Expand Up @@ -221,7 +221,7 @@ Search contexts are an alternative way to narrow down the scope of your search t

You can create custom search contexts to be simple or advanced with GitHub. Simple search contexts are things such as repository or organization name, and advanced search contexts can mix multiple attributes, including languages. GitHub’s search contexts allow for more personalization than Sourcegraph.

With Sourcegraph, a [search context](/code-search/working/search-contexts) represents the body of code that will be searched. Search contexts can be private to the user who creates it or shared with other users on the same Sourcegraph instance. [Query-based ](/code-search/working/search-contexts#beta-query-based-search-contexts)search contexts (beta) are an additional way to create search contexts based on variables like repository, rev, file, lang, case, fork, and visibility. Both [OR] and [AND] expressions are allowed to help further narrow the scope of query-based search contexts.
With Sourcegraph, a [search context](/code-search/working/search-contexts) represents the body of code that will be searched. Search contexts can be private to the user who creates it or shared with other users on the same Sourcegraph instance. [Query-based ](/code-search/working/search-contexts#query-based-search-contexts)search contexts (beta) are an additional way to create search contexts based on variables like repository, rev, file, lang, case, fork, and visibility. Both [OR] and [AND] expressions are allowed to help further narrow the scope of query-based search contexts.

| **Features** | **GitHub** | **Sourcegraph** |
| --------------- | ----------------------- | ------------------------------------ |
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Sourcegraph's main features are:
- [Code Insights](#code-insights): reveal high-level information about your codebase at its current state and over time to track migrations, version usage, vulnerability remediation, ownership, and anything else you can search in Sourcegraph
- [Batch Changes](#batch-changes): make large-scale code changes across many repositories and code hosts
- [Integrations](#integrations) with code hosts, code review tools, editors, web browsers, etc.
- [MCP Server](#mcp-server-integration): Connect AI tools and IDEs to Sourcegraph's code intelligence capabilities through the Model Context Protocol
- [MCP Server](#mcp-server): Connect AI tools and IDEs to Sourcegraph's code intelligence capabilities through the Model Context Protocol

## How do I start using Sourcegraph?

Expand All @@ -71,7 +71,7 @@ Sourcegraph code search is fast, works across all your repositories at any commi
- [Powerful, flexible query syntax](/code-search/queries)
- [Commit diff search](/code-search/features#commit-diff-search)
- [Commit message search](/code-search/features#commit-message-search)
- [Saved search scopes](/code-search/features#search-scopes)
- [Saved search scopes](/code-search/features#saved-searches)
- [Search contexts to search across a set of repositories at specific revisions](/code-search/features#search-contexts)
- [Saved search monitoring](/code-monitoring/)

Expand Down
2 changes: 1 addition & 1 deletion docs/integration/bitbucket-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You can use Sourcegraph with Git repositories hosted on [Bitbucket Server](https
| [Repository syncing](/admin/code-hosts/bitbucket-server) | ✅ |
| [Webhooks](/admin/code-hosts/bitbucket-server#webhooks) | ✅ |
| [Repository permissions](/admin/code-hosts/bitbucket-server#repository-permissions) | ✅ |
| [Sourcegraph Bitbucket Server plugin](#sourcegraph-bitbucket-server-plugin) | ✅ |
| [Sourcegraph Bitbucket Server plugin](#sourcegraph-bitbucket-plugin) | ✅ |
| [Browser extension](#browser-extension) | ✅ |

## Repository syncing
Expand Down
4 changes: 2 additions & 2 deletions docs/integration/gitolite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ You can use Sourcegraph with [Gitolite](http://gitolite.com/).

| Feature | Supported? |
| ------------------------------------------------------------------- | ---------- |
| [Repository syncing](/admin/code-hosts/gitolite#repository-syncing) | ✅ |
| [Repository syncing](/admin/code-hosts/gitolite#configuration) | ✅ |
| [Browser extension](#browser-extension) | ❌ |

## Repository syncing

Site admins can [sync Gitolite repositories to Sourcegraph](/admin/code-hosts/gitolite#repository-syncing).
Site admins can [sync Gitolite repositories to Sourcegraph](/admin/code-hosts/gitolite#configuration).

## Browser extension

Expand Down
6 changes: 3 additions & 3 deletions docs/integration/phabricator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ This Phabricator integration does not support listing and mirroring Phabricator

| Feature | Supported? |
| ------------------------------------------------------------------------------------------------ | ---------- |
| [Repository syncing and mirroring](/admin/code-hosts/phabricator#repository-linking-and-syncing) | ❌ |
| [Repository association](/admin/code-hosts/phabricator#repository-linking-and-syncing) | ✅ |
| [Repository syncing and mirroring](/admin/code-hosts/phabricator#repository-association) | ❌ |
| [Repository association](/admin/code-hosts/phabricator#repository-association) | ✅ |
| [Repository permission syncing](/admin/permissions/syncing) | ❌ |
| [User authentication](/admin/auth/) | ❌ |
| [Browser extension](#browser-extension) | ✅ |
| [Native extension](/admin/code-hosts/phabricator#native-extension) | ✅ |

## Repository association

Site admins can [associate Phabricator repositories with Sourcegraph](/admin/code-hosts/phabricator#repository-syncing-and-linking).
Site admins can [associate Phabricator repositories with Sourcegraph](/admin/code-hosts/phabricator#repository-association).

## Browser extension

Expand Down
2 changes: 1 addition & 1 deletion docs/technical-changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12603,7 +12603,7 @@ The following PRs were merged onto the previous release branch but could not be
### Added

- A new look for Sourcegraph, previously in beta as "Simple UI", is now permanently enabled. [#41021](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/41021)
- A new [multi-version upgrade](/self-hosted/updates#multi-version-upgrades) process now allows Sourcegraph instances to upgrade more than a single minor version. Instances at version 3.20 or later can now jump directly to 4.0. [#40628](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/40628)
- A new [multi-version upgrade](/self-hosted/updates#upgrade-types) process now allows Sourcegraph instances to upgrade more than a single minor version. Instances at version 3.20 or later can now jump directly to 4.0. [#40628](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/40628)
- Matching ranges in file paths are now highlighted for path results and content results. Matching paths in repository names are now highlighted for repository results. [#41296](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/41296) [#41385](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/41385) [#41470](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/41470)
- Aggregations by repository, file, author, and capture group are now provided for search results. [#39643](https://github.com/sourcegraph/sourcegraph-public-snapshot/issues/39643)
- Blob views and search results are now lazily syntax highlighted for better performance. [#39563](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/39563) [#40263](https://github.com/sourcegraph/sourcegraph-public-snapshot/pull/40263)
Expand Down