@t8/docsgen 0.1.30 → 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 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}
@@ -43,10 +43,12 @@ main {
43
43
  --max-content-width: 32em;
44
44
 
45
45
  display: flex;
46
+ width: 100%;
46
47
  align-items: flex-start;
47
48
  justify-content: center;
48
49
  padding: 0;
49
50
  margin: 6vh 0;
51
+ box-sizing: border-box;
50
52
  }
51
53
  @media (max-width: 840px) {
52
54
  main {
@@ -126,6 +128,7 @@ header {
126
128
  }
127
129
 
128
130
  section {
131
+ width: 50%;
129
132
  max-width: var(--max-content-width);
130
133
  padding: 0 2.5em;
131
134
  box-sizing: border-box;
@@ -144,6 +147,7 @@ section.intro-title {
144
147
  }
145
148
  @media (max-width: 840px) {
146
149
  section {
150
+ width: auto;
147
151
  max-width: 100%;
148
152
  padding: var(--content-padding-y) var(--content-padding-x);
149
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -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}
package/src/css/index.css CHANGED
@@ -43,10 +43,12 @@ main {
43
43
  --max-content-width: 32em;
44
44
 
45
45
  display: flex;
46
+ width: 100%;
46
47
  align-items: flex-start;
47
48
  justify-content: center;
48
49
  padding: 0;
49
50
  margin: 6vh 0;
51
+ box-sizing: border-box;
50
52
  }
51
53
  @media (max-width: 840px) {
52
54
  main {
@@ -126,6 +128,7 @@ header {
126
128
  }
127
129
 
128
130
  section {
131
+ width: 50%;
129
132
  max-width: var(--max-content-width);
130
133
  padding: 0 2.5em;
131
134
  box-sizing: border-box;
@@ -144,6 +147,7 @@ section.intro-title {
144
147
  }
145
148
  @media (max-width: 840px) {
146
149
  section {
150
+ width: auto;
147
151
  max-width: 100%;
148
152
  padding: var(--content-padding-y) var(--content-padding-x);
149
153
  }