Skip to content

Commit

Permalink
Add inline comment to code blocks in docs
Browse files Browse the repository at this point in the history
Signed-off-by: windsonsea <[email protected]>
  • Loading branch information
windsonsea committed Jan 19, 2024
1 parent 77e06f3 commit df627e3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ markdown_extensions:
smart_enable: all
- pymdownx.tabbed:
alternate_style: true
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets

nav:
- README.md
Expand Down
5 changes: 2 additions & 3 deletions docs/usage/install/underlay/get-started-calico-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ spec:
template:
metadata:
annotations:
ipam.spidernet.io/ippool: '{"ipv4":["nginx-ippool-v4"]}'
ipam.spidernet.io/ippool: '{"ipv4":["nginx-ippool-v4"]}' # (1)
labels:
app: nginx
spec:
Expand All @@ -240,8 +240,7 @@ spec:
EOF
```

> `ipam.spidernet.io/ippool`: 从 "nginx-ippool-v4" SpiderIPPool 中分配固定 IP
>
1. 从 "nginx-ippool-v4" SpiderIPPool 中分配固定 IP

当应用 Pod 被创建,Spiderpool 从 annnotations 指定的 `ippool: nginx-ippool-v4` 中给 Pod 分配 IP。

Expand Down
4 changes: 2 additions & 2 deletions docs/usage/install/underlay/get-started-calico.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ spec:
template:
metadata:
annotations:
ipam.spidernet.io/ippool: '{"ipv4":["nginx-ippool-v4"]}'
ipam.spidernet.io/ippool: '{"ipv4":["nginx-ippool-v4"]}' # (1)
labels:
app: nginx
spec:
Expand All @@ -240,7 +240,7 @@ spec:
EOF
```

> `ipam.spidernet.io/ippool`: Assign static IPs from "nginx-ippool-v4" SpiderIPPool
1. Assign static IPs from "nginx-ippool-v4" SpiderIPPool

When the application Pod is created, Spiderpool assigns the IP to the Pod from the `ippool: nginx-ippool-v4` specified in the annnotations.

Expand Down

0 comments on commit df627e3

Please sign in to comment.