From 13e9f4edaa9a5a95f673de5871138b1f429e8303 Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Date: Mon, 19 Oct 2026 21:42:18 +0000 Subject: [PATCH] docs: Remove the Sourcegraph.com docs The /dotcom pages described Sourcegraph.com's mission and open source index, which no longer reflect the company's direction. - Delete docs/dotcom/ - Redirect the /dotcom URLs to the docs home - Drop the pages' Algolia product mapping Co-authored-by: Amp Amp-Thread-ID: https://ampcode.com/threads/T-01a1561c-0b8e-707d-937b-1b99cf0699a5 --- dev/algolia-index.mjs | 1 - docs/dotcom/index.mdx | 13 ------------- docs/dotcom/indexing-open-source-code.mdx | 11 ----------- src/data/redirects.ts | 18 ++++++++++++++---- 4 files changed, 14 insertions(+), 29 deletions(-) delete mode 100644 docs/dotcom/index.mdx delete mode 100644 docs/dotcom/indexing-open-source-code.mdx diff --git a/dev/algolia-index.mjs b/dev/algolia-index.mjs index 95b766604..2143f7c00 100644 --- a/dev/algolia-index.mjs +++ b/dev/algolia-index.mjs @@ -71,7 +71,6 @@ const indexName = option('--index', DEFAULT_INDEX); const FALLBACK_PRODUCTS = [ {prefix: '/getting-started', product: 'Getting started', section: 'Documentation'}, {prefix: '/how-to', product: 'How-to guides', section: 'Documentation'}, - {prefix: '/dotcom', product: 'Sourcegraph.com', section: 'Documentation'}, {prefix: '/releases', product: 'Releases', section: 'Documentation'}, {prefix: '/pricing', product: 'Pricing', section: 'Resources'} ]; diff --git a/docs/dotcom/index.mdx b/docs/dotcom/index.mdx deleted file mode 100644 index dc69b5437..000000000 --- a/docs/dotcom/index.mdx +++ /dev/null @@ -1,13 +0,0 @@ -# Sourcegraph.com - -[Sourcegraph.com](https://sourcegraph.com/search) lets you search 2 million open source repositories. - -To use Sourcegraph on your own (private) code, [use Sourcegraph Cloud](/cloud/) or [deploy self-hosted Sourcegraph](/self-hosted/deploy/). - -- [Indexing open source code in Sourcegraph.com](/dotcom/indexing-open-source-code) - -> Note: Sourcegraph.com is a special instance of Sourcegraph with some different behavior compared to that on Sourcegraph Cloud and self-hosted instances. If you're curious about the differences, search our codebase for [`envvar.SourcegraphDotComMode()`](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+envvar.SourcegraphDotComMode%28%29&patternType=keyword). -> -> For example, global searches do not search unindexed code by default on sourcegraph.com, whereas on a cloud or self-hosted instance this isn't the case. -> -> To learn more about where dotcom handles things differently checkout use of the [SourcegraphDotcomMode](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+%22if+envvar.SourcegraphDotComMode%28%29%22&patternType=keyword) env var in our codebase! diff --git a/docs/dotcom/indexing-open-source-code.mdx b/docs/dotcom/indexing-open-source-code.mdx deleted file mode 100644 index 65be91b1b..000000000 --- a/docs/dotcom/indexing-open-source-code.mdx +++ /dev/null @@ -1,11 +0,0 @@ -# Indexing the OSS universe - -Sourcegraph is on a mission to [make coding more accessible to the world](https://handbook.sourcegraph.com/company/strategy). - -In order to execute this mission, Sourcegraph has committed to indexing open source repositories from various code hosts including GitLab and GitHub. By indexing these repositories, Sourcegraph allows any engineer to tap into the knowledge of the open source universe near-instantaneously. You can read more about our [decision to do this](https://about.sourcegraph.com/blog/indexing-the-oss-universe-update-more-code-hosts/). - -Sourcegraph's open source code index includes more than 2 million repositories, and searching these open source repositories is available for free on [Sourcegraph.com](https://sourcegraph.com/search). - -## Opting out - -We believe that having the universe of open source code available all in one place will prove to be an asset for many developers; however, we also understand that this may raise concerns among open source contributors. While we do not offer the ability to opt out of our open source code index today, it is something that we have heard requested from the community. Our teams are exploring solutions and are eager to partner with the larger community on how we implement an opt-out. This section will be updated as soon as we have more information to provide, but in the meantime, please reach out to us at [feedback@sourcegraph.com](mailto:feedback@sourcegraph.com). diff --git a/src/data/redirects.ts b/src/data/redirects.ts index ebcf90d06..4c1727167 100644 --- a/src/data/redirects.ts +++ b/src/data/redirects.ts @@ -3996,10 +3996,6 @@ const redirectsData = [ source: '/code-search/working/search_subexpressions', destination: '/code-search/working/search-subexpressions' }, - { - source: '/dotcom/indexing_open_source_code', - destination: '/dotcom/indexing-open-source-code' - }, { source: '/integration/aws_codecommit', destination: '/integration/aws-codecommit' @@ -4343,6 +4339,20 @@ const redirectsData = [ source: '/legacy', destination: '/releases' }, + // The Sourcegraph.com pages described the public instance and its open + // source index, and are no longer maintained + { + source: '/dotcom', + destination: '/' + }, + { + source: '/dotcom/indexing-open-source-code', + destination: '/' + }, + { + source: '/dotcom/indexing_open_source_code', + destination: '/' + }, ]; const updatedRedirectsData = redirectsData.map(redirect => {