@t8/docsgen 0.1.94 → 0.1.95
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 +4 -4
- package/package.json +1 -1
- package/src/bin/setContent.ts +4 -4
package/dist/bin.js
CHANGED
|
@@ -682,10 +682,10 @@ function toFileContent(x) {
|
|
|
682
682
|
var exec = (0, import_node_util.promisify)(import_node_child_process.exec);
|
|
683
683
|
function getDefaultCodeStyleContent(cssRoot) {
|
|
684
684
|
return `
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
685
|
+
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css">
|
|
686
|
+
<link rel="stylesheet" href="${cssRoot}/code.css">
|
|
687
|
+
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
|
|
688
|
+
<script>hljs.highlightAll()</script>
|
|
689
689
|
`.trim();
|
|
690
690
|
}
|
|
691
691
|
async function setContent(ctx) {
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -20,10 +20,10 @@ const exec = promisify(defaultExec);
|
|
|
20
20
|
|
|
21
21
|
function getDefaultCodeStyleContent(cssRoot: string) {
|
|
22
22
|
return `
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css">
|
|
24
|
+
<link rel="stylesheet" href="${cssRoot}/code.css">
|
|
25
|
+
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
|
|
26
|
+
<script>hljs.highlightAll()</script>
|
|
27
27
|
`.trim();
|
|
28
28
|
}
|
|
29
29
|
|