executable-stories-formatters 0.10.0 → 0.11.1

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/README.md CHANGED
@@ -135,6 +135,41 @@ const generator = new ReportGenerator({
135
135
  });
136
136
  ```
137
137
 
138
+ ## Living docs site (Confluence replacement)
139
+
140
+ Scaffold an Astro/Starlight site whose pages stay honest because the tests keep
141
+ them verified. These commands operate on the canonical story report, so they
142
+ work for stories written in **any language** (TypeScript, Python, Go, Ruby,
143
+ Java/Kotlin, Rust, C#).
144
+
145
+ ```bash
146
+ # 1. Scaffold the site (ships verified-by badges, a health dashboard, explorer)
147
+ executable-stories init-astro story-docs
148
+
149
+ # 2. Generate story pages + report data from any test run
150
+ executable-stories format run.json --format astro --output-dir story-docs/src/content/docs/stories --asset-mode copy
151
+ executable-stories format run.json --format story-report-json --output-dir story-docs/public/stories --output-name story-report
152
+
153
+ # 3. Start hand-written pages from a verified template
154
+ executable-stories new adr "Cap combined discount at 30%" # also: runbook, decision-log, incident
155
+
156
+ # 4. Generate API docs with per-endpoint test coverage
157
+ executable-stories import-openapi openapi.json --run run.json --output-dir story-docs/src/content/docs/api
158
+
159
+ # 5. Fail CI if docs links rot
160
+ executable-stories check-links story-docs/src/content/docs
161
+ ```
162
+
163
+ Any page can declare the stories that prove it. The badge under the title turns
164
+ red the moment a linked story fails:
165
+
166
+ ```yaml
167
+ ---
168
+ title: ADR 0007 — Cap combined discount at 30%
169
+ verifiedBy: [pricing, checkout--caps-the-discount-at-30-percent]
170
+ ---
171
+ ```
172
+
138
173
  ## Architecture
139
174
 
140
175
  ```
@@ -1 +1 @@
1
- export { J as JestAdapterOptions, n as JestAggregatedResult, o as JestFileResult, p as JestTestResult, P as PlaywrightAdapterOptions, r as PlaywrightAnnotation, s as PlaywrightAttachment, t as PlaywrightError, u as PlaywrightLocation, v as PlaywrightStatus, w as PlaywrightTestCase, x as PlaywrightTestResult, G as StoryFileReport, V as VitestAdapterOptions, L as VitestSerializedError, M as VitestState, Q as VitestTestCase, U as VitestTestModule, W as VitestTestResult, i as adaptJestRun, j as adaptPlaywrightRun, k as adaptVitestRun } from './index-CbWFyoTx.cjs';
1
+ export { J as JestAdapterOptions, n as JestAggregatedResult, o as JestFileResult, p as JestTestResult, P as PlaywrightAdapterOptions, r as PlaywrightAnnotation, s as PlaywrightAttachment, t as PlaywrightError, u as PlaywrightLocation, v as PlaywrightStatus, w as PlaywrightTestCase, x as PlaywrightTestResult, G as StoryFileReport, V as VitestAdapterOptions, L as VitestSerializedError, M as VitestState, Q as VitestTestCase, U as VitestTestModule, W as VitestTestResult, i as adaptJestRun, j as adaptPlaywrightRun, k as adaptVitestRun } from './index-DF16Xl5i.cjs';
@@ -1 +1 @@
1
- export { J as JestAdapterOptions, n as JestAggregatedResult, o as JestFileResult, p as JestTestResult, P as PlaywrightAdapterOptions, r as PlaywrightAnnotation, s as PlaywrightAttachment, t as PlaywrightError, u as PlaywrightLocation, v as PlaywrightStatus, w as PlaywrightTestCase, x as PlaywrightTestResult, G as StoryFileReport, V as VitestAdapterOptions, L as VitestSerializedError, M as VitestState, Q as VitestTestCase, U as VitestTestModule, W as VitestTestResult, i as adaptJestRun, j as adaptPlaywrightRun, k as adaptVitestRun } from './index-CbWFyoTx.js';
1
+ export { J as JestAdapterOptions, n as JestAggregatedResult, o as JestFileResult, p as JestTestResult, P as PlaywrightAdapterOptions, r as PlaywrightAnnotation, s as PlaywrightAttachment, t as PlaywrightError, u as PlaywrightLocation, v as PlaywrightStatus, w as PlaywrightTestCase, x as PlaywrightTestResult, G as StoryFileReport, V as VitestAdapterOptions, L as VitestSerializedError, M as VitestState, Q as VitestTestCase, U as VitestTestModule, W as VitestTestResult, i as adaptJestRun, j as adaptPlaywrightRun, k as adaptVitestRun } from './index-DF16Xl5i.js';