executable-stories-formatters 0.14.0 → 0.15.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/dist/cli.js +346 -167
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/schemas/README.md +1 -1
- package/templates/astro-starlight/astro.config.mjs +57 -0
- package/templates/astro-starlight/gitignore +14 -0
- package/templates/astro-starlight/package.json +20 -0
- package/templates/astro-starlight/public/stories/assets/.gitkeep +0 -0
- package/templates/astro-starlight/public/stories/notes-index.json +4 -0
- package/templates/astro-starlight/public/stories/story-report.json +17 -0
- package/templates/astro-starlight/src/components/ApiOperations.astro +366 -0
- package/templates/astro-starlight/src/components/Checklist.astro +15 -0
- package/templates/astro-starlight/src/components/HealthDashboard.astro +171 -0
- package/templates/astro-starlight/src/components/PageTitle.astro +53 -0
- package/templates/astro-starlight/src/components/VerifiedBy.astro +281 -0
- package/templates/astro-starlight/src/components/VerifiedStep.astro +91 -0
- package/templates/astro-starlight/src/content/docs/examples/example-adr.mdx +45 -0
- package/templates/astro-starlight/src/content/docs/guides/behavior-portal.mdx +41 -0
- package/templates/astro-starlight/src/content/docs/guides/writing-docs.mdx +49 -0
- package/templates/astro-starlight/src/content/docs/index.mdx +49 -0
- package/templates/astro-starlight/src/content/docs/stories/.gitkeep +0 -0
- package/templates/astro-starlight/src/content.config.ts +18 -0
- package/templates/astro-starlight/src/lib/config.ts +50 -0
- package/templates/astro-starlight/src/lib/render-doc-entry.ts +154 -0
- package/templates/astro-starlight/src/lib/report-health.ts +61 -0
- package/templates/astro-starlight/src/lib/verification.ts +247 -0
- package/templates/astro-starlight/src/pages/explorer/explorer.css +729 -0
- package/templates/astro-starlight/src/pages/explorer/index.astro +404 -0
- package/templates/astro-starlight/src/styles/global.css +293 -0
- package/templates/astro-starlight/src/styles/themes/corporate.css +83 -0
- package/templates/astro-starlight/src/styles/themes/dashboard.css +76 -0
- package/templates/astro-starlight/src/styles/themes/default.css +86 -0
- package/templates/astro-starlight/src/styles/themes/minimal.css +87 -0
- package/templates/astro-starlight/src/styles/themes/playful.css +77 -0
- package/templates/astro-starlight/src/styles/themes/terminal.css +77 -0
- package/templates/astro-starlight/tsconfig.json +13 -0
package/dist/index.cjs
CHANGED
|
@@ -15271,7 +15271,8 @@ var MarkdownFormatter = class {
|
|
|
15271
15271
|
includeSourceLinks: options.includeSourceLinks ?? true,
|
|
15272
15272
|
customRenderers: options.customRenderers,
|
|
15273
15273
|
scenarioAnchor: options.scenarioAnchor,
|
|
15274
|
-
scenarioBadge: options.scenarioBadge
|
|
15274
|
+
scenarioBadge: options.scenarioBadge,
|
|
15275
|
+
scenarioNoteLink: options.scenarioNoteLink
|
|
15275
15276
|
};
|
|
15276
15277
|
}
|
|
15277
15278
|
/**
|
|
@@ -15482,6 +15483,10 @@ var MarkdownFormatter = class {
|
|
|
15482
15483
|
if (badge) {
|
|
15483
15484
|
lines.push(badge);
|
|
15484
15485
|
}
|
|
15486
|
+
const noteLink = this.options.scenarioNoteLink?.(tc);
|
|
15487
|
+
if (noteLink) {
|
|
15488
|
+
lines.push(noteLink);
|
|
15489
|
+
}
|
|
15485
15490
|
if (this.options.includeSourceLinks && this.options.permalinkBaseUrl && tc.sourceFile !== "unknown") {
|
|
15486
15491
|
const permalink = this.buildPermalink(tc);
|
|
15487
15492
|
lines.push(`Source: [${tc.sourceFile}](${permalink})`);
|
|
@@ -22025,7 +22030,8 @@ var ReportGenerator = class {
|
|
|
22025
22030
|
traceUrlTemplate: options.astro?.markdown?.traceUrlTemplate,
|
|
22026
22031
|
customRenderers: options.astro?.markdown?.customRenderers,
|
|
22027
22032
|
scenarioAnchor: options.astro?.markdown?.scenarioAnchor,
|
|
22028
|
-
scenarioBadge: options.astro?.markdown?.scenarioBadge
|
|
22033
|
+
scenarioBadge: options.astro?.markdown?.scenarioBadge,
|
|
22034
|
+
scenarioNoteLink: options.astro?.markdown?.scenarioNoteLink
|
|
22029
22035
|
}
|
|
22030
22036
|
},
|
|
22031
22037
|
assetMode: options.assetMode ?? "none",
|