Skip to content

Commit c6fc6a0

Browse files
committed
upgrade site to OINK 0.3
1 parent 3fa7187 commit c6fc6a0

30 files changed

Lines changed: 319 additions & 666 deletions

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@ stay out of the docs sidebar tree via `toc_root: true` — `docs/` and
5050

5151
## Theme boundary
5252

53-
OINK 0.2.0 owns the documentation and blog layouts, navigation shell, search, table
53+
OINK 0.3.0 owns the documentation and blog layouts, navigation shell, search, table
5454
of contents, blocks and shortcodes, styles, scripts, fonts, and third-party
55-
runtimes. The site imports a pinned OINK commit as a Hugo Module.
55+
runtimes. The site imports the pinned OINK 0.3.0 release as a Hugo Module.
56+
57+
The custom landing page keeps its visual design while reusing OINK 0.3's
58+
language-local command palette, action manifest, search ranking, and horizontal
59+
`wordmark`. Documentation uses the new search metadata, sidebar icon policy,
60+
content primitives, and assistant page actions; release rows remain text-only
61+
through `default_featured: false`.
5662

5763
The local layout surface is intentionally small:
5864

@@ -103,9 +109,8 @@ The corresponding long targets are `debug`, `serve`, `build`, and `check`;
103109
available port unless `PORT` is set explicitly.
104110

105111
The production build also publishes Markdown copies for pages and sections,
106-
printable section bundles under `/_print/`, and bilingual `llms.txt` indexes.
107-
These outputs come from OINK; the landing-page JSON output remains the source
108-
for PIG's custom command-palette search.
112+
printable section bundles under `/_print/`, bilingual `llms.txt` indexes, and
113+
language-local search indexes consumed by the shared OINK command palette.
109114

110115
## Writing conventions
111116

assets/js/pig-search.js

Lines changed: 0 additions & 235 deletions
This file was deleted.

assets/scss/landing-search.scss

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
// ============================================================
2-
// landing-search —— 首页 ⌘K 搜索弹窗样式
3-
// 复用文档站 pig/_search.scss 的全部规则,此处仅把它引用的
4-
// --bs-* / --pig-* 变量桥接到 landing-v3.css 的主题令牌上
2+
// landing-search —— 首页 OINK 0.3 命令面板样式
3+
// 复用主题 shell/search.scss,只把它引用的 Bootstrap / shell 变量
4+
// 桥接到 landing-v3.css 的首页主题令牌上
55
// ============================================================
66

77
html[data-theme] {
88
--bs-border-color: var(--line);
99
--bs-body-bg: var(--bg);
1010
--bs-body-color: var(--ink);
11-
--pig-popover: var(--bg-elev);
12-
--pig-muted-fg: var(--ink-mute);
13-
--pig-primary: var(--pg);
14-
--pig-primary-dim: color-mix(in srgb, var(--pg) 11%, transparent);
15-
--pig-shadow-lg: var(--shadow-md);
16-
--pig-ease-dialog: cubic-bezier(0.16, 1, 0.3, 1);
11+
--td-shell-popover: var(--bg-elev);
12+
--td-shell-muted-fg: var(--ink-mute);
13+
--td-shell-primary: var(--pg);
14+
--td-shell-primary-dim: color-mix(in srgb, var(--pg) 11%, transparent);
15+
--td-shell-shadow-lg: var(--shadow-md);
16+
--td-shell-ease-dialog: cubic-bezier(0.16, 1, 0.3, 1);
1717
}
1818

19-
html[data-pig-lock] {
19+
html[data-td-shell-lock] {
2020
overflow: hidden;
2121
}
2222

23-
@import 'pig/search';
23+
.visually-hidden {
24+
position: absolute !important;
25+
width: 1px !important;
26+
height: 1px !important;
27+
padding: 0 !important;
28+
margin: -1px !important;
29+
overflow: hidden !important;
30+
clip: rect(0, 0, 0, 0) !important;
31+
white-space: nowrap !important;
32+
border: 0 !important;
33+
}
34+
35+
@import 'td/shell/search';

0 commit comments

Comments
 (0)