@t8/docsgen 0.1.60 → 0.1.62
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 -1
- package/package.json +1 -1
- package/src/bin/getParsedContent.ts +2 -0
- package/src/bin/setContent.ts +1 -1
package/dist/bin.js
CHANGED
|
@@ -582,6 +582,7 @@ async function getParsedContent(ctx) {
|
|
|
582
582
|
intro.unshift(description[0]);
|
|
583
583
|
description = [];
|
|
584
584
|
}
|
|
585
|
+
if (intro.at(-1) === "<hr>") intro.pop();
|
|
585
586
|
return {
|
|
586
587
|
badges: postprocessBadges(joinLines(badges)),
|
|
587
588
|
title,
|
|
@@ -798,7 +799,7 @@ ${features ? `
|
|
|
798
799
|
</main>
|
|
799
800
|
</div>
|
|
800
801
|
|
|
801
|
-
${[description, features].some((s) => s.includes("<pre><code ")) ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent : ""}
|
|
802
|
+
${[description, intro, features].some((s) => s.includes("<pre><code ")) ? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent : ""}
|
|
802
803
|
${counterContent}
|
|
803
804
|
${getInjectedContent(ctx, "index", "body")}
|
|
804
805
|
</body>
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -232,7 +232,7 @@ ${
|
|
|
232
232
|
</div>
|
|
233
233
|
|
|
234
234
|
${
|
|
235
|
-
[description, features].some((s) => s.includes("<pre><code "))
|
|
235
|
+
[description, intro, features].some((s) => s.includes("<pre><code "))
|
|
236
236
|
? getInjectedContent(ctx, "index", ":has-code") || defaultCodeStyleContent
|
|
237
237
|
: ""
|
|
238
238
|
}
|