From e8ce58a89289e0992392ccdee178845c280866d0 Mon Sep 17 00:00:00 2001 From: aditiabhang Date: Thu, 17 Sep 2026 13:46:23 -0400 Subject: [PATCH 1/2] Update docs latest version to 8.0 Amp-Thread-ID: https://ampcode.com/threads/T-01a0b075-bcec-75dc-8799-4430234750c6 Co-authored-by: Amp --- docs.config.js | 2 +- docs/legacy.mdx | 1 + src/data/versions.ts | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs.config.js b/docs.config.js index 5fec13fd4..f5ca0dd01 100644 --- a/docs.config.js +++ b/docs.config.js @@ -1,5 +1,5 @@ const config = { - DOCS_LATEST_VERSION: '7.7' + DOCS_LATEST_VERSION: '8.0' }; module.exports = config; diff --git a/docs/legacy.mdx b/docs/legacy.mdx index 623c04aa1..ff7b401b4 100644 --- a/docs/legacy.mdx +++ b/docs/legacy.mdx @@ -6,6 +6,7 @@ +- [7.7](https://7.7.sourcegraph.com) - [7.6](https://7.6.sourcegraph.com) - [7.5](https://7.5.sourcegraph.com) - [7.4](https://7.4.sourcegraph.com) diff --git a/src/data/versions.ts b/src/data/versions.ts index c8ae90f08..d7f2505cb 100644 --- a/src/data/versions.ts +++ b/src/data/versions.ts @@ -11,7 +11,11 @@ export const versions: VersionI[] = [ { name: `v${config.DOCS_LATEST_VERSION}`, label: 'latest', - url: '/docs' + url: 'https://sourcegraph.com/docs' + }, + { + name: 'v7.7', + url: 'https://7.7.sourcegraph.com' }, { name: 'v7.6', From bdeb389cc589c8dd8361fd544c28fb7c816914c5 Mon Sep 17 00:00:00 2001 From: Aditi Abhang <51350594+aditiabhang@users.noreply.github.com> Date: Thu, 17 Sep 2026 14:57:55 -0400 Subject: [PATCH 2/2] Change latest version URL to relative path Updated the URL for the latest version to a relative path as suggested --- src/data/versions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/versions.ts b/src/data/versions.ts index d7f2505cb..f36a7442c 100644 --- a/src/data/versions.ts +++ b/src/data/versions.ts @@ -11,7 +11,7 @@ export const versions: VersionI[] = [ { name: `v${config.DOCS_LATEST_VERSION}`, label: 'latest', - url: 'https://sourcegraph.com/docs' + url: '/docs' }, { name: 'v7.7',