@t8/docsgen 0.1.78 → 0.1.80
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 +6 -11
- package/dist/css/index.css +0 -1
- package/package.json +1 -1
- package/src/bin/setContent.ts +6 -19
- package/src/css/index.css +0 -1
package/dist/bin.js
CHANGED
|
@@ -703,6 +703,7 @@ ${getInjectedContent(ctx, "redirect", "body")}
|
|
|
703
703
|
descriptionNote,
|
|
704
704
|
intro,
|
|
705
705
|
features,
|
|
706
|
+
note,
|
|
706
707
|
installation,
|
|
707
708
|
sections,
|
|
708
709
|
nav
|
|
@@ -812,25 +813,19 @@ ${getInjectedContent(ctx, "section", "body")}
|
|
|
812
813
|
</div>
|
|
813
814
|
<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>
|
|
814
815
|
</section>
|
|
815
|
-
${intro || features ? `
|
|
816
|
+
${intro || features || note ? `
|
|
816
817
|
<section class="intro">
|
|
817
|
-
${intro ? `
|
|
818
818
|
<div class="section-content">
|
|
819
|
-
${intro}
|
|
819
|
+
${intro ? `<div class="intro">${intro}</div>` : ""}
|
|
820
|
+
${features ? `<div class="features">${features}</div>` : ""}
|
|
821
|
+
${note ? `<div class="note">${note}</div>` : ""}
|
|
820
822
|
</div>
|
|
821
|
-
` : ""}
|
|
822
|
-
${features ? `
|
|
823
|
-
<div class="features section-content">
|
|
824
|
-
<h2>Features</h2>
|
|
825
|
-
${features}
|
|
826
|
-
</div>
|
|
827
|
-
` : ""}
|
|
828
823
|
</section>
|
|
829
824
|
` : ""}
|
|
830
825
|
</main>
|
|
831
826
|
</div>
|
|
832
827
|
|
|
833
|
-
${[description, intro, features].some((s) => s.includes("<pre><code ")) ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent : ""}
|
|
828
|
+
${[description, intro, features, note].some((s) => s.includes("<pre><code ")) ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent : ""}
|
|
834
829
|
${counterContent}
|
|
835
830
|
${getInjectedContent(ctx, "index", "body")}
|
|
836
831
|
</body>
|
package/dist/css/index.css
CHANGED
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -95,6 +95,7 @@ ${getInjectedContent(ctx, "redirect", "body")}
|
|
|
95
95
|
descriptionNote,
|
|
96
96
|
intro,
|
|
97
97
|
features,
|
|
98
|
+
note,
|
|
98
99
|
installation,
|
|
99
100
|
sections,
|
|
100
101
|
nav,
|
|
@@ -213,28 +214,14 @@ ${getInjectedContent(ctx, "section", "body")}
|
|
|
213
214
|
<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>
|
|
214
215
|
</section>
|
|
215
216
|
${
|
|
216
|
-
intro || features
|
|
217
|
+
intro || features || note
|
|
217
218
|
? `
|
|
218
219
|
<section class="intro">
|
|
219
|
-
${
|
|
220
|
-
intro
|
|
221
|
-
? `
|
|
222
220
|
<div class="section-content">
|
|
223
|
-
${intro}
|
|
221
|
+
${intro ? `<div class="intro">${intro}</div>` : ""}
|
|
222
|
+
${features ? `<div class="features">${features}</div>` : ""}
|
|
223
|
+
${note ? `<div class="note">${note}</div>` : ""}
|
|
224
224
|
</div>
|
|
225
|
-
`
|
|
226
|
-
: ""
|
|
227
|
-
}
|
|
228
|
-
${
|
|
229
|
-
features
|
|
230
|
-
? `
|
|
231
|
-
<div class="features section-content">
|
|
232
|
-
<h2>Features</h2>
|
|
233
|
-
${features}
|
|
234
|
-
</div>
|
|
235
|
-
`
|
|
236
|
-
: ""
|
|
237
|
-
}
|
|
238
225
|
</section>
|
|
239
226
|
`
|
|
240
227
|
: ""
|
|
@@ -243,7 +230,7 @@ ${
|
|
|
243
230
|
</div>
|
|
244
231
|
|
|
245
232
|
${
|
|
246
|
-
[description, intro, features].some((s) => s.includes("<pre><code "))
|
|
233
|
+
[description, intro, features, note].some((s) => s.includes("<pre><code "))
|
|
247
234
|
? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent
|
|
248
235
|
: ""
|
|
249
236
|
}
|