Skip to content

Commit eec76b7

Browse files
fix: YAML highlighting in docs (#547)
Signed-off-by: krishnagajabi <[email protected]>
1 parent a032697 commit eec76b7

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

docs/main/user-guides/observability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The default Grafana login credentials are:
6767
- password: admin
6868

6969
:::note
70-
If public IP is not available, then you can access it via port-forwarding by using the following command and then visit http://127.0.0.1:[grafana-forward-port].
70+
If public IP is not available, then you can access it via port-forwarding by using the following command and then visit `http://127.0.0.1:[grafana-forward-port]`.
7171

7272
```
7373
kubectl port-forward --namespace [NAMESPACE] pods/[grafana-pod-name] [grafrana-foward-port]:[grafana-cluster-port]

docs/src/scss/custom.scss

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,31 @@
7575
width: 100%;
7676
}
7777

78-
//code block
78+
// code block yaml
79+
.language-yaml {
80+
.token.key,
81+
.token.atrule,
82+
.token.attr-name,
83+
.token.property {
84+
color: #f78c6c !important; /* orange-amber for keys */
85+
}
86+
.token.string {
87+
color: #c3e88d !important; /* green for strings */
88+
}
89+
.token.number,
90+
.token.boolean {
91+
color: #82aaff !important; /* light blue for numbers/booleans */
92+
}
93+
.token.punctuation {
94+
color: #89ddff !important; /* cyan for : and - */
95+
}
96+
.token.comment {
97+
color: #697098 !important; /* subtle gray for comments */
98+
font-style: italic;
99+
}
100+
}
101+
102+
//code block shell
79103
.language-shell {
80104
font-family: $code-block-font-family;
81105
> div {

docs/versioned_docs/version-4.2.x/user-guides/observability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The default Grafana login credentials are:
6767
- password: admin
6868

6969
:::note
70-
If public IP is not available, then you can access it via port-forwarding by using the following command and then visit http://127.0.0.1:[grafana-forward-port].
70+
If public IP is not available, then you can access it via port-forwarding by using the following command and then visit `http://127.0.0.1:[grafana-forward-port]`.
7171

7272
```
7373
kubectl port-forward --namespace [NAMESPACE] pods/[grafana-pod-name] [grafrana-foward-port]:[grafana-cluster-port]

docs/versioned_docs/version-4.3.x/user-guides/observability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The default Grafana login credentials are:
6767
- password: admin
6868

6969
:::note
70-
If public IP is not available, then you can access it via port-forwarding by using the following command and then visit http://127.0.0.1:[grafana-forward-port].
70+
If public IP is not available, then you can access it via port-forwarding by using the following command and then visit `http://127.0.0.1:[grafana-forward-port]`.
7171

7272
```
7373
kubectl port-forward --namespace [NAMESPACE] pods/[grafana-pod-name] [grafrana-foward-port]:[grafana-cluster-port]

0 commit comments

Comments
 (0)