lildocs 0.1.21 → 0.1.23

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.
Files changed (36) hide show
  1. package/dist/cli.mjs +19239 -1145
  2. package/dist/core/github-pages.mjs +1 -1
  3. package/dist/{github-pages-clWLKtga.mjs → github-pages-CbcFNgKi.mjs} +17 -10
  4. package/dist/render/client/.vite/manifest.json +8 -0
  5. package/dist/render/client/assets/client-BCZ1mVzx.js +5311 -0
  6. package/dist/render/server/renderer.mjs +714 -0
  7. package/dist/render/styles.css +1 -1
  8. package/docs/assets/favicon.svg +13 -0
  9. package/docs/assets/logo.svg +12 -0
  10. package/docs/config.json +23 -0
  11. package/docs/features/api-reference.md +34 -0
  12. package/docs/features/content.md +86 -0
  13. package/docs/features/mermaid.md +34 -0
  14. package/docs/features/navigation.md +92 -0
  15. package/docs/features/search.md +28 -0
  16. package/docs/getting-started.md +94 -0
  17. package/docs/guides/github-pages.md +61 -0
  18. package/docs/images/example.svg +5 -0
  19. package/docs/index.md +46 -0
  20. package/docs/reference/cli.md +138 -0
  21. package/docs/reference/configuration.md +137 -0
  22. package/docs/reference/theming.md +218 -0
  23. package/package.json +14 -16
  24. package/dist/render/Layout.tsrx +0 -380
  25. package/dist/render/Search.tsrx +0 -414
  26. package/dist/render/client.tsrx +0 -52
  27. package/dist/render/copy-code.ts +0 -56
  28. package/dist/render/heading-links.ts +0 -85
  29. package/dist/render/navigation.ts +0 -16
  30. package/dist/render/paths.ts +0 -47
  31. package/dist/render/renderPage.tsrx +0 -14
  32. package/dist/render/section-highlight.ts +0 -63
  33. package/dist/render/sidebar.ts +0 -93
  34. package/dist/render/table-viewer.ts +0 -161
  35. package/dist/render/toc-visibility.ts +0 -78
  36. package/dist/render/types.ts +0 -9
@@ -1,2 +1,2 @@
1
- import { n as renderGitHubPagesWorkflow, r as repoRelativeInputPath, t as normalizeBasePath } from "../github-pages-clWLKtga.mjs";
1
+ import { n as renderGitHubPagesWorkflow, r as repoRelativeInputPath, t as normalizeBasePath } from "../github-pages-CbcFNgKi.mjs";
2
2
  export { normalizeBasePath, renderGitHubPagesWorkflow, repoRelativeInputPath };
@@ -16,6 +16,16 @@ function repoRelativeInputPath(input, cwd) {
16
16
  }
17
17
  function renderGitHubPagesWorkflow(options) {
18
18
  const pnpmVersion = options.pnpmVersion ?? DEFAULT_PNPM_VERSION;
19
+ const pnpmActionSetupOptions = pnpmVersion === false ? "" : ` with:
20
+ version: ${pnpmVersion}
21
+ `;
22
+ const deployArgs = [
23
+ "deploy",
24
+ options.input,
25
+ "--out",
26
+ options.outDir,
27
+ ...options.basePath ? ["--base", normalizeBasePath(options.basePath)] : []
28
+ ];
19
29
  return `name: Deploy lildocs to GitHub Pages
20
30
 
21
31
  on:
@@ -38,21 +48,13 @@ jobs:
38
48
  steps:
39
49
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
40
50
  - uses: pnpm/action-setup@7088e561eb65bb68695d245aa206f005ef30921d
41
- ${pnpmVersion === false ? "" : ` with:
42
- version: ${pnpmVersion}
43
- `} - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
51
+ ${pnpmActionSetupOptions} - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
44
52
  with:
45
53
  node-version: 24
46
54
  cache: pnpm
47
55
  - run: pnpm install --frozen-lockfile
48
56
  - run: pnpm run build
49
- - run: pnpm exec lildocs ${[
50
- "deploy",
51
- options.input,
52
- "--out",
53
- options.outDir,
54
- ...options.basePath ? ["--base", normalizeBasePath(options.basePath)] : []
55
- ].map(shellQuote).join(" ")}
57
+ - run: pnpm dlx lildocs@${patchVersionRange(options.lildocsVersion ?? "0.1.23")} ${deployArgs.map(shellQuote).join(" ")}
56
58
  - uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b
57
59
  - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
58
60
  with:
@@ -68,6 +70,11 @@ ${pnpmVersion === false ? "" : ` with:
68
70
  uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e
69
71
  `;
70
72
  }
73
+ function patchVersionRange(version) {
74
+ const match = /^(\d+)\.(\d+)\./.exec(version);
75
+ if (!match) throw new Error(`Invalid lildocs version: ${version}`);
76
+ return `${match[1]}.${match[2]}.x`;
77
+ }
71
78
  function shellQuote(value) {
72
79
  if (/^[A-Za-z0-9_./:@-]+$/.test(value)) return value;
73
80
  return `'${value.replaceAll("'", "'\\''")}'`;
@@ -0,0 +1,8 @@
1
+ {
2
+ "client.tsrx": {
3
+ "file": "assets/client-BCZ1mVzx.js",
4
+ "name": "client",
5
+ "src": "client.tsrx",
6
+ "isEntry": true
7
+ }
8
+ }