@t8/docsgen 0.4.8 → 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 +2 -4
- package/dist/css/section.css +20 -4
- package/package.json +1 -1
- package/src/bin/content/getSectionContent.ts +2 -4
- package/src/css/section.css +20 -4
package/dist/bin.js
CHANGED
|
@@ -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 class="
|
|
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
|
@@ -11,11 +11,12 @@ footer {
|
|
|
11
11
|
header {
|
|
12
12
|
display: none;
|
|
13
13
|
text-align: center;
|
|
14
|
-
|
|
15
|
-
padding
|
|
14
|
+
border-bottom: 0.15rem solid;
|
|
15
|
+
padding: 2em 0;
|
|
16
|
+
margin: 0 var(--content-padding-x) 1em;
|
|
16
17
|
}
|
|
17
18
|
header h1 {
|
|
18
|
-
font-size: 1.
|
|
19
|
+
font-size: 1.5em;
|
|
19
20
|
font-weight: 900;
|
|
20
21
|
color: var(--aux-emphatic-color);
|
|
21
22
|
margin: 0;
|
|
@@ -35,11 +36,26 @@ header .description {
|
|
|
35
36
|
max-width: 36em;
|
|
36
37
|
font-size: 0.8em;
|
|
37
38
|
line-height: 1.2;
|
|
38
|
-
margin: 0.
|
|
39
|
+
margin: 0.5em auto 0;
|
|
39
40
|
}
|
|
40
41
|
header .description p {
|
|
41
42
|
margin: 0;
|
|
42
43
|
}
|
|
44
|
+
header.compact {
|
|
45
|
+
text-align: start;
|
|
46
|
+
border-bottom: none;
|
|
47
|
+
padding: 1em 0 0;
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
}
|
|
50
|
+
header.compact h1 {
|
|
51
|
+
font-size: 0.75em;
|
|
52
|
+
font-weight: normal;
|
|
53
|
+
}
|
|
54
|
+
header.compact .description {
|
|
55
|
+
max-width: none;
|
|
56
|
+
font-size: 0.65em;
|
|
57
|
+
margin-top: 0.35em;
|
|
58
|
+
}
|
|
43
59
|
|
|
44
60
|
.body {
|
|
45
61
|
min-height: 100vh;
|
package/package.json
CHANGED
|
@@ -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 class="
|
|
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
|
@@ -11,11 +11,12 @@ footer {
|
|
|
11
11
|
header {
|
|
12
12
|
display: none;
|
|
13
13
|
text-align: center;
|
|
14
|
-
|
|
15
|
-
padding
|
|
14
|
+
border-bottom: 0.15rem solid;
|
|
15
|
+
padding: 2em 0;
|
|
16
|
+
margin: 0 var(--content-padding-x) 1em;
|
|
16
17
|
}
|
|
17
18
|
header h1 {
|
|
18
|
-
font-size: 1.
|
|
19
|
+
font-size: 1.5em;
|
|
19
20
|
font-weight: 900;
|
|
20
21
|
color: var(--aux-emphatic-color);
|
|
21
22
|
margin: 0;
|
|
@@ -35,11 +36,26 @@ header .description {
|
|
|
35
36
|
max-width: 36em;
|
|
36
37
|
font-size: 0.8em;
|
|
37
38
|
line-height: 1.2;
|
|
38
|
-
margin: 0.
|
|
39
|
+
margin: 0.5em auto 0;
|
|
39
40
|
}
|
|
40
41
|
header .description p {
|
|
41
42
|
margin: 0;
|
|
42
43
|
}
|
|
44
|
+
header.compact {
|
|
45
|
+
text-align: start;
|
|
46
|
+
border-bottom: none;
|
|
47
|
+
padding: 1em 0 0;
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
}
|
|
50
|
+
header.compact h1 {
|
|
51
|
+
font-size: 0.75em;
|
|
52
|
+
font-weight: normal;
|
|
53
|
+
}
|
|
54
|
+
header.compact .description {
|
|
55
|
+
max-width: none;
|
|
56
|
+
font-size: 0.65em;
|
|
57
|
+
margin-top: 0.35em;
|
|
58
|
+
}
|
|
43
59
|
|
|
44
60
|
.body {
|
|
45
61
|
min-height: 100vh;
|