原先导航「官方文档」指向 /#docs(首页内的文档区块), 用户期望点它直接进 http://open.5iot.com:5051/docs/。 改动 - 导航项改为外链 http://open.5iot.com:5051/docs/, 带 target=_blank 与 rel=noopener,新开标签页不打断阅读 - 首页 hero 的「官方文档」按钮同样改为外链直跳 - 文档站地址收敛为单一来源:data/content.ts 导出 DOCS_BASE / DOCS_HOME, 可用环境变量 DOCS_BASE 覆盖;config.mts 与 HomePage.vue 都引用它, 消除原先三处硬编码 - 首页的「官方文档」区块(#docs)保留,仍是各手册入口的聚合卡片 验证 - 导航渲染实测:href=http://open.5iot.com:5051/docs/, target=_blank - 点击实测:新开标签页到目标地址,原页面 URL 不变 - 锚点项高亮不受影响(点「产品功能」仍正常变蓝) - 构建 13 页 262 引用 0 失效
This commit is contained in:
@@ -1050,3 +1050,28 @@ html.portal-nav-home .VPNavBarMenuLink.active:not([data-anchor-active]) {
|
||||
color: var(--vp-c-brand-1);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
左上角站点标题两行排版
|
||||
第一行:雪羊科技(主标题)
|
||||
第二行:物联网卡与设备管理平台(副标题,更弱)
|
||||
副标题用 display:block 自然换行,无需 <br>
|
||||
============================================================ */
|
||||
.VPNavBarTitle .title-text {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.VPNavBarTitle .title-text .site-subtitle {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.02em;
|
||||
color: var(--p-ink-3);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.VPNavBarTitle .title-text .site-subtitle {
|
||||
font-size: 10.5px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user