@superjackfruitlabs/vibekit-docs 0.0.4 → 0.0.5
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,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.5 — 2026-11-16
|
|
4
|
+
|
|
5
|
+
- **A product with no docs site.** The street, switchers, footer and CopyPrompt fall back to the product's landing page when its `docs` is `null` (SuperBench, from vibekit-frame 0.0.17).
|
|
6
|
+
- Develops against `@superjackfruitlabs/vibekit-ui` 0.0.19 and `@superjackfruitlabs/vibekit-frame` 0.0.17.
|
|
7
|
+
|
|
3
8
|
## 0.0.4 — 2026-11-15
|
|
4
9
|
|
|
5
10
|
- **MIT licence.** Published under the MIT License (`LICENSE`); it was `UNLICENSED`. The licence covers the code, not the Super Jackfruit Labs names, logos or Captain Jack (the frame's `brand/` marks included).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superjackfruitlabs/vibekit-docs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Super Jackfruit Labs docs theme: one Starlight plugin that dresses a product's docs site in the suite's design, from vibekit's colours to Captain Jack.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@astrojs/starlight": "0.42.11",
|
|
45
45
|
"@playwright/test": "^1.64.1",
|
|
46
|
-
"@superjackfruitlabs/vibekit-frame": "0.0.
|
|
47
|
-
"@superjackfruitlabs/vibekit-ui": "
|
|
46
|
+
"@superjackfruitlabs/vibekit-frame": "0.0.17",
|
|
47
|
+
"@superjackfruitlabs/vibekit-ui": "^0.0.19",
|
|
48
48
|
"astro": "7.4.11",
|
|
49
49
|
"starlight-llms-txt": "0.12.0"
|
|
50
50
|
},
|
|
@@ -16,7 +16,7 @@ interface Props {
|
|
|
16
16
|
docs?: string;
|
|
17
17
|
}
|
|
18
18
|
const me = productOf(Astro.props.product);
|
|
19
|
-
const docs = (Astro.props.docs ?? me.docs).replace(/\/$/, '');
|
|
19
|
+
const docs = (Astro.props.docs ?? me.docs ?? me.url).replace(/\/$/, '');
|
|
20
20
|
const task = Astro.props.task ?? `Then answer my questions about ${me.name} from those docs.`;
|
|
21
21
|
const prompt = (Astro.props.prompt ?? [
|
|
22
22
|
`I'm working with ${me.name}. Read ${docs}/llms.txt to see what its docs cover, and ${docs}/llms-full.txt for every page in one file.`,
|
|
@@ -16,7 +16,7 @@ const full = wearsSuiteFooter(routeOf(Astro.locals));
|
|
|
16
16
|
// wears (the lab's, so no product tile is marked as here), with its own source and llms.txt beside it.
|
|
17
17
|
const footer = me.product
|
|
18
18
|
? { product: me.slug, links: [{ label: 'Landing page', href: me.url }] }
|
|
19
|
-
: { product: me.wears, links: [...(me.repo ? [{ label: `${me.name} source`, href: me.repo }] : []), { label: `${me.name} llms.txt`, href: `${me.docs}/llms.txt` }] };
|
|
19
|
+
: { product: me.wears, links: [...(me.repo ? [{ label: `${me.name} source`, href: me.repo }] : []), { label: `${me.name} llms.txt`, href: `${me.docs ?? me.url}/llms.txt` }] };
|
|
20
20
|
---
|
|
21
21
|
<Default />
|
|
22
22
|
{full ? (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
// The street: the suite as a row of houses, one per product, each in its own colour, leading to
|
|
3
|
-
// that product's docs. This site's house stands a little taller; a site that is not a product
|
|
3
|
+
// that product's docs (its landing page while it has none). This site's house stands a little taller; a site that is not a product
|
|
4
4
|
// has no house, so none is raised. On the right, the way out to this product's landing page (for a
|
|
5
5
|
// site that is not a product, its own landing page, else the lab's). On a phone the street folds into a product switcher.
|
|
6
6
|
import Switcher from './Switcher.astro';
|
|
@@ -15,7 +15,7 @@ const short = (name: string) => name.replace(/^Super/, '');
|
|
|
15
15
|
<ul class="houses">
|
|
16
16
|
{houses.map((p, i) => (
|
|
17
17
|
<li class:list={[{ gap: i > 0 && p.street !== houses[i - 1]!.street }]}>
|
|
18
|
-
<a class="house" href={p.docs} style={`--c:${p.color}`} aria-current={p.slug === me.slug ? 'page' : undefined} title={`${p.name}: ${p.line}`}>
|
|
18
|
+
<a class="house" href={p.docs ?? p.url} style={`--c:${p.color}`} aria-current={p.slug === me.slug ? 'page' : undefined} title={`${p.name}: ${p.line}`}>
|
|
19
19
|
<b aria-hidden="true"></b><small>{short(p.name)}</small>
|
|
20
20
|
</a>
|
|
21
21
|
</li>
|
|
@@ -22,7 +22,7 @@ const houses = SUITE.order.map((slug) => ({ slug, ...SUITE.products[slug] }));
|
|
|
22
22
|
<summary><b aria-hidden="true" style={`--c:${me.color}`}></b><span>{label}</span><span class="chev" aria-hidden="true">{up ? '▴' : '▾'}</span></summary>
|
|
23
23
|
<ul>
|
|
24
24
|
{houses.map((p) => (
|
|
25
|
-
<li><a href={p.docs} aria-current={p.slug === me.slug ? 'page' : undefined}><b aria-hidden="true" style={`--c:${p.color}`}></b><span>{p.name}</span><small>{p.role}</small></a></li>
|
|
25
|
+
<li><a href={p.docs ?? p.url} aria-current={p.slug === me.slug ? 'page' : undefined}><b aria-hidden="true" style={`--c:${p.color}`}></b><span>{p.name}</span><small>{p.role}</small></a></li>
|
|
26
26
|
))}
|
|
27
27
|
</ul>
|
|
28
28
|
</details>
|