Skip to content

Commit f1149ed

Browse files
committed
Fixes upgrade errors
1 parent cec59a1 commit f1149ed

File tree

34 files changed

+1247
-1631
lines changed

34 files changed

+1247
-1631
lines changed

contentlayer.config.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

docs/admin/config/settings.schema.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/admin/config/site.schema.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/admin/deploy/docker-compose/upgrade.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Upgrade Sourcegraph on Docker Compose
42

53
This document describes the process to update a Docker Compose Sourcegraph instance. If you are unfamiliar with sourcegraph versioning or releases see our [general concepts documentation](/admin/updates/).
@@ -12,7 +10,7 @@ A [standard upgrade](/admin/updates/#upgrade-types) occurs between a Sourcegraph
1210

1311
If you've [configured Docker Compose with a release branch](/admin/deploy/docker-compose/#step-1-prepare-the-deployment-repository), please merge the upstream release tag for the next minor version into your `release` branch.
1412

15-
In the following example, the release branch is being upgraded to {CURRENT_VERSION_STRING()}.
13+
In the following example, the release branch is being upgraded to.
1614

1715
```sh
1816
# first, checkout the release branch
@@ -28,9 +26,9 @@ git merge {CURRENT_VERSION}
2826

2927
For each conflict, you need to reconcile any customizations you made with the updates from the new version. Use the information you gathered earlier from the change log and changes list to interpret the merge conflict and to ensure that it doesn't over-write your customizations. You may need to update your customizations to accommodate the new version.
3028

31-
> NOTE: If you have made no changes or only very minimal changes to your configuration, you can also ask git to always select incoming changes in the event of merge conflicts. In the following example merges will be accepted from the upstream version {CURRENT_VERSION_STRING()}:
29+
> NOTE: If you have made no changes or only very minimal changes to your configuration, you can also ask git to always select incoming changes in the event of merge conflicts. In the following example merges will be accepted from the upstream version :
3230
>
33-
> `git merge -X theirs {CURRENT_VERSION_STRING}`
31+
> `git merge -X theirs`
3432
>
3533
> If you do this, make sure your configuration is correct before proceeding because it may have made changes to your docker-compose YAML file.
3634

docs/admin/deploy/docker-single-container/aws.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Install single-container Sourcegraph with Docker on AWS
42

53
This tutorial shows you how to deploy [single-container Sourcegraph with Docker](/admin/deploy/docker-single-container/) to a single EC2 instance on AWS.

docs/admin/deploy/docker-single-container/digitalocean.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Install single-container Sourcegraph with Docker on DigitalOcean
42

53
This tutorial shows you how to deploy [single-container Sourcegraph with Docker](/admin/deploy/docker-single-container/) to a single node running on DigitalOcean.

docs/admin/deploy/docker-single-container/google_cloud.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Install single-container Sourcegraph with Docker on Google Cloud
42

53
This tutorial shows you how to deploy [single-container Sourcegraph with Docker](/admin/deploy/docker-single-container/) to a single node running on Google Cloud.

docs/admin/deploy/docker-single-container/index.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Docker Single Container Deployment
42

53
The Docker Single Container deployment type is a way to very quickly get an instance of Sourcegraph set up locally to experiment with many of its features. However, it is **not recommended** for a production instance, and **has limitations** depending on the OS you are deploying to, as well as the associated resources. See the [troubleshooting section](#troubleshooting) for additional information.
@@ -296,7 +294,7 @@ Sourcegraph can be **tested** on Windows 10 using roughly the same steps provide
296294
1. [Install Docker for Windows](https://docs.docker.com/docker-for-windows/install/)
297295
2. Using a command prompt, follow the same [installation steps provided above](#install-sourcegraph-with-docker) but remove the `--volume` arguments. For example by pasting this:
298296

299-
<pre class="pre-wrap"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> sourcegraph/server:{CURRENT_VERSION_STRING_NO_V()}</code></pre>
297+
<pre class="pre-wrap"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> sourcegraph/server</code></pre>
300298

301299
### Low resource environments
302300

docs/admin/deploy/kubernetes/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Sourcegraph on Kubernetes with Helm
42

53
Best for large enterprises that require a multi-node, self-hosted solution.

docs/admin/deploy/machine-images/gce.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Sourcegraph Google Compute Instances
42

53
Sourcegraph [Google Compute Engine (GCE) Images](https://cloud.google.com/compute/docs/images) allow you to quickly deploy a production-ready Sourcegraph instance tuned to your organization's scale in just a few clicks.

docs/admin/deploy/repositories.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Reference Repositories
42

53
Sourcegraph provides reference repositories with branches corresponding to the version of Sourcegraph you wish to deploy for each supported deployment type. The reference repository contains everything you need to spin up and configure your instance depending on your deployment type.
@@ -64,7 +62,7 @@ You can now deploy using your private copy of the repository you've just created
6462

6563
Before you can upgrade Sourcegraph, you will first update your private copy with the upstream branch, and then merge the upstream release tag for the next minor version into your release branch.
6664

67-
In the following example, the release branch is being upgraded to {CURRENT_VERSION_STRING()}.
65+
In the following example, the release branch is being upgraded to.
6866

6967
```bash
7068
export YOUR_RELEASE_BRANCH=release-$SG_DEPLOY_VERSION

docs/admin/external_services/postgres.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Using your own PostgreSQL server
42

53
You can use your own PostgreSQL v16+ server with Sourcegraph if you wish. For example, you may prefer this if you already have existing backup infrastructure around your own PostgreSQL server, wish to use Amazon RDS, etc.
@@ -150,7 +148,7 @@ When [PgBouncer] is used, we need to include `statement_cache_mode=describe` in
150148

151149
Add the following to your `docker run` command:
152150

153-
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:password@sourcegraph-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:password@sourcegraph-codeintel-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:{CURRENT_VERSION_STRING_NO_V()}</code></pre>
151+
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:password@sourcegraph-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:password@sourcegraph-codeintel-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:</code></pre>
154152

155153
### Docker Compose
156154

docs/admin/http_https_configuration.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Sourcegraph HTTP and HTTPS/SSL configuration
42

53
Overview:

docs/admin/ssl_https_self_signed_cert_nginx.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Adding SSL (HTTPS) to Sourcegraph with a self-signed certificate
42

53
This is for external Sourcegraph instances that need a self-signed certificate because they don't yet have a certificate from a [globally trusted Certificate Authority (CA)](https://en.wikipedia.org/wiki/Certificate_authority#Providers). It includes how to get the self-signed certificate trusted by your browser.

docs/admin/updates/grpc/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
# Sourcegraph 5.3 gRPC Configuration Guide
42

53
## Overview

docs/cli/explanations/versioning.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2-
31
## Installation & versioning
42

53
Binary downloads are available on the [releases tab](https://github.com/sourcegraph/src-cli/releases), and through Sourcegraph.com. _If the latest version does not work for you,_ consider using the version compatible with your Sourcegraph instance instead.

next.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const config = require('./docs.config.js');
2-
const {withContentlayer} = require('next-contentlayer');
32
const {updatedRedirectsData} = require('./src/data/redirects.ts');
43
const {generateRssFeed} = require('./dev/rss');
54
/** @type {import('next').NextConfig} */
@@ -14,6 +13,8 @@ const nextConfig = {
1413
// https://vercel.com/docs/projects/environment-variables/system-environment-variables
1514
// basePath: process.env.VERCEL_ENV === 'production' ? '/docs' : '',
1615
basePath: process.env.VERCEL_ENV === 'production' ? '/docs' : '',
16+
// Add transpilePackages for next-mdx-remote if using Turbopack
17+
transpilePackages: ['next-mdx-remote'],
1718
// async redirects() {
1819
// return [
1920
// ...updatedRedirectsData,
@@ -49,5 +50,5 @@ const nextConfig = {
4950
module.exports = async () => {
5051
// placing this here so its part of nextjs's build process
5152
await generateRssFeed();
52-
return withContentlayer(nextConfig);
53+
return nextConfig;
5354
};

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@algolia/client-search": "^4.22.1",
1818
"@baseai/core": "^0.9.40",
1919
"@docsearch/react": "3",
20-
"@headlessui/react": "^1.7.13",
20+
"@headlessui/react": "^2.2.2",
2121
"@heroicons/react": "^2.0.18",
2222
"@langbase/components": "^0.1.5",
2323
"@mdx-js/mdx": "^3.0.1",
@@ -34,35 +34,36 @@
3434
"autoprefixer": "^10.4.12",
3535
"class-variance-authority": "^0.7.0",
3636
"clsx": "^1.2.1",
37-
"contentlayer": "^0.3.4",
3837
"date-fns": "^2.30.0",
3938
"fast-glob": "^3.2.12",
4039
"feed": "^4.2.2",
4140
"flexsearch": "^0.7.31",
4241
"github-slugger": "^2.0.0",
42+
"gray-matter": "^4.0.3",
4343
"js-yaml": "^4.1.0",
4444
"kbar": "^0.1.0-beta.44",
4545
"langbase": "^1.1.26",
4646
"lucide-react": "^0.372.0",
4747
"mdx": "^0.3.1",
4848
"next": "^15.1.6",
49-
"next-contentlayer": "^0.3.4",
49+
"next-mdx-remote": "^5.0.0",
5050
"next-themes": "^0.2.1",
5151
"prism-react-renderer": "^2.0.6",
5252
"react": "19.0.0",
5353
"react-dom": "19.0.0",
5454
"react-highlight-words": "^0.20.0",
5555
"react-syntax-highlighter": "^15.5.0",
5656
"rehype-autolink-headings": "^7.1.0",
57-
"rehype-pretty-code": "^0.10.2",
57+
"rehype-pretty-code": "^0.14.1",
5858
"rehype-slug": "^6.0.0",
5959
"rehype-toc": "^3.0.2",
60-
"remark-gfm": "3.0.1",
61-
"shiki": "^0.14.5",
60+
"remark-gfm": "4.0.1",
61+
"shiki": "^3.3.0",
6262
"simple-functional-loader": "^1.2.1",
6363
"tailwind-merge": "^2.3.0",
6464
"tailwindcss": "^3.3.3",
6565
"tailwindcss-animate": "^1.0.7",
66+
"ts-node": "^10.9.2",
6667
"typescript": "5.7.2",
6768
"unist-util-visit": "^5.0.0"
6869
},

0 commit comments

Comments
 (0)