@t8/docsgen 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js
CHANGED
|
@@ -833,7 +833,7 @@ async function getSectionContent(ctx, index) {
|
|
|
833
833
|
let plainTitle = await getPlainTitle(ctx);
|
|
834
834
|
return toFileContent(`
|
|
835
835
|
<!DOCTYPE html>
|
|
836
|
-
<html lang="en" data-layout="section"
|
|
836
|
+
<html lang="en" data-layout="section">
|
|
837
837
|
<head>
|
|
838
838
|
${getInjectedContent(ctx, "section", "head", "prepend")}
|
|
839
839
|
<meta charset="utf-8">
|
|
@@ -850,11 +850,9 @@ async function getSectionContent(ctx, index) {
|
|
|
850
850
|
<body>
|
|
851
851
|
${getInjectedContent(ctx, "section", "body", "prepend")}
|
|
852
852
|
<div class="layout">
|
|
853
|
-
<header>
|
|
853
|
+
<header${index === 0 ? ' class="full"' : ' class="compact"'}>
|
|
854
854
|
<h1>${mainTitle}</h1>
|
|
855
|
-
<div class="description"
|
|
856
|
-
<p>${descriptionContent}</p>
|
|
857
|
-
</div>
|
|
855
|
+
${index === 0 ? ` <div class="description"><p>${descriptionContent}</p></div>` : ""}
|
|
858
856
|
</header>
|
|
859
857
|
<div class="${navContent ? "" : "no-nav "}body">
|
|
860
858
|
<main>
|
package/dist/css/section.css
CHANGED
|
@@ -12,7 +12,7 @@ header {
|
|
|
12
12
|
display: none;
|
|
13
13
|
text-align: center;
|
|
14
14
|
border-bottom: 0.15rem solid;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 2em 0;
|
|
16
16
|
margin: 0 var(--content-padding-x) 1em;
|
|
17
17
|
}
|
|
18
18
|
header h1 {
|
|
@@ -41,17 +41,17 @@ header .description {
|
|
|
41
41
|
header .description p {
|
|
42
42
|
margin: 0;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
header.compact {
|
|
45
45
|
text-align: start;
|
|
46
|
-
border-bottom:
|
|
47
|
-
padding:
|
|
48
|
-
margin-bottom: 0
|
|
46
|
+
border-bottom: none;
|
|
47
|
+
padding: 1em 0 0;
|
|
48
|
+
margin-bottom: 0;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
font-size: 0.
|
|
52
|
-
font-weight:
|
|
50
|
+
header.compact h1 {
|
|
51
|
+
font-size: 0.75em;
|
|
52
|
+
font-weight: normal;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
header.compact .description {
|
|
55
55
|
max-width: none;
|
|
56
56
|
font-size: 0.65em;
|
|
57
57
|
margin-top: 0.35em;
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export async function getSectionContent(ctx: Context, index: number) {
|
|
|
34
34
|
|
|
35
35
|
return toFileContent(`
|
|
36
36
|
<!DOCTYPE html>
|
|
37
|
-
<html lang="en" data-layout="section"
|
|
37
|
+
<html lang="en" data-layout="section">
|
|
38
38
|
<head>
|
|
39
39
|
${getInjectedContent(ctx, "section", "head", "prepend")}
|
|
40
40
|
<meta charset="utf-8">
|
|
@@ -51,11 +51,9 @@ export async function getSectionContent(ctx: Context, index: number) {
|
|
|
51
51
|
<body>
|
|
52
52
|
${getInjectedContent(ctx, "section", "body", "prepend")}
|
|
53
53
|
<div class="layout">
|
|
54
|
-
<header>
|
|
54
|
+
<header${index === 0 ? ' class="full"' : ' class="compact"'}>
|
|
55
55
|
<h1>${mainTitle}</h1>
|
|
56
|
-
<div class="description"
|
|
57
|
-
<p>${descriptionContent}</p>
|
|
58
|
-
</div>
|
|
56
|
+
${index === 0 ? ` <div class="description"><p>${descriptionContent}</p></div>` : ""}
|
|
59
57
|
</header>
|
|
60
58
|
<div class="${navContent ? "" : "no-nav "}body">
|
|
61
59
|
<main>
|
package/src/css/section.css
CHANGED
|
@@ -12,7 +12,7 @@ header {
|
|
|
12
12
|
display: none;
|
|
13
13
|
text-align: center;
|
|
14
14
|
border-bottom: 0.15rem solid;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 2em 0;
|
|
16
16
|
margin: 0 var(--content-padding-x) 1em;
|
|
17
17
|
}
|
|
18
18
|
header h1 {
|
|
@@ -41,17 +41,17 @@ header .description {
|
|
|
41
41
|
header .description p {
|
|
42
42
|
margin: 0;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
header.compact {
|
|
45
45
|
text-align: start;
|
|
46
|
-
border-bottom:
|
|
47
|
-
padding:
|
|
48
|
-
margin-bottom: 0
|
|
46
|
+
border-bottom: none;
|
|
47
|
+
padding: 1em 0 0;
|
|
48
|
+
margin-bottom: 0;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
font-size: 0.
|
|
52
|
-
font-weight:
|
|
50
|
+
header.compact h1 {
|
|
51
|
+
font-size: 0.75em;
|
|
52
|
+
font-weight: normal;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
header.compact .description {
|
|
55
55
|
max-width: none;
|
|
56
56
|
font-size: 0.65em;
|
|
57
57
|
margin-top: 0.35em;
|