@t8/docsgen 0.3.26 → 0.3.28
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 +1 -1
- package/dist/css/base.css +3 -3
- package/dist/css/index.css +4 -4
- package/dist/css/section.css +4 -8
- package/package.json +1 -1
- package/src/bin/setContent.ts +1 -1
- package/src/css/base.css +3 -3
- package/src/css/index.css +4 -4
- package/src/css/section.css +4 -8
package/dist/bin.js
CHANGED
|
@@ -817,7 +817,7 @@ ${content}
|
|
|
817
817
|
${nav[i - 1]?.id ? `<a href="${root}${contentDir}/${nav[i - 1]?.id}">${nav[i - 1]?.title}</a>` : `<a href="${root}">Intro</a>`}
|
|
818
818
|
</span>
|
|
819
819
|
<span class="sep">|</span>
|
|
820
|
-
${nav[i + 1]?.id ? `<span class="next"><a href="${root}${contentDir}/${nav[i + 1]?.id}">${nav[i + 1]?.title}</a> <span class="icon">\u2192</span></span>` : `<span class="repo
|
|
820
|
+
${nav[i + 1]?.id ? `<span class="next"><a href="${root}${contentDir}/${nav[i + 1]?.id}">${nav[i + 1]?.title}</a> <span class="icon">\u2192</span></span>` : `<span class="repo">${getRepoLink(ctx)}</span>`}
|
|
821
821
|
</p>
|
|
822
822
|
</main>
|
|
823
823
|
${navContent ? "<hr>" : ""}
|
package/dist/css/base.css
CHANGED
|
@@ -108,13 +108,13 @@ h4 {
|
|
|
108
108
|
margin: 1em 0 0.65em 0;
|
|
109
109
|
}
|
|
110
110
|
h2 {
|
|
111
|
-
font-size: 1.
|
|
111
|
+
font-size: 1.3em;
|
|
112
112
|
}
|
|
113
113
|
h3 {
|
|
114
|
-
font-size: 1.
|
|
114
|
+
font-size: 1.15em;
|
|
115
115
|
}
|
|
116
116
|
h4 {
|
|
117
|
-
font-size:
|
|
117
|
+
font-size: 1em;
|
|
118
118
|
}
|
|
119
119
|
main {
|
|
120
120
|
box-sizing: border-box;
|
package/dist/css/index.css
CHANGED
|
@@ -41,7 +41,6 @@ h1 {
|
|
|
41
41
|
max-width: 16rem;
|
|
42
42
|
font-size: 1.6em;
|
|
43
43
|
font-weight: 900;
|
|
44
|
-
color: var(--emphatic-color);
|
|
45
44
|
margin: 1rem 0;
|
|
46
45
|
}
|
|
47
46
|
@media (max-width: 840px) {
|
|
@@ -117,6 +116,7 @@ section.intro-title {
|
|
|
117
116
|
align-items: flex-end;
|
|
118
117
|
text-align: right;
|
|
119
118
|
line-height: 1.3;
|
|
119
|
+
color: var(--emphatic-color);
|
|
120
120
|
border-right: 0.05em solid var(--line-color);
|
|
121
121
|
}
|
|
122
122
|
section.intro-title .section-content {
|
|
@@ -170,10 +170,10 @@ section.intro pre {
|
|
|
170
170
|
border-bottom: 0.05em solid var(--line-color);
|
|
171
171
|
}
|
|
172
172
|
section.intro-title .section-content {
|
|
173
|
-
min-height:
|
|
173
|
+
min-height: 35vh;
|
|
174
174
|
align-items: center;
|
|
175
|
-
padding-top:
|
|
176
|
-
padding-bottom:
|
|
175
|
+
padding-top: 2rem;
|
|
176
|
+
padding-bottom: 2.5rem;
|
|
177
177
|
}
|
|
178
178
|
section.intro-title:last-child .section-content {
|
|
179
179
|
max-width: 100%;
|
package/dist/css/section.css
CHANGED
|
@@ -33,6 +33,7 @@ footer {
|
|
|
33
33
|
flex: none;
|
|
34
34
|
align-self: stretch;
|
|
35
35
|
font-size: 0.9em;
|
|
36
|
+
line-height: 1.25;
|
|
36
37
|
text-align: end;
|
|
37
38
|
border-right: 0.05em solid var(--line-color);
|
|
38
39
|
padding: 0.75rem var(--content-padding-x);
|
|
@@ -52,7 +53,6 @@ footer {
|
|
|
52
53
|
.body > nav p.title {
|
|
53
54
|
font-size: 0.7rem;
|
|
54
55
|
font-weight: normal;
|
|
55
|
-
line-height: 1.2;
|
|
56
56
|
text-transform: uppercase;
|
|
57
57
|
margin: 1.1rem 0 0.75rem 0;
|
|
58
58
|
}
|
|
@@ -62,7 +62,6 @@ footer {
|
|
|
62
62
|
}
|
|
63
63
|
.body > nav ul {
|
|
64
64
|
list-style: none;
|
|
65
|
-
line-height: 1.2;
|
|
66
65
|
padding: 0;
|
|
67
66
|
margin: 0;
|
|
68
67
|
box-sizing: border-box;
|
|
@@ -89,7 +88,7 @@ footer {
|
|
|
89
88
|
top: 0;
|
|
90
89
|
}
|
|
91
90
|
.body > nav li + li {
|
|
92
|
-
margin-top: 0.
|
|
91
|
+
margin-top: 0.55em;
|
|
93
92
|
}
|
|
94
93
|
.body > nav li > strong {
|
|
95
94
|
color: var(--emphatic-color);
|
|
@@ -117,9 +116,6 @@ footer {
|
|
|
117
116
|
left: 0;
|
|
118
117
|
right: auto;
|
|
119
118
|
}
|
|
120
|
-
.body > nav li + li {
|
|
121
|
-
margin-top: 0.65em;
|
|
122
|
-
}
|
|
123
119
|
}
|
|
124
120
|
.body > nav > ul:last-child,
|
|
125
121
|
.body > nav > ul:last-child > li:last-child {
|
|
@@ -163,7 +159,7 @@ main hr {
|
|
|
163
159
|
margin: var(--block-margin-y) 0;
|
|
164
160
|
}
|
|
165
161
|
main h1 {
|
|
166
|
-
font-size: 0.
|
|
162
|
+
font-size: 0.75rem;
|
|
167
163
|
font-weight: normal;
|
|
168
164
|
line-height: 1.1;
|
|
169
165
|
color: var(--secondary-color);
|
|
@@ -201,6 +197,7 @@ main h2:first-child {
|
|
|
201
197
|
display: flex;
|
|
202
198
|
justify-content: space-between;
|
|
203
199
|
gap: 1em;
|
|
200
|
+
line-height: 1.25;
|
|
204
201
|
border-top: var(--sep-line);
|
|
205
202
|
padding: 0.6em 0 0;
|
|
206
203
|
margin: 1.5em 0 0;
|
|
@@ -214,7 +211,6 @@ main h2:first-child {
|
|
|
214
211
|
.pagenav .prev,
|
|
215
212
|
.pagenav .next {
|
|
216
213
|
display: inline-block;
|
|
217
|
-
line-height: 1.2;
|
|
218
214
|
position: relative;
|
|
219
215
|
}
|
|
220
216
|
.pagenav .icon {
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -189,7 +189,7 @@ ${content}
|
|
|
189
189
|
${nav[i - 1]?.id ? `<a href="${root}${contentDir}/${nav[i - 1]?.id}">${nav[i - 1]?.title}</a>` : `<a href="${root}">Intro</a>`}
|
|
190
190
|
</span>
|
|
191
191
|
<span class="sep">|</span>
|
|
192
|
-
${nav[i + 1]?.id ? `<span class="next"><a href="${root}${contentDir}/${nav[i + 1]?.id}">${nav[i + 1]?.title}</a> <span class="icon">→</span></span>` : `<span class="repo
|
|
192
|
+
${nav[i + 1]?.id ? `<span class="next"><a href="${root}${contentDir}/${nav[i + 1]?.id}">${nav[i + 1]?.title}</a> <span class="icon">→</span></span>` : `<span class="repo">${getRepoLink(ctx)}</span>`}
|
|
193
193
|
</p>
|
|
194
194
|
</main>
|
|
195
195
|
${navContent ? "<hr>" : ""}
|
package/src/css/base.css
CHANGED
|
@@ -108,13 +108,13 @@ h4 {
|
|
|
108
108
|
margin: 1em 0 0.65em 0;
|
|
109
109
|
}
|
|
110
110
|
h2 {
|
|
111
|
-
font-size: 1.
|
|
111
|
+
font-size: 1.3em;
|
|
112
112
|
}
|
|
113
113
|
h3 {
|
|
114
|
-
font-size: 1.
|
|
114
|
+
font-size: 1.15em;
|
|
115
115
|
}
|
|
116
116
|
h4 {
|
|
117
|
-
font-size:
|
|
117
|
+
font-size: 1em;
|
|
118
118
|
}
|
|
119
119
|
main {
|
|
120
120
|
box-sizing: border-box;
|
package/src/css/index.css
CHANGED
|
@@ -41,7 +41,6 @@ h1 {
|
|
|
41
41
|
max-width: 16rem;
|
|
42
42
|
font-size: 1.6em;
|
|
43
43
|
font-weight: 900;
|
|
44
|
-
color: var(--emphatic-color);
|
|
45
44
|
margin: 1rem 0;
|
|
46
45
|
}
|
|
47
46
|
@media (max-width: 840px) {
|
|
@@ -117,6 +116,7 @@ section.intro-title {
|
|
|
117
116
|
align-items: flex-end;
|
|
118
117
|
text-align: right;
|
|
119
118
|
line-height: 1.3;
|
|
119
|
+
color: var(--emphatic-color);
|
|
120
120
|
border-right: 0.05em solid var(--line-color);
|
|
121
121
|
}
|
|
122
122
|
section.intro-title .section-content {
|
|
@@ -170,10 +170,10 @@ section.intro pre {
|
|
|
170
170
|
border-bottom: 0.05em solid var(--line-color);
|
|
171
171
|
}
|
|
172
172
|
section.intro-title .section-content {
|
|
173
|
-
min-height:
|
|
173
|
+
min-height: 35vh;
|
|
174
174
|
align-items: center;
|
|
175
|
-
padding-top:
|
|
176
|
-
padding-bottom:
|
|
175
|
+
padding-top: 2rem;
|
|
176
|
+
padding-bottom: 2.5rem;
|
|
177
177
|
}
|
|
178
178
|
section.intro-title:last-child .section-content {
|
|
179
179
|
max-width: 100%;
|
package/src/css/section.css
CHANGED
|
@@ -33,6 +33,7 @@ footer {
|
|
|
33
33
|
flex: none;
|
|
34
34
|
align-self: stretch;
|
|
35
35
|
font-size: 0.9em;
|
|
36
|
+
line-height: 1.25;
|
|
36
37
|
text-align: end;
|
|
37
38
|
border-right: 0.05em solid var(--line-color);
|
|
38
39
|
padding: 0.75rem var(--content-padding-x);
|
|
@@ -52,7 +53,6 @@ footer {
|
|
|
52
53
|
.body > nav p.title {
|
|
53
54
|
font-size: 0.7rem;
|
|
54
55
|
font-weight: normal;
|
|
55
|
-
line-height: 1.2;
|
|
56
56
|
text-transform: uppercase;
|
|
57
57
|
margin: 1.1rem 0 0.75rem 0;
|
|
58
58
|
}
|
|
@@ -62,7 +62,6 @@ footer {
|
|
|
62
62
|
}
|
|
63
63
|
.body > nav ul {
|
|
64
64
|
list-style: none;
|
|
65
|
-
line-height: 1.2;
|
|
66
65
|
padding: 0;
|
|
67
66
|
margin: 0;
|
|
68
67
|
box-sizing: border-box;
|
|
@@ -89,7 +88,7 @@ footer {
|
|
|
89
88
|
top: 0;
|
|
90
89
|
}
|
|
91
90
|
.body > nav li + li {
|
|
92
|
-
margin-top: 0.
|
|
91
|
+
margin-top: 0.55em;
|
|
93
92
|
}
|
|
94
93
|
.body > nav li > strong {
|
|
95
94
|
color: var(--emphatic-color);
|
|
@@ -117,9 +116,6 @@ footer {
|
|
|
117
116
|
left: 0;
|
|
118
117
|
right: auto;
|
|
119
118
|
}
|
|
120
|
-
.body > nav li + li {
|
|
121
|
-
margin-top: 0.65em;
|
|
122
|
-
}
|
|
123
119
|
}
|
|
124
120
|
.body > nav > ul:last-child,
|
|
125
121
|
.body > nav > ul:last-child > li:last-child {
|
|
@@ -163,7 +159,7 @@ main hr {
|
|
|
163
159
|
margin: var(--block-margin-y) 0;
|
|
164
160
|
}
|
|
165
161
|
main h1 {
|
|
166
|
-
font-size: 0.
|
|
162
|
+
font-size: 0.75rem;
|
|
167
163
|
font-weight: normal;
|
|
168
164
|
line-height: 1.1;
|
|
169
165
|
color: var(--secondary-color);
|
|
@@ -201,6 +197,7 @@ main h2:first-child {
|
|
|
201
197
|
display: flex;
|
|
202
198
|
justify-content: space-between;
|
|
203
199
|
gap: 1em;
|
|
200
|
+
line-height: 1.25;
|
|
204
201
|
border-top: var(--sep-line);
|
|
205
202
|
padding: 0.6em 0 0;
|
|
206
203
|
margin: 1.5em 0 0;
|
|
@@ -214,7 +211,6 @@ main h2:first-child {
|
|
|
214
211
|
.pagenav .prev,
|
|
215
212
|
.pagenav .next {
|
|
216
213
|
display: inline-block;
|
|
217
|
-
line-height: 1.2;
|
|
218
214
|
position: relative;
|
|
219
215
|
}
|
|
220
216
|
.pagenav .icon {
|