-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.html
More file actions
286 lines (244 loc) · 12.2 KB
/
docs.html
File metadata and controls
286 lines (244 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="favicon.ico">
<title>安装指南 — Gridea Pro 文档</title>
<meta name="description" content="Gridea Pro 使用文档与安装指南。快速上手、主题开发、部署配置、常见问题一站解决。">
<meta name="keywords" content="Gridea Pro文档,安装指南,使用教程,主题开发,部署配置,常见问题">
<link rel="canonical" href="https://gridea.pro/docs.html">
<meta property="og:type" content="article">
<meta property="og:title" content="安装指南 — Gridea Pro 文档">
<meta property="og:description" content="Gridea Pro 使用文档与安装指南。快速上手、主题开发、部署配置、常见问题一站解决。">
<meta property="og:url" content="https://gridea.pro/docs.html">
<meta property="og:image" content="https://gridea.pro/appicon.png">
<meta property="og:site_name" content="Gridea Pro">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="安装指南 — Gridea Pro 文档">
<meta name="twitter:description" content="Gridea Pro 使用文档与安装指南。快速上手、主题开发、部署配置、常见问题一站解决。">
<meta name="twitter:image" content="https://gridea.pro/appicon.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"name": "安装指南 — Gridea Pro 文档",
"description": "Gridea Pro 使用文档与安装指南。快速上手、主题开发、部署配置、常见问题一站解决。",
"url": "https://gridea.pro/docs.html",
"isPartOf": {
"@type": "WebSite",
"name": "Gridea Pro",
"url": "https://gridea.pro/"
}
}
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=JetBrains+Mono&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/docs.css">
</head>
<body>
<!-- ==================== HEADER ==================== -->
<header class="site-header">
<div class="header-inner">
<div style="display:flex;align-items:center;gap:16px;">
<button class="mobile-menu-btn" onclick="toggleSidebar()" aria-label="Toggle menu">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
</button>
<div class="header-brand">
<a href="index.html">
<img src="appicon.png" alt="Gridea Pro" class="brand-mark">
<span class="brand-text">Gridea Pro</span>
</a>
</div>
</div>
<nav class="header-nav">
<a href="docs.html" class="active">文档</a>
<a href="themes.html">主题</a>
<a href="changelog.html">更新日志</a>
<a href="https://github.com/Gridea-Pro/gridea-pro" class="github-link" target="_blank" rel="noopener">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg>
</a>
</nav>
<div class="header-actions">
<a href="download.html" class="btn-download">下载</a>
</div>
</div>
</header>
<!-- ==================== SIDEBAR OVERLAY ==================== -->
<div class="sidebar-overlay" onclick="toggleSidebar()"></div>
<!-- ==================== LEFT SIDEBAR ==================== -->
<aside class="sidebar" id="sidebar">
<div class="sidebar-search">
<div class="search-input-wrap">
<input type="text" class="search-input" placeholder="搜索文档...">
<span class="search-kbd">⌘K</span>
</div>
</div>
<nav class="sidebar-nav">
<div class="sidebar-section">
<div class="sidebar-section-header" onclick="toggleSection(this)">
<span class="sidebar-section-title">开始使用</span>
<svg class="sidebar-section-arrow" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="6 4 10 8 6 12"/></svg>
</div>
<ul class="sidebar-links">
<li><a href="#" class="active">安装指南</a></li>
<li><a href="#">快速开始</a></li>
</ul>
</div>
<div class="sidebar-section">
<div class="sidebar-section-header" onclick="toggleSection(this)">
<span class="sidebar-section-title">使用指南</span>
<svg class="sidebar-section-arrow" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="6 4 10 8 6 12"/></svg>
</div>
<ul class="sidebar-links">
<li><a href="#">写作与编辑</a></li>
<li><a href="#">主题管理</a></li>
<li><a href="#">部署博客</a></li>
<li><a href="#">个性化设置</a></li>
</ul>
</div>
<div class="sidebar-section">
<div class="sidebar-section-header" onclick="toggleSection(this)">
<span class="sidebar-section-title">主题开发</span>
<svg class="sidebar-section-arrow" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="6 4 10 8 6 12"/></svg>
</div>
<ul class="sidebar-links">
<li><a href="#">主题架构</a></li>
<li><a href="#">模板变量参考</a></li>
<li><a href="#">配置规范 (config.json)</a></li>
<li><a href="#">Jinja2 (Pongo2) 指南</a></li>
<li><a href="#">Go Templates 指南</a></li>
<li><a href="#">EJS 指南</a></li>
</ul>
</div>
<div class="sidebar-section">
<div class="sidebar-section-header" onclick="toggleSection(this)">
<span class="sidebar-section-title">其他</span>
<svg class="sidebar-section-arrow" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="6 4 10 8 6 12"/></svg>
</div>
<ul class="sidebar-links">
<li><a href="#">常见问题</a></li>
<li><a href="#">贡献指南</a></li>
<li><a href="#">从 Gridea 迁移</a></li>
<li><a href="#">从 Hexo/Hugo 迁移</a></li>
</ul>
</div>
</nav>
</aside>
<!-- ==================== MAIN CONTENT ==================== -->
<main class="docs-main">
<article class="docs-content">
<div class="breadcrumb">
<a href="docs.html">文档</a>
<span class="sep">/</span>
<a href="#">开始使用</a>
<span class="sep">/</span>
安装指南
</div>
<div class="doc-content">
<h1>安装指南</h1>
<p class="lead">Gridea Pro 支持 macOS、Windows 和 Linux 三大平台。本指南将帮助你在几分钟内完成安装,开始你的写作之旅。</p>
<h2 id="system-requirements">系统要求</h2>
<p>在安装之前,请确认你的系统满足以下最低要求:</p>
<table>
<thead>
<tr>
<th>操作系统</th>
<th>最低版本</th>
<th>架构</th>
</tr>
</thead>
<tbody>
<tr>
<td>macOS</td>
<td>10.15 (Catalina) 或更高</td>
<td>Apple Silicon / Intel x64</td>
</tr>
<tr>
<td>Windows</td>
<td>10 (1803+)</td>
<td>x64 或 ARM</td>
</tr>
<tr>
<td>Linux</td>
<td>Ubuntu 20.04 / Fedora 36</td>
<td>amd64</td>
</tr>
</tbody>
</table>
<p>Gridea Pro 基于 Go + Wails v2 构建,无需 Node.js 或其他运行时依赖。安装包已包含所有必要组件。</p>
<h2 id="download-install">下载安装</h2>
<h3>macOS</h3>
<p>推荐通过 Homebrew 安装,这样可以方便地管理版本更新:</p>
<div style="position:relative;">
<pre><code><span class="code-comment"># 通过 Homebrew 安装</span>
<span class="code-keyword">brew install</span> <span class="code-flag">--cask</span> gridea-pro</code></pre>
<span class="code-label">Terminal</span>
</div>
<p>也可以从 <a href="#">GitHub Releases</a> 下载 <code>.dmg</code> 文件,双击打开后将 Gridea Pro 拖入应用程序文件夹。</p>
<h3>Windows</h3>
<p>从 <a href="#">GitHub Releases</a> 下载最新的 <code>.exe</code> 安装包。双击运行安装程序,按照提示完成安装即可。</p>
<p>安装完成后,可以在开始菜单中找到 Gridea Pro,也可以在桌面找到快捷方式。</p>
<h3>Linux</h3>
<p>根据你的发行版选择对应的安装方式:</p>
<div style="position:relative;">
<pre><code><span class="code-comment"># Debian / Ubuntu</span>
<span class="code-keyword">wget</span> https://github.com/Gridea-Pro/gridea-pro/releases/latest/download/gridea-pro_amd64.deb
<span class="code-keyword">sudo dpkg</span> <span class="code-flag">-i</span> gridea-pro_amd64.deb</code></pre>
<span class="code-label">Terminal</span>
</div>
<div style="position:relative;">
<pre><code><span class="code-comment"># Fedora / RHEL</span>
<span class="code-keyword">wget</span> https://github.com/Gridea-Pro/gridea-pro/releases/latest/download/gridea-pro_amd64.rpm
<span class="code-keyword">sudo rpm</span> <span class="code-flag">-i</span> gridea-pro_amd64.rpm</code></pre>
<span class="code-label">Terminal</span>
</div>
<h2 id="verify-install">验证安装</h2>
<p>安装完成后,启动 Gridea Pro。你应该能看到欢迎界面。如果是首次使用,应用会引导你完成基础配置,包括选择博客存储目录和默认主题。</p>
<p>如果在安装过程中遇到问题,请参阅 <a href="#">常见问题</a> 或在 <a href="https://github.com/Gridea-Pro/gridea-pro/discussions">GitHub Discussions</a> 中寻求帮助。</p>
<h2 id="next-steps">下一步</h2>
<p>安装完成后,你可以继续阅读以下内容来快速上手:</p>
<div class="next-links">
<a href="#">快速开始 →</a>
<a href="#">了解主题系统 →</a>
</div>
<!-- Edit on GitHub -->
<div class="edit-link">
<a href="https://github.com/Gridea-Pro/gridea-pro" target="_blank" rel="noopener">
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M11.5 1.5l3 3L5 14H2v-3L11.5 1.5z"/></svg>
Edit this page on GitHub
</a>
</div>
<!-- Prev / Next -->
<div class="page-nav">
<a href="#" class="prev">
<span class="page-nav-label">上一页</span>
<span class="page-nav-title">← 开始使用</span>
</a>
<a href="#" class="next">
<span class="page-nav-label">下一页</span>
<span class="page-nav-title">快速开始 →</span>
</a>
</div>
</div>
</article>
</main>
<!-- ==================== TOC (RIGHT SIDEBAR) ==================== -->
<aside class="toc">
<div class="toc-title">目录</div>
<ul class="toc-links">
<li><a href="#system-requirements" class="active">系统要求</a></li>
<li><a href="#download-install">下载安装</a></li>
<li><a href="#verify-install">验证安装</a></li>
<li><a href="#next-steps">下一步</a></li>
</ul>
</aside>
<!-- ==================== MINIMAL FOOTER ==================== -->
<div class="docs-footer">
© 2026 Gridea Pro Contributors. Open source under GPL-3.0.
</div>
<script src="js/docs-nav.js"></script>
</body>
</html>