Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit cba2342

Browse files
committed
Parameterize version numbers in docs
1 parent f0f92e6 commit cba2342

9 files changed

Lines changed: 116 additions & 71 deletions

File tree

docs/source/conf.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2020

21-
extensions = ["sphinxcontrib.mermaid", "myst_parser", "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx_click"]
21+
extensions = [
22+
"sphinxcontrib.mermaid",
23+
"myst_parser",
24+
"sphinx.ext.autodoc",
25+
"sphinx.ext.doctest",
26+
"sphinx_click",
27+
"sphinx_substitution_extensions",
28+
]
2229

2330
templates_path = ["_templates"]
2431
exclude_patterns = []
@@ -32,4 +39,11 @@
3239
# html_static_path = ["_static"]
3340
html_extra_path = ["extra"]
3441
html_title = "Jumpstarter Docs"
42+
3543
myst_heading_anchors = 3
44+
myst_enable_extensions = [
45+
"substitution",
46+
]
47+
myst_substitutions = {
48+
"version": "0.5.0rc2",
49+
}

docs/source/installation/service-cli.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Please refer to https://github.com/jumpstarter-dev/jumpstarter-controller/releas
77
the latest release.
88

99
## Installing the CLI
10-
```bash
11-
export VERSION=0.1.0
10+
```{code-block} bash
11+
:substitutions:
12+
export VERSION={{version}}
1213
export ARCH=amd64
1314
1415
curl -L https://github.com/jumpstarter-dev/jumpstarter-controller/releases/download/${VERSION}/jmpctl_${VERSION}_linux_${ARCH} \

docs/source/installation/service/kind-helm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ kind create cluster --config kind_config.yaml
5858

5959
### Install Jumpstarter
6060

61-
```bash
61+
```{code-block} bash
62+
:substitutions:
6263
export BASEDOMAIN="jumpstarter.${IP}.nip.io"
6364
export GRPC_ENDPOINT="grpc.${BASEDOMAIN}:8082"
6465
export GRPC_ROUTER_ENDPOINT="router.${BASEDOMAIN}:8083"
@@ -71,6 +72,5 @@ helm upgrade jumpstarter --install oci://quay.io/jumpstarter-dev/helm/jumpstarte
7172
--set global.metrics.enabled=false \
7273
--set jumpstarter-controller.grpc.nodeport.enabled=true \
7374
--set jumpstarter-controller.grpc.mode=nodeport \
74-
--version=0.1.0
75-
{{< / highlight >}}
76-
```
75+
--version={{version}}
76+
```

docs/source/installation/service/kubernetes-helm.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ Please note that `global.baseDomain` is used to create the host names for the se
1111
with the provided example the services will be available at grpc.jumpstarter.example.com
1212
```
1313

14-
```bash
15-
helm upgrade jumpstarter --install oci://quay.io/jumpstarter-dev/helm/jumpstarter \
16-
--create-namespace --namespace jumpstarter-lab \
17-
--set global.baseDomain=jumpstarter.example.com \
18-
--set global.metrics.enabled=true # disable if metrics not available \
19-
--set jumpstarter-controller.grpc.mode=ingress \
20-
--version=0.1.0
21-
```
14+
```{code-block} bash
15+
:substitutions:
16+
helm upgrade jumpstarter --install oci://quay.io/jumpstarter-dev/helm/jumpstarter \
17+
--create-namespace --namespace jumpstarter-lab \
18+
--set global.baseDomain=jumpstarter.example.com \
19+
--set global.metrics.enabled=true # disable if metrics not available \
20+
--set jumpstarter-controller.grpc.mode=ingress \
21+
--version={{version}}
22+
```

docs/source/installation/service/minikube-helm.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export IP=$(minikube ip)
2929
```
3030

3131
### Install Jumpstarter
32-
```bash
32+
```{code-block} bash
33+
:substitutions:
3334
export BASEDOMAIN="jumpstarter.${IP}.nip.io"
3435
export GRPC_ENDPOINT="grpc.${BASEDOMAIN}:8082"
3536
export GRPC_ROUTER_ENDPOINT="router.${BASEDOMAIN}:8083"
@@ -42,5 +43,5 @@ helm upgrade jumpstarter --install oci://quay.io/jumpstarter-dev/helm/jumpstarte
4243
--set global.metrics.enabled=false \
4344
--set jumpstarter-controller.grpc.nodeport.enabled=true \
4445
--set jumpstarter-controller.grpc.mode=nodeport \
45-
--version=0.1.0
46-
```
46+
--version={{version}}
47+
```

docs/source/installation/service/openshift-argocd.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ auto-generate values for these, but with ArgoCD such mechanism doesn't work. You
6363
create these secrets in the namespace where the jumpstarter is installed.
6464
```
6565

66-
```yaml
66+
```{code-block} yaml
67+
:substitutions:
6768
apiVersion: argoproj.io/v1alpha1
6869
kind: Application
6970
metadata:
@@ -89,6 +90,6 @@ spec:
8990
- name: jumpstarter-controller.grpc.mode
9091
value: "route"
9192
repoURL: quay.io/jumpstarter-dev/helm
92-
targetRevision: "0.1.0"
93+
targetRevision: "{{version}}"
9394
```
9495

docs/source/installation/service/openshift-helm.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ this is because the install process will install some CRDs and ClusterRoles.
1212

1313
To install using helm:
1414

15-
```bash
16-
helm upgrade jumpstarter --install oci://quay.io/jumpstarter-dev/helm/jumpstarter \
17-
--create-namespace --namespace jumpstarter-lab \
18-
--set global.baseDomain=jumpstarter.example.com \
19-
--set global.metrics.enabled=true \
20-
--set jumpstarter-controller.grpc.mode=route \
21-
--version=0.1.0
15+
```{code-block} bash
16+
:substitutions:
17+
helm upgrade jumpstarter --install oci://quay.io/jumpstarter-dev/helm/jumpstarter \
18+
--create-namespace --namespace jumpstarter-lab \
19+
--set global.baseDomain=jumpstarter.example.com \
20+
--set global.metrics.enabled=true \
21+
--set jumpstarter-controller.grpc.mode=route \
22+
--version={{version}}
2223
```
2324

2425

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ docs = [
3636
"esbonio>=0.16.4",
3737
"sphinx-autobuild>=2024.4.16",
3838
"sphinx-click>=6.0.0",
39+
"sphinx-substitution-extensions>=2024.10.17",
3940
]
4041
dev = [
4142
"pytest>=8.3.2",

0 commit comments

Comments
 (0)