@ankhorage/paradox 0.1.2 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 919d454: Render README CLI entries as per-command accordions and show sequence diagrams directly inside the expanded command section.
8
+
3
9
  ## 0.1.2
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/paradox
5
5
 
6
- ![license: MIT](./paradox/badges/license.svg) ![npm: v0.1.1](./paradox/badges/npm.svg) ![runtime: bun](./paradox/badges/runtime.svg) ![typescript: strict](./paradox/badges/typescript.svg) ![eslint: checked](./paradox/badges/eslint.svg) ![prettier: checked](./paradox/badges/prettier.svg) ![build: checked](./paradox/badges/build.svg) ![tests: checked](./paradox/badges/tests.svg) ![docs: paradox](./paradox/badges/docs.svg)
6
+ ![license: MIT](./paradox/badges/license.svg) ![npm: v0.1.2](./paradox/badges/npm.svg) ![runtime: bun](./paradox/badges/runtime.svg) ![typescript: strict](./paradox/badges/typescript.svg) ![eslint: checked](./paradox/badges/eslint.svg) ![prettier: checked](./paradox/badges/prettier.svg) ![build: checked](./paradox/badges/build.svg) ![tests: checked](./paradox/badges/tests.svg) ![docs: paradox](./paradox/badges/docs.svg)
7
7
 
8
8
  Deterministic documentation generator for TypeScript packages.
9
9
 
@@ -15,7 +15,8 @@ bunx @ankhorage/paradox
15
15
 
16
16
  ## CLI
17
17
 
18
- ### paradox
18
+ <details>
19
+ <summary>paradox</summary>
19
20
 
20
21
  Runs the Paradox CLI.
21
22
 
@@ -27,9 +28,6 @@ and writes them to the configured output directory.
27
28
  bunx @ankhorage/paradox
28
29
  ```
29
30
 
30
- <details>
31
- <summary>paradox sequence</summary>
32
-
33
31
  Diagram: [paradox sequence](./paradox/diagrams/sequences/paradox.mmd)
34
32
 
35
33
  ```mermaid
@@ -49,7 +49,8 @@ function renderCliScenarios(lines, model, outputDir, diagrams) {
49
49
  return;
50
50
  lines.push('## CLI', '');
51
51
  for (const scenario of scenarios) {
52
- lines.push(`### ${scenario.name}`, '');
52
+ lines.push('<details>');
53
+ lines.push(`<summary>${scenario.name}</summary>`, '');
53
54
  if (scenario.description !== null) {
54
55
  lines.push(scenario.description, '');
55
56
  }
@@ -61,14 +62,12 @@ function renderCliScenarios(lines, model, outputDir, diagrams) {
61
62
  }
62
63
  const diagram = findScenarioDiagram(diagrams, scenario);
63
64
  if (diagram !== undefined) {
64
- lines.push('<details>');
65
- lines.push(`<summary>${scenario.name} sequence</summary>`, '');
66
65
  lines.push(`Diagram: [${diagram.title}](./${outputDir}/${diagram.path})`, '');
67
66
  lines.push('```mermaid');
68
67
  lines.push(diagram.content.trimEnd());
69
68
  lines.push('```', '');
70
- lines.push('</details>', '');
71
69
  }
70
+ lines.push('</details>', '');
72
71
  }
73
72
  }
74
73
  function findScenarioDiagram(diagrams, scenario) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/paradox",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Deterministic documentation generator for TypeScript packages.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {