Skip to content

Commit bb2620e

Browse files
committed
Hackathon attempt to get latest version into docs
Mostly CHOP garbage
1 parent 4aa889c commit bb2620e

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Sourcegraph with Docker Compose
2-
31
Setting up Docker applications with [multiple containers](https://www.docker.com/resources/what-container) like Sourcegraph using Docker Compose allows us to start all the applications with a single command. It also makes configuring the applications easier through updating the docker-compose.yaml and docker-compose.override.yaml files. Please see the [official Docker Compose docs](https://docs.docker.com/compose/) to learn more about Docker Compose.
42

53
This guide will take you through how to install Sourcegraph with Docker Compose on a server, which could be the local machine, a server on a local network, or cloud-hosted server. You can also follow one of the available *cloud-specific guides* listed below to prepare and install Sourcegraph on a supported cloud environment:
@@ -115,9 +113,11 @@ Continue with the following steps *after* you have created a public or private c
115113
- This branch will be used to [upgrade Sourcegraph](/admin/deploy/docker-compose/upgrade) and install your Sourcegraph instance.
116114
- It also allows us to track all of the customizations made to your Sourcegraph instance.
117115

116+
<CurrentVersion/>
117+
118118
```bash
119119
# Specify the version you want to install
120-
export SOURCEGRAPH_VERSION="v5.6.2535"
120+
export SOURCEGRAPH_VERSION="<CurrentVersion/>"
121121
# Check out the selected version for use, in a new branch called "release"
122122
git checkout $SOURCEGRAPH_VERSION -b release
123123
```

src/components/MdxComponents.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ import { QuickLink, QuickLinks } from './mdx/QuickLinks';
1111
import { Tab, Tabs } from './mdx/Tabs';
1212
import { PreCodeBlock } from './PreCodeBlock';
1313
import ResourceEstimator from './resource-estimator/ResourceEstimator';
14+
import { CurrentVersion, CurrentVersionLongForm } from './Versions';
1415

1516
const MdxComponents = (version?: string) => {
1617
return {
1718
FeatureParity,
1819
ResourceEstimator,
20+
CurrentVersion,
1921
AWSOneClickLaunchForm,
2022
Accordion,
2123
ContentTabs: (props: any) => <ContentTabs {...props} />,

src/components/Versions.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
import React from 'react';
3+
4+
export const CURRENT_VERSION = '5.7.2474';
5+
export const CURRENT_VERSION_LONG_FORM = 'Sourcegraph 5 Version 7 Patch 1'
6+
7+
export const CurrentVersion: React.FC = () => {
8+
return <span>{CURRENT_VERSION}</span>;
9+
};
10+
11+
export const CurrentVersionLongForm: React.FC = () => {
12+
return <span>{CURRENT_VERSION_LONG_FORM}</span>;
13+
};

0 commit comments

Comments
 (0)