mirror of
https://github.com/vlang/v.git
synced 2025-09-15 10:27:19 -04:00
vdoc: add hr style, use prettier version 3 in the CI (#19628)
This commit is contained in:
parent
a132345e08
commit
8a8129cd5c
6
.github/workflows/module_docs_lint.yml
vendored
6
.github/workflows/module_docs_lint.yml
vendored
@ -12,8 +12,8 @@ jobs:
|
|||||||
lint-module-docs:
|
lint-module-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
uses: actionsx/prettier@v2
|
uses: creyD/prettier_action@v4.3
|
||||||
with:
|
with:
|
||||||
args: --check cmd/tools/vdoc/theme
|
prettier_options: --check cmd/tools/vdoc/theme
|
||||||
|
@ -85,14 +85,30 @@ html {
|
|||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif,
|
font-family:
|
||||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
Jost,
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
'Segoe UI',
|
||||||
|
Helvetica,
|
||||||
|
Arial,
|
||||||
|
sans-serif,
|
||||||
|
'Apple Color Emoji',
|
||||||
|
'Segoe UI Emoji',
|
||||||
|
'Segoe UI Symbol';
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
color: #000;
|
color: #000;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
hr {
|
||||||
|
height: 0.25rem;
|
||||||
|
background-color: var(--title-bottom-line-color);
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
margin: 1.2rem 0;
|
||||||
|
}
|
||||||
#page {
|
#page {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-top: 56px;
|
padding-top: 56px;
|
||||||
@ -337,8 +353,17 @@ body {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.doc-nav > .search .result > .link > .description {
|
.doc-nav > .search .result > .link > .description {
|
||||||
font-family: Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif,
|
font-family:
|
||||||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
Jost,
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
'Segoe UI',
|
||||||
|
Helvetica,
|
||||||
|
Arial,
|
||||||
|
sans-serif,
|
||||||
|
'Apple Color Emoji',
|
||||||
|
'Segoe UI Emoji',
|
||||||
|
'Segoe UI Symbol';
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -56,7 +56,7 @@ function setupScrollSpy() {
|
|||||||
a.classList.add('active');
|
a.classList.add('active');
|
||||||
lastActive = a;
|
lastActive = a;
|
||||||
clickedScroll = true;
|
clickedScroll = true;
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
6
cmd/tools/vdoc/theme/normalize.css
vendored
6
cmd/tools/vdoc/theme/normalize.css
vendored
@ -13,12 +13,6 @@ h1 {
|
|||||||
margin: 0.67em 0;
|
margin: 0.67em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
|
||||||
box-sizing: content-box;
|
|
||||||
height: 0;
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-family: monospace, monospace;
|
font-family: monospace, monospace;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user