Skip to content

Commit 5ba5e41

Browse files
committed
update style
1 parent fe61b08 commit 5ba5e41

3 files changed

Lines changed: 106 additions & 13 deletions

File tree

input/kube-cli/service-exposure.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ For more information about connectors, see [Connector concept][connector].
3131
skupper connector create <name> <port> [--routing-key <name>]
3232
```
3333
For example:
34-
3534
```bash
3635
skupper connector create backend 8080 --workload deployment/backend
3736
```
@@ -40,9 +39,11 @@ For more information about connectors, see [Connector concept][connector].
4039
skupper connector status
4140
```
4241
For example:
43-
4442
```bash
45-
$ skupper connector status
43+
skupper connector status
44+
```
45+
Example output:
46+
```text
4647
NAME STATUS ROUTING-KEY SELECTOR HOST PORT HAS MATCHING LISTENER MESSAGE
4748
backend Pending backend app=backend 8080 false No matching listeners
4849
```
@@ -76,9 +77,11 @@ For more information about listeners. see [Listener concept][listener].
7677
skupper listener create <name> <port> [--routing-key <name>]
7778
```
7879
For example:
79-
8080
```bash
81-
$ skupper listener create backend 8080
81+
skupper listener create backend 8080
82+
```
83+
Example output:
84+
```text
8285
Waiting for create to complete...
8386
Listener "backend" is ready
8487
```
@@ -88,9 +91,11 @@ For more information about listeners. see [Listener concept][listener].
8891
skupper listener status
8992
```
9093
For example:
91-
9294
```bash
93-
$ skupper listener status
95+
skupper listener status
96+
```
97+
Example output:
98+
```text
9499
NAME STATUS ROUTING-KEY HOST PORT MATCHING-CONNECTOR MESSAGE
95100
backend Ready backend backend 8080 true OK
96101
```

input/kube-cli/site-linking.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,19 @@ To link sites, you create a token on one site and redeem that token on the other
7070
skupper link status
7171
```
7272
You might need to issue the command multiple times before the link is ready:
73-
7473
```bash
75-
$ skupper link status
74+
skupper link status
75+
```
76+
Example output:
77+
```text
7678
NAME STATUS COST MESSAGE
7779
west-12f75bc8-5dda-4256-88f8-9df48150281a Pending 1 Not Operational
78-
$ skupper link status
80+
```
81+
```bash
82+
skupper link status
83+
```
84+
Example output:
85+
```text
7986
NAME STATUS COST MESSAGE
8087
west-12f75bc8-5dda-4256-88f8-9df48150281a Ready 1 OK
8188
```
@@ -125,12 +132,19 @@ To link sites, you create a `link` resource YAML file on one site and apply that
125132
skupper link status
126133
```
127134
You might need to issue the command multiple times before the link is ready:
128-
129135
```bash
130-
$ skupper link status
136+
skupper link status
137+
```
138+
Example output:
139+
```text
131140
NAME STATUS COST MESSAGE
132141
west-12f75bc8-5dda-4256-88f8-9df48150281a Pending 1 Not Operational
133-
$ skupper link status
142+
```
143+
```bash
144+
skupper link status
145+
```
146+
Example output:
147+
```text
134148
NAME STATUS COST MESSAGE
135149
west-12f75bc8-5dda-4256-88f8-9df48150281a Ready 1 OK
136150
```

style.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Skupper Documentation Style Guide
2+
3+
## Numbered Lists and Code Blocks
4+
5+
### Indentation Requirements
6+
7+
All continuation content within numbered list items must be indented with exactly 3 spaces. This includes:
8+
- Code fence markers (the triple backticks)
9+
- Code block content
10+
- Labels like "Example output:"
11+
- Any explanatory text that continues from the list item
12+
13+
This 3-space indentation tells the Markdown renderer that the content belongs to that numbered list item.
14+
15+
### Formatting Shell Commands
16+
17+
When showing shell commands in procedural documentation:
18+
19+
1. Use bash code blocks (marked with triple backticks and the bash language identifier)
20+
2. Do NOT include the dollar sign prompt in the command
21+
3. Show only the actual command that users should type
22+
4. The opening and closing fence markers must be indented 3 spaces within numbered lists
23+
24+
### Formatting Command Output
25+
26+
When showing what output users should expect to see:
27+
28+
1. Place the text "Example output:" on its own line before the output block
29+
2. This label must be indented 3 spaces (same as the code fences)
30+
3. Use a text code block (marked with triple backticks and the text language identifier)
31+
4. Include all output lines within the text block
32+
5. Both the opening and closing fence markers must be indented 3 spaces
33+
34+
### Multiple Command/Output Pairs
35+
36+
When demonstrating a sequence of commands and their outputs (such as polling a status command until a condition is met):
37+
38+
1. Show the first command in a bash block
39+
2. Follow with "Example output:" and a text block showing the first result
40+
3. Show the second command in another bash block
41+
4. Follow with "Example output:" and a text block showing the second result
42+
5. All fence markers and labels maintain the 3-space indentation
43+
44+
### Commands Without Output
45+
46+
When you only need to show a command without demonstrating its output, use a single bash code block. No output block is needed.
47+
48+
### YAML and Configuration Files
49+
50+
For YAML configuration files or Kubernetes resources, use yaml as the language identifier instead of bash or text.
51+
52+
### Reference Documentation (refdog directory only)
53+
54+
The reference documentation in the input/refdog directory uses a different format:
55+
56+
- Uses console as the language identifier
57+
- Uses tildes instead of backticks for code fences
58+
- DOES include the dollar sign prompt in commands
59+
- Shows commands and output mixed together in the same block
60+
- May include comment lines starting with hash symbols
61+
62+
This console format is ONLY used in the refdog directory. All procedural documentation uses the bash/text separation described above.
63+
64+
### Key Differences: Procedural vs Reference
65+
66+
Procedural documentation (tutorials, how-to guides):
67+
- Separates commands from output into different blocks
68+
- Commands in bash blocks without dollar sign prompts
69+
- Output in text blocks with "Example output:" labels
70+
71+
Reference documentation (command reference in refdog):
72+
- Shows interactive console sessions as they would appear
73+
- Commands include dollar sign prompts
74+
- Commands and output mixed in the same console block

0 commit comments

Comments
 (0)