Skip to content

Commit 0adc57c

Browse files
committed
优化文档网站: 添加完整的中文技术文档
新增页面: - 快速开始: 5分钟内开始使用 - 使用指南: 详细使用方法 - 漏洞分析: CVE-2026-43499 漏洞分析 - 利用原理: 漏洞利用技术原理 - 内部机制: GhostLock 内部工作原理 - 支持的设备: 设备支持列表 - 添加新设备: 设备适配指南 - 编译指南: 跨平台编译教程 - 工具脚本: BTF 分析和 kallsyms 提取 - 贡献指南: 社区贡献指南 - 更新日志: 版本历史 - 安全政策: 漏洞报告指南 - 行为准则: 社区行为规范 设计变更: - 自定义布局: 左侧边栏导航 + 右侧内容 - 自定义样式: 白色背景、无渐变、绿色链接 - 响应式设计: 移动端适配 - 中文排版: Noto Sans SC 字体
1 parent 9e4e7aa commit 0adc57c

18 files changed

Lines changed: 3684 additions & 120 deletions

docs/README.md

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

docs/_config.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
theme: jekyll-theme-cayman
2-
31
title: GhostLock
42
description: CVE-2026-43499 futex PI stack UAF 本地提权漏洞利用
53

@@ -9,16 +7,29 @@ url: "https://wzhdgithub.github.io"
97
# 构建设置
108
markdown: kramdown
119
highlighter: rouge
10+
permalink: pretty
11+
12+
# 默认布局
13+
defaults:
14+
- scope:
15+
path: ""
16+
values:
17+
layout: "default"
1218

1319
# 插件
1420
plugins:
1521
- jekyll-seo-tag
1622

17-
# 导航
18-
navigation:
19-
- title: 首页
20-
url: /
21-
- title: 文档
22-
url: /README
23-
- title: GitHub
24-
url: https://github.com/wzhdgithub/GhostLock
23+
# 排除文件
24+
exclude:
25+
- README.md
26+
- LICENSE
27+
- CONTRIBUTING.md
28+
- SECURITY.md
29+
- CHANGELOG.md
30+
- CODE_OF_CONDUCT.md
31+
- Makefile
32+
- compile.cmd
33+
- build.rsp
34+
- ghostlock
35+
- .gitignore

docs/_layouts/default.html

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-CN">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{{ page.title }} - GhostLock</title>
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
8+
<link rel="preconnect" href="https://fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
11+
</head>
12+
<body>
13+
<div class="container">
14+
<!-- 左侧边栏 -->
15+
<aside class="sidebar">
16+
<div class="sidebar-header">
17+
<h1 class="project-title">GhostLock</h1>
18+
<p class="project-subtitle">CVE-2026-43499</p>
19+
</div>
20+
21+
<nav class="sidebar-nav">
22+
<div class="nav-section">
23+
<h3 class="nav-title">快速开始</h3>
24+
<ul class="nav-list">
25+
<li><a href="{{ '/' | relative_url }}" class="{% if page.url == '/' %}active{% endif %}">项目介绍</a></li>
26+
<li><a href="{{ '/quickstart' | relative_url }}" class="{% if page.url == '/quickstart/' %}active{% endif %}">快速开始</a></li>
27+
<li><a href="{{ '/usage' | relative_url }}" class="{% if page.url == '/usage/' %}active{% endif %}">使用指南</a></li>
28+
</ul>
29+
</div>
30+
31+
<div class="nav-section">
32+
<h3 class="nav-title">技术文档</h3>
33+
<ul class="nav-list">
34+
<li><a href="{{ '/vulnerability' | relative_url }}" class="{% if page.url == '/vulnerability/' %}active{% endif %}">漏洞分析</a></li>
35+
<li><a href="{{ '/exploitation' | relative_url }}" class="{% if page.url == '/exploitation/' %}active{% endif %}">利用原理</a></li>
36+
<li><a href="{{ '/internals' | relative_url }}" class="{% if page.url == '/internals/' %}active{% endif %}">内部机制</a></li>
37+
</ul>
38+
</div>
39+
40+
<div class="nav-section">
41+
<h3 class="nav-title">设备支持</h3>
42+
<ul class="nav-list">
43+
<li><a href="{{ '/devices' | relative_url }}" class="{% if page.url == '/devices/' %}active{% endif %}">支持的设备</a></li>
44+
<li><a href="{{ '/add-device' | relative_url }}" class="{% if page.url == '/add-device/' %}active{% endif %}">添加新设备</a></li>
45+
</ul>
46+
</div>
47+
48+
<div class="nav-section">
49+
<h3 class="nav-title">开发</h3>
50+
<ul class="nav-list">
51+
<li><a href="{{ '/compilation' | relative_url }}" class="{% if page.url == '/compilation/' %}active{% endif %}">编译指南</a></li>
52+
<li><a href="{{ '/tools' | relative_url }}" class="{% if page.url == '/tools/' %}active{% endif %}">工具脚本</a></li>
53+
<li><a href="{{ '/contributing' | relative_url }}" class="{% if page.url == '/contributing/' %}active{% endif %}">贡献指南</a></li>
54+
</ul>
55+
</div>
56+
57+
<div class="nav-section">
58+
<h3 class="nav-title">资源</h3>
59+
<ul class="nav-list">
60+
<li><a href="{{ '/changelog' | relative_url }}" class="{% if page.url == '/changelog/' %}active{% endif %}">更新日志</a></li>
61+
<li><a href="{{ '/security' | relative_url }}" class="{% if page.url == '/security/' %}active{% endif %}">安全政策</a></li>
62+
<li><a href="{{ '/code-of-conduct' | relative_url }}" class="{% if page.url == '/code-of-conduct/' %}active{% endif %}">行为准则</a></li>
63+
<li><a href="https://github.com/wzhdgithub/GhostLock" target="_blank">GitHub 仓库</a></li>
64+
</ul>
65+
</div>
66+
</nav>
67+
68+
<div class="sidebar-footer">
69+
<p>作者: <strong>wzh</strong></p>
70+
<p>联系: <a href="mailto:yjhsbwssg@163.com">yjhsbwssg@163.com</a></p>
71+
</div>
72+
</aside>
73+
74+
<!-- 右侧主内容 -->
75+
<main class="main-content">
76+
<header class="content-header">
77+
<h1>{{ page.title }}</h1>
78+
{% if page.description %}
79+
<p class="content-description">{{ page.description }}</p>
80+
{% endif %}
81+
</header>
82+
83+
<article class="content-body">
84+
{{ content }}
85+
</article>
86+
87+
<footer class="content-footer">
88+
<p>最后更新: {{ site.time | date: "%Y年%m月%d日" }}</p>
89+
</footer>
90+
</main>
91+
</div>
92+
</body>
93+
</html>

0 commit comments

Comments
 (0)