Skip to content

Commit 8a8129c

Browse files
authored
vdoc: add hr style, use prettier version 3 in the CI (#19628)
1 parent a132345 commit 8a8129c

File tree

5 files changed

+34
-15
lines changed

5 files changed

+34
-15
lines changed

.github/workflows/module_docs_lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
lint-module-docs:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Check Formatting
17-
uses: actionsx/prettier@v2
17+
uses: creyD/prettier_action@v4.3
1818
with:
19-
args: --check cmd/tools/vdoc/theme
19+
prettier_options: --check cmd/tools/vdoc/theme

cmd/tools/vdoc/theme/doc.css

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,30 @@ html {
8585
}
8686
body {
8787
margin: 0;
88-
font-family: Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif,
89-
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
88+
font-family:
89+
Jost,
90+
-apple-system,
91+
BlinkMacSystemFont,
92+
'Segoe UI',
93+
Helvetica,
94+
Arial,
95+
sans-serif,
96+
'Apple Color Emoji',
97+
'Segoe UI Emoji',
98+
'Segoe UI Symbol';
9099
background-color: #fff;
91100
background-color: var(--background-color);
92101
color: #000;
93102
color: var(--text-color);
94103
height: 100%;
95104
}
105+
hr {
106+
height: 0.25rem;
107+
background-color: var(--title-bottom-line-color);
108+
border: 0;
109+
padding: 0;
110+
margin: 1.2rem 0;
111+
}
96112
#page {
97113
height: 100%;
98114
padding-top: 56px;
@@ -337,8 +353,17 @@ body {
337353
font-weight: 500;
338354
}
339355
.doc-nav > .search .result > .link > .description {
340-
font-family: Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif,
341-
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
356+
font-family:
357+
Jost,
358+
-apple-system,
359+
BlinkMacSystemFont,
360+
'Segoe UI',
361+
Helvetica,
362+
Arial,
363+
sans-serif,
364+
'Apple Color Emoji',
365+
'Segoe UI Emoji',
366+
'Segoe UI Symbol';
342367
font-size: 0.75rem;
343368
overflow: hidden;
344369
white-space: nowrap;

cmd/tools/vdoc/theme/doc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function setupScrollSpy() {
5656
a.classList.add('active');
5757
lastActive = a;
5858
clickedScroll = true;
59-
})
59+
}),
6060
);
6161
}
6262

cmd/tools/vdoc/theme/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

cmd/tools/vdoc/theme/normalize.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ h1 {
1313
margin: 0.67em 0;
1414
}
1515

16-
hr {
17-
box-sizing: content-box;
18-
height: 0;
19-
overflow: visible;
20-
}
21-
2216
pre {
2317
font-family: monospace, monospace;
2418
font-size: 1em;

0 commit comments

Comments
 (0)