feat(site): 导航收敛为特性/文档/定价,新增定价页与站点自包含截图,dist 产物入库
CI / Backend (go vet + test) (push) Waiting to run
CI / Frontend (lint + build + test) (push) Waiting to run

- homepage/index.html:菜单改为 特性/文档/定价,正文按钮指向 /docs/ 与 /pricing
- homepage/pricing.html:新增许可与定价页(License & Pricing)
- homepage/assets/screenshots/:6 张文档截图收进站点,构建不再依赖仓库 docs/ 目录
- scripts/build-homepage.py:取图优先 homepage/assets;模板内置 h5 移动端修复(重建不丢);dist/assets 不再重复复制截图
- homepage/dist/:23 个构建产物入库,nginx 直接托管(重建幂等)
This commit is contained in:
Logan.Li committed 2026-11-01 22:54:13 +08:00
1 parent b8eca87a89
commit e1e8243622
32 files changed
+1853 -7

No files matched your search

+8 -7
View File
@@ -7,6 +7,8 @@
<meta name="description" content="LokiStack:把 Grafana Loki 部署到 Kubernetes 或裸金属,内置日志查询、日志分析与告警的一体化平台。部署向导、采集策略、查询授权、飞书告警开箱即用。">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23059669'/%3E%3Ctext x='32' y='44' font-size='34' font-weight='800' fill='%23fff' text-anchor='middle' font-family='sans-serif'%3EL%3C/text%3E%3C/svg%3E">
<link rel="stylesheet" href="assets/site.css">
<style id="h5-fix">@media (max-width:820px){body{-webkit-text-size-adjust:100%}nav a,nav button,.nav-links a,.nav-menu a,.nav-item,.topnav a,.menu a,.side a,.sidebar a,.docs-side a,.toc a,footer a,a.btn,.plan .btn,button.btn{display:inline-flex;align-items:center;min-height:44px}.side a,.sidebar a,.docs-side a{padding:10px 12px;border-radius:8px}.toc a{padding:8px 0}pre{max-width:100%;overflow-x:auto}.plans,.grid,.grid-2,.grid-3{grid-template-columns:1fr!important}.hero h1,.hero-title{font-size:clamp(24px,7vw,34px)!important}.tbl-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}</style>
<script id="h5-fix-js">(function(){var f=function(){document.querySelectorAll("table").forEach(function(t){var p=t.parentElement;if(p&&p.classList&&p.classList.contains("tbl-scroll"))return;var w=document.createElement("div");w.className="tbl-scroll";p.insertBefore(w,t);w.appendChild(t);});};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",f);else f();})();</script>
</head>
<body>
@@ -18,9 +20,8 @@
</a>
<nav class="nav-links">
<a href="#features">特性</a>
<a href="#quickstart">快速开始</a>
<a href="#docs">文档</a>
<a href="https://gitea.91ai.io/rlwj-lab/LokiStack" target="_blank" rel="noopener">源码</a>
<a href="/docs/">文档</a>
<a href="/pricing">定价</a>
</nav>
</div>
</header>
@@ -30,8 +31,8 @@
<h1>把 Loki 日志聚合<br>变成<em>五分钟</em>的事</h1>
<p class="tagline">向导式部署 Grafana Loki 到 Kubernetes 集群或裸金属主机,内置日志查询、可视化分析与飞书告警 —— 不写 YAML、不装 kubectl/Helm。</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#quickstart">快速开始</a>
<a class="btn btn-outline" href="#docs">阅读文档</a>
<a class="btn btn-primary" href="/docs/">快速开始</a>
<a class="btn btn-outline" href="/docs/">阅读文档</a>
</div>
<p class="hero-meta">Go + React 单二进制交付 · JSON 文件存储零依赖 · 中文/英文界面</p>
</div>
@@ -112,7 +113,7 @@
<p class="sub">用户手册覆盖部署、采集、查询、分析与告警全流程</p>
<div class="hero-actions">
<a class="btn btn-primary" href="/docs/">打开用户手册</a>
<a class="btn btn-outline" href="https://gitea.91ai.io/rlwj-lab/LokiStack" target="_blank" rel="noopener">查看源码</a>
<a class="btn btn-outline" href="/pricing">许可和定价</a>
</div>
</div>
</section>
@@ -120,7 +121,7 @@
<footer class="footer">
<div class="links">
<a href="#features">特性</a>
<a href="#quickstart">快速开始</a>
<a href="/docs/">快速开始</a>
<a href="/docs/">文档</a>
<a href="https://gitea.91ai.io/rlwj-lab/LokiStack" target="_blank" rel="noopener">Gitea</a>
</div>