@t8/docsgen 0.4.5 → 0.4.7

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
@@ -861,11 +861,8 @@ ${getInjectedContent(ctx, "section", "body", "prepend")}
861
861
  ${content}
862
862
 
863
863
  <p class="pagenav">
864
- <span class="prev">
865
- <span class="icon">\u2190</span>
866
- ${nav[index - 1]?.id ? `<a href="${root}${contentDir}/${nav[index - 1]?.id}">${nav[index - 1]?.title}</a>` : `<a href="${root}">Intro</a>`}
867
- </span>
868
- <span class="sep">|</span>
864
+ ${nav[index - 1]?.id ? `<span class="prev"><span class="icon">\u2190</span> <a href="${root}${contentDir}/${nav[index - 1]?.id}">${nav[index - 1]?.title}</a></span>
865
+ <span class="sep">|</span>` : ""}
869
866
  ${nav[index + 1]?.id ? `<span class="next"><a href="${root}${contentDir}/${nav[index + 1]?.id}">${nav[index + 1]?.title}</a> <span class="icon">\u2192</span></span>` : `<span class="repo">${getRepoLink(ctx)}</span>`}
870
867
  </p>
871
868
  </main>
@@ -192,6 +192,9 @@ aside li > strong {
192
192
  aside > .header {
193
193
  display: none;
194
194
  }
195
+ aside nav {
196
+ font-size: inherit;
197
+ }
195
198
  aside section {
196
199
  max-width: 100%;
197
200
  }
@@ -307,7 +310,9 @@ main h2:first-child {
307
310
  .pagenav .prev .icon {
308
311
  left: 0;
309
312
  }
310
- .pagenav .next {
313
+ .pagenav .next,
314
+ .pagenav .repo {
315
+ flex: auto;
311
316
  text-align: right;
312
317
  }
313
318
  .pagenav .next .icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "type": "module",
@@ -62,11 +62,7 @@ ${getInjectedContent(ctx, "section", "body", "prepend")}
62
62
  ${content}
63
63
 
64
64
  <p class="pagenav">
65
- <span class="prev">
66
- <span class="icon">←</span>
67
- ${nav[index - 1]?.id ? `<a href="${root}${contentDir}/${nav[index - 1]?.id}">${nav[index - 1]?.title}</a>` : `<a href="${root}">Intro</a>`}
68
- </span>
69
- <span class="sep">|</span>
65
+ ${nav[index - 1]?.id ? `<span class="prev"><span class="icon">←</span> <a href="${root}${contentDir}/${nav[index - 1]?.id}">${nav[index - 1]?.title}</a></span>\n <span class="sep">|</span>` : ""}
70
66
  ${nav[index + 1]?.id ? `<span class="next"><a href="${root}${contentDir}/${nav[index + 1]?.id}">${nav[index + 1]?.title}</a> <span class="icon">→</span></span>` : `<span class="repo">${getRepoLink(ctx)}</span>`}
71
67
  </p>
72
68
  </main>
@@ -192,6 +192,9 @@ aside li > strong {
192
192
  aside > .header {
193
193
  display: none;
194
194
  }
195
+ aside nav {
196
+ font-size: inherit;
197
+ }
195
198
  aside section {
196
199
  max-width: 100%;
197
200
  }
@@ -307,7 +310,9 @@ main h2:first-child {
307
310
  .pagenav .prev .icon {
308
311
  left: 0;
309
312
  }
310
- .pagenav .next {
313
+ .pagenav .next,
314
+ .pagenav .repo {
315
+ flex: auto;
311
316
  text-align: right;
312
317
  }
313
318
  .pagenav .next .icon {