@t8/docsgen 0.1.31 → 0.1.32
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 -2
- package/package.json +1 -1
- package/src/bin/setContent.ts +3 -2
package/dist/bin.js
CHANGED
|
@@ -631,8 +631,8 @@ ${getInjectedContent(ctx, "redirect", "body")}
|
|
|
631
631
|
<head>
|
|
632
632
|
<meta charset="utf-8">
|
|
633
633
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
634
|
-
<meta name="description" content="${escapedTitle}: ${escapeHTML(nav[i]?.title)}">
|
|
635
|
-
<title>${escapeHTML(nav[i]?.title)} | ${escapedTitle}</title>
|
|
634
|
+
<meta name="description" content="${escapedTitle}: ${escapeHTML(stripHTML(nav[i]?.title))}">
|
|
635
|
+
<title>${escapeHTML(stripHTML(nav[i]?.title))} | ${escapedTitle}</title>
|
|
636
636
|
<link rel="stylesheet" href="${packageUrl}/dist/css/base.css">
|
|
637
637
|
<link rel="stylesheet" href="${packageUrl}/dist/css/section.css">
|
|
638
638
|
${iconTag}
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { getParsedContent } from "./getParsedContent";
|
|
|
14
14
|
import { getRepoLink } from "./getRepoLink";
|
|
15
15
|
import { getTitle } from "./getTitle";
|
|
16
16
|
import { toFileContent } from "./toFileContent";
|
|
17
|
+
import { stripHTML } from "./stripHTML";
|
|
17
18
|
|
|
18
19
|
const exec = promisify(defaultExec);
|
|
19
20
|
|
|
@@ -115,8 +116,8 @@ ${getInjectedContent(ctx, "redirect", "body")}
|
|
|
115
116
|
<head>
|
|
116
117
|
<meta charset="utf-8">
|
|
117
118
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
118
|
-
<meta name="description" content="${escapedTitle}: ${escapeHTML(nav[i]?.title)}">
|
|
119
|
-
<title>${escapeHTML(nav[i]?.title)} | ${escapedTitle}</title>
|
|
119
|
+
<meta name="description" content="${escapedTitle}: ${escapeHTML(stripHTML(nav[i]?.title))}">
|
|
120
|
+
<title>${escapeHTML(stripHTML(nav[i]?.title))} | ${escapedTitle}</title>
|
|
120
121
|
<link rel="stylesheet" href="${packageUrl}/dist/css/base.css">
|
|
121
122
|
<link rel="stylesheet" href="${packageUrl}/dist/css/section.css">
|
|
122
123
|
${iconTag}
|