Skip to content

Commit 919f667

Browse files
committed
fix: improve docs accessibility and noexec diagnostics
1 parent 96ebcde commit 919f667

3 files changed

Lines changed: 29 additions & 2 deletions

File tree

scripts/docs-build-safe.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ if (!isNoexecFailure(directBuild)) {
166166
}
167167

168168
console.log('[codexmate] Detected noexec native-module failure, retrying in temp workspace...');
169+
flushOutput(directBuild);
169170

170171
copyInputWorkspace(tempRoot);
171172

site/.vitepress/theme/custom.css

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ body.oi-home #app {
4646
border: 0;
4747
}
4848

49+
.oi-skip-link {
50+
position: absolute;
51+
left: -9999px;
52+
z-index: 999;
53+
}
54+
55+
.oi-skip-link:focus {
56+
left: 50%;
57+
top: 8px;
58+
transform: translateX(-50%);
59+
padding: 8px 16px;
60+
border-radius: 8px;
61+
background: var(--oi-primary);
62+
color: var(--oi-primary-text);
63+
text-decoration: none;
64+
}
65+
4966
.oi-hexagon-layer,
5067
.oi-ambient-layer,
5168
.oi-vignette-layer {
@@ -349,6 +366,14 @@ body.oi-home #app {
349366
animation: oi-hex-pulse 7s ease-in-out infinite;
350367
}
351368

369+
@media (prefers-reduced-motion: reduce) {
370+
.oi-hexagon-svg,
371+
.oi-accent {
372+
animation: none;
373+
transform: translate(-50%, -50%);
374+
}
375+
}
376+
352377
@media (max-width: 1180px) {
353378
.oi-feature-grid {
354379
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -360,7 +385,7 @@ body.oi-home #app {
360385
.oi-section,
361386
.oi-workflow,
362387
.oi-hero {
363-
width: min(100% - 30px, 100%);
388+
width: calc(100% - 30px);
364389
}
365390

366391
.oi-header-pill {

site/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ bodyClass: oi-home
2222
<div class="oi-vignette-layer" aria-hidden="true"></div>
2323

2424
<header class="oi-header">
25+
<a class="oi-skip-link" href="#oi-main">跳转到主要内容</a>
2526
<div class="oi-shell">
2627
<div class="oi-header-pill">
2728
<a class="oi-brand" href="./">Codex Mate</a>
@@ -33,7 +34,7 @@ bodyClass: oi-home
3334
<div class="oi-divider"></div>
3435
</header>
3536

36-
<main class="oi-main">
37+
<main class="oi-main" id="oi-main">
3738
<section class="oi-hero">
3839
<h1 class="oi-title">Codex Mate</h1>
3940
<p class="oi-subtitle">本地优先的 Codex / Claude Code / OpenClaw 配置与会话管理工具。统一管理 Provider、模型与会话数据,减少切换成本。</p>

0 commit comments

Comments
 (0)