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

Commit 9c016be

Browse files
committed
Use sphinxcontrib.programoutput
1 parent 2e57a18 commit 9c016be

6 files changed

Lines changed: 28 additions & 89 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
extensions = [
2828
"sphinxcontrib.mermaid",
29+
"sphinxcontrib.programoutput",
2930
"myst_parser",
3031
"sphinx.ext.autodoc",
3132
"sphinx.ext.doctest",

docs/source/getting-started/setup-exporter-client.md

Lines changed: 7 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,10 @@ To create an exporter and save the config locally, run the following command:
3232
$ jmp admin create exporter testing --save
3333

3434
# Usage for jmp admin create exporter
35-
$ jmp admin create exporter
36-
--help
37-
Usage: jmp admin create exporter [OPTIONS] [NAME]
38-
39-
Create an exporter object in the Kubernetes cluster
35+
$ jmp admin create exporter --help
36+
```
4037

41-
Options:
42-
-s, --save Save the config file for the created exporter.
43-
-o, --out FILE Specify an output file for the exporter config.
44-
-n, --namespace TEXT Kubernetes namespace to use
45-
--kubeconfig FILENAME path to the kubeconfig file
46-
--context TEXT Kubernetes context to use
47-
--help Show this message and exit.
38+
```{program-output} jmp admin create exporter --help
4839
```
4940

5041
### Edit the Exporter Config
@@ -102,21 +93,9 @@ $ jmp admin create client hello --save --unsafe
10293
10394
# Usage for jmp admin create client
10495
jmp admin create client --help
105-
Usage: jmp admin create client [OPTIONS] [NAME]
106-
107-
Create a client object in the Kubernetes cluster
96+
```
10897

109-
Options:
110-
-s, --save Save the config file for the created client.
111-
-a, --allow TEXT A comma-separated list of driver client packages to
112-
load.
113-
--unsafe Should all driver client packages be allowed to load
114-
(UNSAFE!).
115-
-o, --out FILE Specify an output file for the client config.
116-
-n, --namespace TEXT Kubernetes namespace to use
117-
--kubeconfig FILENAME path to the kubeconfig file
118-
--context TEXT Kubernetes context to use
119-
--help Show this message and exit.
98+
```{program-output} jmp admin create client --help
12099
```
121100

122101
## Connect to the Exporter
@@ -133,30 +112,9 @@ $ jmp shell --client hello --selector example.com/board=foo
133112
134113
# Usage for jmp shell
135114
$ jmp shell --help
136-
Usage: jmp shell [OPTIONS]
137-
138-
Spawns a shell connecting to a local or remote exporter
115+
```
139116

140-
Options:
141-
--exporter-config PATH Path of exporter config
142-
--exporter TEXT Alias of exporter config
143-
--client-config PATH Path to client config
144-
--client TEXT Alias of client config
145-
--lease TEXT
146-
-l, --selector TEXT Selector (label query) to filter on, supports '=',
147-
'==', and '!=' (e.g. -l key1=value1,key2=value2).
148-
Matching objects must satisfy all of the specified
149-
label constraints.
150-
--duration DURATION Accepted duration formats:
151-
152-
PnYnMnDTnHnMnS - ISO 8601 duration format
153-
HH:MM:SS - time in hours, minutes, seconds
154-
D days, HH:MM:SS - time prefixed by X days
155-
D d, HH:MM:SS - time prefixed by X d
156-
157-
See https://docs.rs/speedate/latest/speedate/ for
158-
details [default: (00:30:00)]
159-
--help Show this message and exit.
117+
```{program-output} jmp shell --help
160118
```
161119

162120
Once a lease is acquired, we can interact with the drivers hosted by the exporter

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

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,9 @@ $ jmp admin install
7878
7979
# Options provided by the Jumpstarter CLI
8080
$ jmp admin install --help
81-
Usage: jmp admin install [OPTIONS]
82-
83-
Install the Jumpstarter service in a Kubernetes cluster
84-
85-
Options:
86-
--helm TEXT Path or name of a helm executable
87-
--name TEXT The name of the chart installation
88-
-c, --chart TEXT The URL of a Jumpstarter helm chart to install
89-
-n, --namespace TEXT Namespace to install Jumpstarter components in
90-
-i, --ip TEXT IP address of your host machine
91-
-b, --basedomain TEXT Base domain of the Jumpstarter service
92-
-g, --grpc-endpoint TEXT The gRPC endpoint to use for the Jumpstarter API
93-
-r, --router-endpoint TEXT The gRPC endpoint to use for the router
94-
--nodeport Use Nodeport routing (recommended)
95-
--ingress Use a Kubernetes ingress
96-
--route Use an OpenShift route
97-
-v, --version TEXT The version of the service to install
98-
--kubeconfig FILENAME path to the kubeconfig file
99-
--context TEXT Kubernetes context to use
100-
--help Show this message and exit.
81+
```
82+
83+
```{program-output} jmp admin install --help
10184
```
10285

10386
### Install Jumpstarter with Helm

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

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,9 @@ $ jmp admin install --ip $(minikube ip)
4040
4141
# Options provided by the Jumpstarter CLI
4242
$ jmp admin install --help
43-
Usage: jmp admin install [OPTIONS]
44-
45-
Install the Jumpstarter service in a Kubernetes cluster
46-
47-
Options:
48-
--helm TEXT Path or name of a helm executable
49-
--name TEXT The name of the chart installation
50-
-c, --chart TEXT The URL of a Jumpstarter helm chart to install
51-
-n, --namespace TEXT Namespace to install Jumpstarter components in
52-
-i, --ip TEXT IP address of your host machine
53-
-b, --basedomain TEXT Base domain of the Jumpstarter service
54-
-g, --grpc-endpoint TEXT The gRPC endpoint to use for the Jumpstarter API
55-
-r, --router-endpoint TEXT The gRPC endpoint to use for the router
56-
--nodeport Use Nodeport routing (recommended)
57-
--ingress Use a Kubernetes ingress
58-
--route Use an OpenShift route
59-
-v, --version TEXT The version of the service to install
60-
--kubeconfig FILENAME path to the kubeconfig file
61-
--context TEXT Kubernetes context to use
62-
--help Show this message and exit.
43+
```
44+
45+
```{program-output} jmp admin install --help
6346
```
6447

6548
### Install Jumpstarter with Helm

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ docs = [
4343
"sphinx-click>=6.0.0",
4444
"sphinx-substitution-extensions>=2024.10.17",
4545
"requests>=2.32.3",
46+
"sphinxcontrib-programoutput>=0.18",
4647
]
4748
dev = [
4849
"ruff==0.9.2",

uv.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)