for-humanity 0.9.0 → 0.9.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/CHANGELOG.md +5 -0
- package/README.md +3 -3
- package/dist/cli.css +16 -9
- package/package.json +1 -1
- package/src/component/widget/prose/wg-prose.css +10 -9
- package/src/style/token.css +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.9.1 — 2026-10-13
|
|
6
|
+
|
|
7
|
+
- Draw tables with an outer border and cell borders, box flowcharts with a border, and separate sections with a solid rule and 64px of space.
|
|
8
|
+
- Tint the whole code block of a `bad` or `good` label instead of relying on the caption, so a label can carry its reason as a code comment.
|
|
9
|
+
|
|
5
10
|
## 0.9.0 — 2026-10-13
|
|
6
11
|
|
|
7
12
|
- Add code labels: a fence meta of `bad` or `good` with an optional title renders the code block with a colored left stripe and a caption, keeping Shiki highlighting.
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Write Markdown. Keep the context. Share a static site.
|
|
|
33
33
|
Node.js 22 or later and pnpm. Install the CLI in your document project:
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
|
-
pnpm add -D --save-exact for-humanity@0.9.
|
|
36
|
+
pnpm add -D --save-exact for-humanity@0.9.1
|
|
37
37
|
mkdir docs
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -52,7 +52,7 @@ pnpm exec for-humanity preview docs
|
|
|
52
52
|
|
|
53
53
|
If your Markdown files are in the project root, use `.` instead of `docs`. The root `README.md` becomes the home page; root `AGENTS.md` and `CLAUDE.md` stay out of the site.
|
|
54
54
|
|
|
55
|
-
Version `0.9.
|
|
55
|
+
Version `0.9.1` supports `dev`, `build` and `preview`. `init` is planned; see the [Roadmap](https://github.com/minu-ha/for-humanity/blob/main/templates/document/roadmap.md) and [Changelog](https://github.com/minu-ha/for-humanity/blob/main/CHANGELOG.md).
|
|
56
56
|
Cloudflare Pages can host the generated site. See [Deployment](https://github.com/minu-ha/for-humanity/blob/main/templates/document/deployment.md) for the build settings.
|
|
57
57
|
Set an optional public root `url` in the site configuration to generate `robots.txt` and `sitemap.xml`; projects without a URL emit neither file. See [Crawling](https://github.com/minu-ha/for-humanity/blob/main/templates/document/crawling.md).
|
|
58
58
|
|
|
@@ -75,7 +75,7 @@ pnpm preview # Preview the static site
|
|
|
75
75
|
pnpm build:pages # Add Cloudflare Pages headers and a 404 page
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
Changes pushed to `main` update the documentation site. A stable version tag such as `v0.9.
|
|
78
|
+
Changes pushed to `main` update the documentation site. A stable version tag such as `v0.9.1` runs checks, publishes the package to npm, then creates a GitHub Release with the same package file.
|
|
79
79
|
The npm README updates with each package release. See [Maintenance](https://github.com/minu-ha/for-humanity/blob/main/templates/document/maintenance.md#packaging-and-release) for the release steps.
|
|
80
80
|
|
|
81
81
|
## Make it yours
|
package/dist/cli.css
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
& h2 {
|
|
25
25
|
margin: var(--app-space-section) 0 var(--app-space-stack);
|
|
26
|
-
padding-top: var(--app-space-
|
|
27
|
-
border-top: 1px
|
|
26
|
+
padding-top: var(--app-space-group);
|
|
27
|
+
border-top: 1px solid var(--app-color-border);
|
|
28
28
|
color: var(--app-color-text-strong);
|
|
29
29
|
font-size: var(--app-font-size-section);
|
|
30
30
|
font-weight: var(--app-font-weight-strong);
|
|
@@ -138,13 +138,15 @@
|
|
|
138
138
|
}
|
|
139
139
|
& table {
|
|
140
140
|
width: 100%;
|
|
141
|
+
border: 1px solid var(--app-color-border-soft);
|
|
141
142
|
border-collapse: collapse;
|
|
142
143
|
font-size: var(--app-font-size-dense);
|
|
143
144
|
font-variant-numeric: tabular-nums;
|
|
144
145
|
}
|
|
145
146
|
& th {
|
|
146
147
|
padding: var(--app-space-inline) var(--app-space-stack);
|
|
147
|
-
border
|
|
148
|
+
border: 1px solid var(--app-color-border-soft);
|
|
149
|
+
border-bottom-color: var(--app-color-border);
|
|
148
150
|
background: var(--app-color-code);
|
|
149
151
|
color: var(--app-color-text-strong);
|
|
150
152
|
font-weight: var(--app-font-weight-strong);
|
|
@@ -154,13 +156,10 @@
|
|
|
154
156
|
}
|
|
155
157
|
& td {
|
|
156
158
|
padding: var(--app-space-inline) var(--app-space-stack);
|
|
157
|
-
border
|
|
159
|
+
border: 1px solid var(--app-color-border-soft);
|
|
158
160
|
text-align: left;
|
|
159
161
|
vertical-align: top;
|
|
160
162
|
}
|
|
161
|
-
& tbody tr:last-child td {
|
|
162
|
-
border-bottom: 0;
|
|
163
|
-
}
|
|
164
163
|
& tbody tr:hover td {
|
|
165
164
|
background: var(--app-color-accent-soft);
|
|
166
165
|
}
|
|
@@ -272,7 +271,9 @@
|
|
|
272
271
|
.wg_prose__flow {
|
|
273
272
|
overflow-x: auto;
|
|
274
273
|
margin: var(--app-space-block) 0;
|
|
275
|
-
padding: var(--app-space-block)
|
|
274
|
+
padding: var(--app-space-block);
|
|
275
|
+
border: 1px solid var(--app-color-border-soft);
|
|
276
|
+
border-radius: var(--app-radius-box);
|
|
276
277
|
letter-spacing: 0;
|
|
277
278
|
& svg {
|
|
278
279
|
display: block;
|
|
@@ -804,7 +805,7 @@
|
|
|
804
805
|
--app-space-block: 14px;
|
|
805
806
|
--app-space-group: 20px;
|
|
806
807
|
--app-space-subsection: 28px;
|
|
807
|
-
--app-space-section:
|
|
808
|
+
--app-space-section: 64px;
|
|
808
809
|
--app-space-tree-row: 0px;
|
|
809
810
|
--app-space-tree-group: 16px;
|
|
810
811
|
--app-space-tree-label: 2px;
|
|
@@ -856,6 +857,12 @@
|
|
|
856
857
|
--app-space-gutter: 16px;
|
|
857
858
|
}
|
|
858
859
|
}
|
|
860
|
+
.wg_prose__codeLabel--bad {
|
|
861
|
+
--app-code-background: var(--app-color-bad-soft);
|
|
862
|
+
}
|
|
863
|
+
.wg_prose__codeLabel--good {
|
|
864
|
+
--app-code-background: var(--app-color-good-soft);
|
|
865
|
+
}
|
|
859
866
|
|
|
860
867
|
/* src/component/widget/shell/wg-shell.css */
|
|
861
868
|
.wg_shell__root {
|
package/package.json
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
|
|
35
35
|
& h2 {
|
|
36
36
|
margin: var(--app-space-section) 0 var(--app-space-stack);
|
|
37
|
-
padding-top: var(--app-space-
|
|
38
|
-
border-top: 1px
|
|
37
|
+
padding-top: var(--app-space-group);
|
|
38
|
+
border-top: 1px solid var(--app-color-border);
|
|
39
39
|
color: var(--app-color-text-strong);
|
|
40
40
|
font-size: var(--app-font-size-section);
|
|
41
41
|
font-weight: var(--app-font-weight-strong);
|
|
@@ -176,8 +176,10 @@
|
|
|
176
176
|
margin-bottom: 0;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/* 표 · 코드 상자처럼 바깥 선과 칸 선 · 머리 행은 바탕과 진한 밑선 */
|
|
179
180
|
& table {
|
|
180
181
|
width: 100%;
|
|
182
|
+
border: 1px solid var(--app-color-border-soft);
|
|
181
183
|
border-collapse: collapse;
|
|
182
184
|
font-size: var(--app-font-size-dense);
|
|
183
185
|
font-variant-numeric: tabular-nums;
|
|
@@ -185,7 +187,8 @@
|
|
|
185
187
|
|
|
186
188
|
& th {
|
|
187
189
|
padding: var(--app-space-inline) var(--app-space-stack);
|
|
188
|
-
border
|
|
190
|
+
border: 1px solid var(--app-color-border-soft);
|
|
191
|
+
border-bottom-color: var(--app-color-border);
|
|
189
192
|
background: var(--app-color-code);
|
|
190
193
|
color: var(--app-color-text-strong);
|
|
191
194
|
font-weight: var(--app-font-weight-strong);
|
|
@@ -196,15 +199,11 @@
|
|
|
196
199
|
|
|
197
200
|
& td {
|
|
198
201
|
padding: var(--app-space-inline) var(--app-space-stack);
|
|
199
|
-
border
|
|
202
|
+
border: 1px solid var(--app-color-border-soft);
|
|
200
203
|
text-align: left;
|
|
201
204
|
vertical-align: top;
|
|
202
205
|
}
|
|
203
206
|
|
|
204
|
-
& tbody tr:last-child td {
|
|
205
|
-
border-bottom: 0;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
207
|
/* 표의 읽는 행 표시 */
|
|
209
208
|
& tbody tr:hover td {
|
|
210
209
|
background: var(--app-color-accent-soft);
|
|
@@ -354,7 +353,9 @@
|
|
|
354
353
|
.wg_prose__flow {
|
|
355
354
|
overflow-x: auto;
|
|
356
355
|
margin: var(--app-space-block) 0;
|
|
357
|
-
padding: var(--app-space-block)
|
|
356
|
+
padding: var(--app-space-block);
|
|
357
|
+
border: 1px solid var(--app-color-border-soft);
|
|
358
|
+
border-radius: var(--app-radius-box);
|
|
358
359
|
|
|
359
360
|
/* 라벨 위치는 자간 0의 격자로 계산 */
|
|
360
361
|
letter-spacing: 0;
|
package/src/style/token.css
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
--app-space-block: 14px;
|
|
98
98
|
--app-space-group: 20px;
|
|
99
99
|
--app-space-subsection: 28px;
|
|
100
|
-
--app-space-section:
|
|
100
|
+
--app-space-section: 64px;
|
|
101
101
|
|
|
102
102
|
/* 탐색 트리 · 항목 위아래 여백·묶음 사이·묶음 라벨 아래·중첩 들여쓰기 */
|
|
103
103
|
--app-space-tree-row: 0px;
|
|
@@ -171,3 +171,12 @@
|
|
|
171
171
|
--app-space-gutter: 16px;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
+
|
|
175
|
+
/* 라벨 코드 · Shiki 가 pre 에 인라인으로 쓰는 코드 바탕을 figure 색으로 바꿈 */
|
|
176
|
+
.wg_prose__codeLabel--bad {
|
|
177
|
+
--app-code-background: var(--app-color-bad-soft);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.wg_prose__codeLabel--good {
|
|
181
|
+
--app-code-background: var(--app-color-good-soft);
|
|
182
|
+
}
|