@kolkrabbi/kol-workshop 0.1.4 → 0.1.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/README.md +8 -0
- package/package.json +5 -5
- package/src/shell/ShellLayout.jsx +12 -11
package/README.md
CHANGED
|
@@ -47,4 +47,12 @@ const inventory = buildInventory(modules)
|
|
|
47
47
|
|
|
48
48
|
So the package ships the **engine + chrome**, never the content — bring your own docs.
|
|
49
49
|
|
|
50
|
+
## Tailwind v4 consumers
|
|
51
|
+
|
|
52
|
+
Tailwind skips `node_modules` when scanning, so point it at this package's source — otherwise the shell's grid/sidebar/toc layout utilities never generate and the docs shell collapses to a single column:
|
|
53
|
+
|
|
54
|
+
```css
|
|
55
|
+
@source "../node_modules/@kolkrabbi/kol-workshop/src";
|
|
56
|
+
```
|
|
57
|
+
|
|
50
58
|
Self-check: `node src/engine/__check.mjs`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-workshop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "KOL workshop/docs system — a handrolled markdown engine, search, tag system (incl. a d3 tag graph), docs viewer, and docs shell. Sits above @kolkrabbi/kol-{theme,icons,component,framework}; content is consumer-injected (the package never globs docs).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"d3": "^7.9.0",
|
|
16
16
|
"@kolkrabbi/kol-brand": "^0.1.2",
|
|
17
|
-
"@kolkrabbi/kol-
|
|
18
|
-
"@kolkrabbi/kol-component": "0.
|
|
19
|
-
"@kolkrabbi/kol-theme": "0.7.
|
|
20
|
-
"@kolkrabbi/kol-
|
|
17
|
+
"@kolkrabbi/kol-framework": "0.3.3",
|
|
18
|
+
"@kolkrabbi/kol-component": "0.8.0",
|
|
19
|
+
"@kolkrabbi/kol-theme": "0.7.3",
|
|
20
|
+
"@kolkrabbi/kol-icons": "0.5.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^18.3.0 || ^19.0.0",
|
|
@@ -100,18 +100,19 @@ const ShellLayout = ({ routes = [], basePath = '/', brandLogoSrc, brandLogoAlt =
|
|
|
100
100
|
navigate(item.href)
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
const brand = (
|
|
104
|
-
<Link to={basePath} className="shell-header-logo flex items-center
|
|
105
|
-
{brandLogoSrc
|
|
106
|
-
<img src={brandLogoSrc} alt={brandLogoAlt} className="h-6 w-auto" />
|
|
107
|
-
) : (
|
|
108
|
-
<>
|
|
109
|
-
<Asset name="kol-wordmark" title="Kolkrabbi" className="inline-flex [&>svg]:h-5 [&>svg]:w-auto" />
|
|
110
|
-
<span className="text-fg-24" aria-hidden="true">/</span>
|
|
111
|
-
<Asset name="wordmark-workshop" title="Workshop" className="inline-flex [&>svg]:h-4 [&>svg]:w-auto" />
|
|
112
|
-
</>
|
|
113
|
-
)}
|
|
103
|
+
const brand = brandLogoSrc ? (
|
|
104
|
+
<Link to={basePath} className="shell-header-logo flex items-center text-emphasis">
|
|
105
|
+
<img src={brandLogoSrc} alt={brandLogoAlt} className="h-6 w-auto" />
|
|
114
106
|
</Link>
|
|
107
|
+
) : (
|
|
108
|
+
// Two separate wordmarks: KOLKRABBI holds the logo slot (reserves the 256px
|
|
109
|
+
// nav column at lg+), WORKSHOP falls at the content-column edge. Both h-6.
|
|
110
|
+
<>
|
|
111
|
+
<Link to={basePath} className="shell-header-logo hidden md:flex shrink-0 items-center text-emphasis lg:w-64">
|
|
112
|
+
<Asset name="kol-wordmark" title="Kolkrabbi" className="inline-flex [&>svg]:h-6 [&>svg]:w-auto" />
|
|
113
|
+
</Link>
|
|
114
|
+
<Asset name="wordmark-workshop" title="Workshop" className="inline-flex text-emphasis [&>svg]:h-6 [&>svg]:w-auto" />
|
|
115
|
+
</>
|
|
115
116
|
)
|
|
116
117
|
const searchTrigger = (
|
|
117
118
|
<button
|