sisyo 1.5.0 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sisyo",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Smart documentation system for vibe coding with Claude Code. Token-efficient MAP.md routing.",
5
5
  "bin": {
6
6
  "sisyo": "./bin/sisyo.js"
@@ -4,7 +4,7 @@ description: "Generate standalone, beautiful HTML documents styled with Tailwind
4
4
  license: MIT
5
5
  metadata:
6
6
  author: HoangThang
7
- version: '1.0.0'
7
+ version: "1.0.0"
8
8
  ---
9
9
 
10
10
  # HTML Docs
@@ -22,7 +22,7 @@ Do NOT use for: internal markdown in `docs/` (that's `vibe-docs`), READMEs, raw
22
22
  - One `.html` file. No external CSS/JS files.
23
23
  - Tailwind CDN: `<script src="https://cdn.tailwindcss.com"></script>`.
24
24
  - Optional Inter font via Google Fonts `<link>`.
25
- - Responsive, mobile-first. Reading width `max-w-4xl` or `max-w-5xl`.
25
+ - Responsive, mobile-first. Container width: `max-w-7xl` (≈1280px) for docs with sticky TOC and diagrams/tables — this avoids huge empty gutters on 1440px+ screens. Use `max-w-4xl` only for pure reading docs with no sidebar.
26
26
  - Vietnamese `<html lang="vi">` by default unless content is English.
27
27
  - No emoji unless requested — use inline SVG (Heroicons) or shape divs.
28
28
  - Save to `docs/html/[kebab-name].html` by default.
@@ -40,13 +40,13 @@ Do NOT use for: internal markdown in `docs/` (that's `vibe-docs`), READMEs, raw
40
40
 
41
41
  ## Color palettes (pick one per doc — bg / primary / accent)
42
42
 
43
- | Theme | Hero gradient | Primary | Accent |
44
- |---|---|---|---|
45
- | Indigo/Violet/Pink | `from-indigo-600 via-purple-600 to-pink-500` | `indigo-600` | `violet-500` |
46
- | Emerald/Teal | `from-emerald-500 via-teal-500 to-cyan-500` | `emerald-600` | `teal-500` |
47
- | Rose/Amber | `from-rose-500 via-orange-500 to-amber-500` | `rose-600` | `amber-500` |
48
- | Sky/Cyan | `from-sky-500 via-cyan-500 to-teal-400` | `sky-600` | `cyan-500` |
49
- | Fuchsia/Pink | `from-fuchsia-600 via-pink-500 to-rose-500` | `fuchsia-600` | `pink-500` |
43
+ | Theme | Hero gradient | Primary | Accent |
44
+ | ------------------ | -------------------------------------------- | ------------- | ------------ |
45
+ | Indigo/Violet/Pink | `from-indigo-600 via-purple-600 to-pink-500` | `indigo-600` | `violet-500` |
46
+ | Emerald/Teal | `from-emerald-500 via-teal-500 to-cyan-500` | `emerald-600` | `teal-500` |
47
+ | Rose/Amber | `from-rose-500 via-orange-500 to-amber-500` | `rose-600` | `amber-500` |
48
+ | Sky/Cyan | `from-sky-500 via-cyan-500 to-teal-400` | `sky-600` | `cyan-500` |
49
+ | Fuchsia/Pink | `from-fuchsia-600 via-pink-500 to-rose-500` | `fuchsia-600` | `pink-500` |
50
50
 
51
51
  One palette per document. Use the hero gradient on the top banner; use primary for links/buttons; use accent sparingly.
52
52
 
@@ -55,7 +55,7 @@ One palette per document. Use the hero gradient on the top banner; use primary f
55
55
  Default to these — agent already knows Tailwind, just compose:
56
56
 
57
57
  - **Hero**: full-bleed gradient bg, white text, eyebrow pill (`bg-white/15 backdrop-blur`), big h1, subtitle, optional blurred decoration circles.
58
- - **TOC**: `lg:sticky lg:top-8`, anchor links, uppercase eyebrow.
58
+ - **TOC**: ~200px sidebar, `lg:sticky lg:top-8`, wrap in `<details open>` so users can collapse it. See "TOC collapsible pattern" below.
59
59
  - **Section card**: white bg, `rounded-2xl border shadow-sm`, padded.
60
60
  - **Callout** (tip/warn/info): tinted bg + left border — `bg-amber-50 border-l-4 border-amber-400` (warn), `bg-sky-50 border-sky-400` (info), `bg-emerald-50 border-emerald-400` (tip), `bg-rose-50 border-rose-400` (danger).
61
61
  - **Code block**: `bg-slate-900 text-slate-100 rounded-xl p-4 text-sm overflow-x-auto`.
@@ -82,34 +82,81 @@ Default to these — agent already knows Tailwind, just compose:
82
82
  ### Hero with decoration blobs
83
83
 
84
84
  ```html
85
- <header class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white">
85
+ <header
86
+ class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white"
87
+ >
86
88
  <div class="max-w-5xl mx-auto px-6 py-20 md:py-28">...</div>
87
- <div class="absolute -bottom-24 -right-24 w-72 h-72 rounded-full bg-white/10 blur-3xl"></div>
88
- <div class="absolute -top-24 -left-24 w-72 h-72 rounded-full bg-pink-300/30 blur-3xl"></div>
89
+ <div
90
+ class="absolute -bottom-24 -right-24 w-72 h-72 rounded-full bg-white/10 blur-3xl"
91
+ ></div>
92
+ <div
93
+ class="absolute -top-24 -left-24 w-72 h-72 rounded-full bg-pink-300/30 blur-3xl"
94
+ ></div>
89
95
  </header>
90
96
  ```
91
97
 
92
98
  ### Page layout grid (sticky TOC + content)
93
99
 
94
- `grid lg:grid-cols-[220px_1fr] gap-10` inside `max-w-5xl mx-auto px-6 py-12`.
100
+ `grid lg:grid-cols-[200px_1fr] gap-10` inside `max-w-7xl mx-auto px-6 py-12`. TOC ≈200px (readable but not greedy); container `max-w-7xl` keeps margins tight on big monitors. Apply the same `max-w-7xl` to the hero inner wrapper and footer so the whole page reads consistently. Don't drop below ~180px for the TOC — labels start truncating awkwardly.
101
+
102
+ ### TOC collapsible pattern
103
+
104
+ Use `<details open>` + custom chevron — works without JavaScript, rotates the chevron via `group-open:rotate-180`. Keep link labels short (1-3 words) so they don't wrap in the narrow column; add `truncate` defensively.
105
+
106
+ ```html
107
+ <aside class="lg:sticky lg:top-8 self-start">
108
+ <details open class="group">
109
+ <summary
110
+ class="cursor-pointer list-none flex items-center justify-between gap-2 text-xs uppercase tracking-widest text-slate-500 font-semibold mb-2 py-1 px-1 rounded hover:bg-slate-100 select-none"
111
+ >
112
+ <span>Mục lục</span>
113
+ <svg
114
+ class="w-3.5 h-3.5 text-slate-400 transition-transform group-open:rotate-180"
115
+ fill="none"
116
+ viewBox="0 0 20 20"
117
+ stroke="currentColor"
118
+ stroke-width="2"
119
+ >
120
+ <path d="M6 8l4 4 4-4" />
121
+ </svg>
122
+ </summary>
123
+ <nav class="space-y-1.5 text-xs mt-2 border-l border-slate-200 pl-3">
124
+ <a
125
+ href="#section-1"
126
+ class="block text-slate-600 hover:text-indigo-600 truncate"
127
+ >1. Short label</a
128
+ >
129
+ <!-- … -->
130
+ </nav>
131
+ </details>
132
+ </aside>
133
+ ```
95
134
 
96
135
  ### Minimum boilerplate
97
136
 
98
137
  ```html
99
138
  <!doctype html>
100
139
  <html lang="vi">
101
- <head>
102
- <meta charset="utf-8" />
103
- <meta name="viewport" content="width=device-width, initial-scale=1" />
104
- <title>[Title]</title>
105
- <script src="https://cdn.tailwindcss.com"></script>
106
- <link rel="preconnect" href="https://fonts.googleapis.com" />
107
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
108
- <style>html { font-family: 'Inter', system-ui, sans-serif; scroll-behavior: smooth; }</style>
109
- </head>
110
- <body class="bg-slate-50 text-slate-700 antialiased">
111
- <!-- hero / main / footer -->
112
- </body>
140
+ <head>
141
+ <meta charset="utf-8" />
142
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
143
+ <title>[Title]</title>
144
+ <script src="https://cdn.tailwindcss.com"></script>
145
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
146
+ <link
147
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
148
+ rel="stylesheet"
149
+ />
150
+ <style>
151
+ html {
152
+ font-family: "Inter", system-ui, sans-serif;
153
+ scroll-behavior: smooth;
154
+ }
155
+ </style>
156
+ </head>
157
+ <body class="bg-slate-50 text-slate-700 antialiased">
158
+ <!-- hero / main / footer -->
159
+ </body>
113
160
  </html>
114
161
  ```
115
162
 
@@ -150,11 +197,11 @@ Default to these — agent already knows Tailwind, just compose:
150
197
 
151
198
  ## Relation to vibe-docs
152
199
 
153
- | | vibe-docs | html-docs |
154
- |---|---|---|
155
- | Audience | Claude + devs | Humans (devs, PM, clients, users) |
156
- | Format | Compact `.md`, token-efficient | Polished HTML, visual |
157
- | Location | `docs/MAP.md`, `_summary.md`, detail `.md` | `docs/html/*.html` |
158
- | Trigger | Code/feature changes | Explicit "make this readable / shareable" |
200
+ | | vibe-docs | html-docs |
201
+ | -------- | ------------------------------------------ | ----------------------------------------- |
202
+ | Audience | Claude + devs | Humans (devs, PM, clients, users) |
203
+ | Format | Compact `.md`, token-efficient | Polished HTML, visual |
204
+ | Location | `docs/MAP.md`, `_summary.md`, detail `.md` | `docs/html/*.html` |
205
+ | Trigger | Code/feature changes | Explicit "make this readable / shareable" |
159
206
 
160
207
  Typical flow: `vibe-docs` keeps `docs/01_requirements/[feature].md` up to date; when user asks "make this into an HTML page for the team", `html-docs` reads that spec and renders the polished version.