@t8/docsgen 0.1.62 → 0.1.64
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 +17 -15
- package/dist/css/base.css +1 -0
- package/dist/css/index.css +26 -10
- package/package.json +1 -1
- package/src/bin/setContent.ts +17 -15
- package/src/css/base.css +1 -0
- package/src/css/index.css +26 -10
package/dist/bin.js
CHANGED
|
@@ -765,31 +765,33 @@ ${getInjectedContent(ctx, "section", "body")}
|
|
|
765
765
|
<div class="layout">
|
|
766
766
|
<main>
|
|
767
767
|
<section class="intro-title">
|
|
768
|
-
<div class="
|
|
769
|
-
|
|
768
|
+
<div class="section-content">
|
|
769
|
+
<div class="badges">
|
|
770
|
+
${badges}
|
|
771
|
+
</div>
|
|
772
|
+
<h1>${getTitle(ctx, { cover: true })}</h1>
|
|
773
|
+
<div class="description">
|
|
774
|
+
${description || (escapedPackageDescription ? `<p><em>${escapedPackageDescription}</em><p>` : "")}
|
|
775
|
+
</div>
|
|
776
|
+
<p class="actions">
|
|
777
|
+
<a href="${root}start" class="primary button">Docs</a>
|
|
778
|
+
<span class="sep"> \u2022 </span>
|
|
779
|
+
${getRepoLink(ctx, "button")}
|
|
780
|
+
</p>
|
|
781
|
+
${backstory ? `<p class="ref"><a href="${backstory}">Backstory</a></p>` : ""}
|
|
782
|
+
<p class="installation"><code>${installation}</code></p>
|
|
770
783
|
</div>
|
|
771
|
-
<h1>${getTitle(ctx, { cover: true })}</h1>
|
|
772
|
-
<div class="description">
|
|
773
|
-
${description || (escapedPackageDescription ? `<p><em>${escapedPackageDescription}</em><p>` : "")}
|
|
774
|
-
</div>
|
|
775
|
-
<p class="actions">
|
|
776
|
-
<a href="${root}start" class="primary button">Docs</a>
|
|
777
|
-
<span class="sep"> \u2022 </span>
|
|
778
|
-
${getRepoLink(ctx, "button")}
|
|
779
|
-
</p>
|
|
780
|
-
${backstory ? `<p class="ref"><a href="${backstory}">Backstory</a></p>` : ""}
|
|
781
|
-
<p class="installation"><code>${installation}</code></p>
|
|
782
784
|
<script>document.querySelectorAll(".badges img").forEach(img=>{let c=img.closest(".badge");if(c){if(img.complete)c.classList.add("loaded");else{img.onload=()=>{c.classList.add("loaded");};img.onerror=()=>{c.classList.add("failed");};}}});</script>
|
|
783
785
|
</section>
|
|
784
786
|
${intro || features ? `
|
|
785
787
|
<section class="intro">
|
|
786
788
|
${intro ? `
|
|
787
|
-
<div class="
|
|
789
|
+
<div class="section-content">
|
|
788
790
|
${intro}
|
|
789
791
|
</div>
|
|
790
792
|
` : ""}
|
|
791
793
|
${features ? `
|
|
792
|
-
<div class="features">
|
|
794
|
+
<div class="features section-content">
|
|
793
795
|
<h2>Features</h2>
|
|
794
796
|
${features}
|
|
795
797
|
</div>
|
package/dist/css/base.css
CHANGED
package/dist/css/index.css
CHANGED
|
@@ -38,7 +38,7 @@ body {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
main {
|
|
41
|
-
--max-content-width:
|
|
41
|
+
--max-content-width: 36em;
|
|
42
42
|
--line-color: color(from var(--c0) srgb r g b / 0.1);
|
|
43
43
|
|
|
44
44
|
display: flex;
|
|
@@ -46,7 +46,7 @@ main {
|
|
|
46
46
|
align-items: flex-start;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
padding: 0;
|
|
49
|
-
margin:
|
|
49
|
+
margin: 0;
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
}
|
|
52
52
|
@media (max-width: 840px) {
|
|
@@ -128,29 +128,45 @@ header {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
section {
|
|
131
|
+
width: 50%;
|
|
132
|
+
align-self: stretch;
|
|
133
|
+
padding: 0;
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
}
|
|
136
|
+
section .section-content {
|
|
131
137
|
max-width: var(--max-content-width);
|
|
132
|
-
padding:
|
|
138
|
+
padding: 1em 3.5vw;
|
|
133
139
|
box-sizing: border-box;
|
|
134
140
|
}
|
|
135
|
-
section
|
|
141
|
+
section.intro-title {
|
|
136
142
|
display: flex;
|
|
137
143
|
flex-direction: column;
|
|
138
|
-
align-
|
|
139
|
-
justify-content: center;
|
|
140
|
-
border-left: 0.1em solid var(--line-color);
|
|
141
|
-
}
|
|
142
|
-
section.intro-title {
|
|
144
|
+
align-items: center;
|
|
143
145
|
text-align: center;
|
|
146
|
+
}
|
|
147
|
+
section.intro-title .section-content {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
min-height: 95vh;
|
|
144
152
|
padding-top: 4em;
|
|
145
153
|
padding-bottom: 4em;
|
|
146
154
|
}
|
|
155
|
+
section.intro {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
}
|
|
160
|
+
section.intro .section-content {
|
|
161
|
+
width: 100%;
|
|
162
|
+
}
|
|
147
163
|
@media (max-width: 840px) {
|
|
148
164
|
section {
|
|
149
165
|
width: auto;
|
|
150
166
|
max-width: 100%;
|
|
151
167
|
padding: var(--content-padding-y) var(--content-padding-x);
|
|
152
168
|
}
|
|
153
|
-
section
|
|
169
|
+
section.intro {
|
|
154
170
|
align-items: center;
|
|
155
171
|
border-left: none;
|
|
156
172
|
}
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -185,20 +185,22 @@ ${getInjectedContent(ctx, "section", "body")}
|
|
|
185
185
|
<div class="layout">
|
|
186
186
|
<main>
|
|
187
187
|
<section class="intro-title">
|
|
188
|
-
<div class="
|
|
189
|
-
|
|
188
|
+
<div class="section-content">
|
|
189
|
+
<div class="badges">
|
|
190
|
+
${badges}
|
|
191
|
+
</div>
|
|
192
|
+
<h1>${getTitle(ctx, { cover: true })}</h1>
|
|
193
|
+
<div class="description">
|
|
194
|
+
${description || (escapedPackageDescription ? `<p><em>${escapedPackageDescription}</em><p>` : "")}
|
|
195
|
+
</div>
|
|
196
|
+
<p class="actions">
|
|
197
|
+
<a href="${root}start" class="primary button">Docs</a>
|
|
198
|
+
<span class="sep"> • </span>
|
|
199
|
+
${getRepoLink(ctx, "button")}
|
|
200
|
+
</p>
|
|
201
|
+
${backstory ? `<p class="ref"><a href="${backstory}">Backstory</a></p>` : ""}
|
|
202
|
+
<p class="installation"><code>${installation}</code></p>
|
|
190
203
|
</div>
|
|
191
|
-
<h1>${getTitle(ctx, { cover: true })}</h1>
|
|
192
|
-
<div class="description">
|
|
193
|
-
${description || (escapedPackageDescription ? `<p><em>${escapedPackageDescription}</em><p>` : "")}
|
|
194
|
-
</div>
|
|
195
|
-
<p class="actions">
|
|
196
|
-
<a href="${root}start" class="primary button">Docs</a>
|
|
197
|
-
<span class="sep"> • </span>
|
|
198
|
-
${getRepoLink(ctx, "button")}
|
|
199
|
-
</p>
|
|
200
|
-
${backstory ? `<p class="ref"><a href="${backstory}">Backstory</a></p>` : ""}
|
|
201
|
-
<p class="installation"><code>${installation}</code></p>
|
|
202
204
|
<script>document.querySelectorAll(".badges img").forEach(img=>{let c=img.closest(".badge");if(c){if(img.complete)c.classList.add("loaded");else{img.onload=()=>{c.classList.add("loaded");};img.onerror=()=>{c.classList.add("failed");};}}});</script>
|
|
203
205
|
</section>
|
|
204
206
|
${
|
|
@@ -208,7 +210,7 @@ ${
|
|
|
208
210
|
${
|
|
209
211
|
intro
|
|
210
212
|
? `
|
|
211
|
-
<div class="
|
|
213
|
+
<div class="section-content">
|
|
212
214
|
${intro}
|
|
213
215
|
</div>
|
|
214
216
|
`
|
|
@@ -217,7 +219,7 @@ ${
|
|
|
217
219
|
${
|
|
218
220
|
features
|
|
219
221
|
? `
|
|
220
|
-
<div class="features">
|
|
222
|
+
<div class="features section-content">
|
|
221
223
|
<h2>Features</h2>
|
|
222
224
|
${features}
|
|
223
225
|
</div>
|
package/src/css/base.css
CHANGED
package/src/css/index.css
CHANGED
|
@@ -38,7 +38,7 @@ body {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
main {
|
|
41
|
-
--max-content-width:
|
|
41
|
+
--max-content-width: 36em;
|
|
42
42
|
--line-color: color(from var(--c0) srgb r g b / 0.1);
|
|
43
43
|
|
|
44
44
|
display: flex;
|
|
@@ -46,7 +46,7 @@ main {
|
|
|
46
46
|
align-items: flex-start;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
padding: 0;
|
|
49
|
-
margin:
|
|
49
|
+
margin: 0;
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
}
|
|
52
52
|
@media (max-width: 840px) {
|
|
@@ -128,29 +128,45 @@ header {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
section {
|
|
131
|
+
width: 50%;
|
|
132
|
+
align-self: stretch;
|
|
133
|
+
padding: 0;
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
}
|
|
136
|
+
section .section-content {
|
|
131
137
|
max-width: var(--max-content-width);
|
|
132
|
-
padding:
|
|
138
|
+
padding: 1em 3.5vw;
|
|
133
139
|
box-sizing: border-box;
|
|
134
140
|
}
|
|
135
|
-
section
|
|
141
|
+
section.intro-title {
|
|
136
142
|
display: flex;
|
|
137
143
|
flex-direction: column;
|
|
138
|
-
align-
|
|
139
|
-
justify-content: center;
|
|
140
|
-
border-left: 0.1em solid var(--line-color);
|
|
141
|
-
}
|
|
142
|
-
section.intro-title {
|
|
144
|
+
align-items: center;
|
|
143
145
|
text-align: center;
|
|
146
|
+
}
|
|
147
|
+
section.intro-title .section-content {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
min-height: 95vh;
|
|
144
152
|
padding-top: 4em;
|
|
145
153
|
padding-bottom: 4em;
|
|
146
154
|
}
|
|
155
|
+
section.intro {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
}
|
|
160
|
+
section.intro .section-content {
|
|
161
|
+
width: 100%;
|
|
162
|
+
}
|
|
147
163
|
@media (max-width: 840px) {
|
|
148
164
|
section {
|
|
149
165
|
width: auto;
|
|
150
166
|
max-width: 100%;
|
|
151
167
|
padding: var(--content-padding-y) var(--content-padding-x);
|
|
152
168
|
}
|
|
153
|
-
section
|
|
169
|
+
section.intro {
|
|
154
170
|
align-items: center;
|
|
155
171
|
border-left: none;
|
|
156
172
|
}
|