vdoc: add hr style, use prettier version 3 in the CI (#19628)

This commit is contained in:
Turiiya 2023-10-23 09:30:34 +02:00 committed by GitHub
parent a132345e08
commit 8a8129cd5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 15 deletions

View File

@ -12,8 +12,8 @@ jobs:
lint-module-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check Formatting
uses: actionsx/prettier@v2
uses: creyD/prettier_action@v4.3
with:
args: --check cmd/tools/vdoc/theme
prettier_options: --check cmd/tools/vdoc/theme

View File

@ -85,14 +85,30 @@ html {
}
body {
margin: 0;
font-family: Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-family:
Jost,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol';
background-color: #fff;
background-color: var(--background-color);
color: #000;
color: var(--text-color);
height: 100%;
}
hr {
height: 0.25rem;
background-color: var(--title-bottom-line-color);
border: 0;
padding: 0;
margin: 1.2rem 0;
}
#page {
height: 100%;
padding-top: 56px;
@ -337,8 +353,17 @@ body {
font-weight: 500;
}
.doc-nav > .search .result > .link > .description {
font-family: Jost, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-family:
Jost,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol';
font-size: 0.75rem;
overflow: hidden;
white-space: nowrap;

View File

@ -56,7 +56,7 @@ function setupScrollSpy() {
a.classList.add('active');
lastActive = a;
clickedScroll = true;
})
}),
);
}

View File

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />

View File

@ -13,12 +13,6 @@ h1 {
margin: 0.67em 0;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre {
font-family: monospace, monospace;
font-size: 1em;