|
1 | | -{{- /* Hero 架构图:把 pig 的工作原理画成三段流水线 —— |
2 | | - 上游仓库 → 一个静态二进制 → 本机上被管起来的东西。 |
| 1 | +{{- /* Hero 架构图:上游仓库 → 一个静态二进制及其子命令。 |
3 | 2 | 颜色全部走 landing-v3.css 的主题变量(.pa-* 类), |
4 | 3 | 所以深浅主题各自成立;动效受 prefers-reduced-motion 约束。 */ -}} |
5 | 4 | {{- $zh := eq .Site.Language.Lang "zh" -}} |
6 | 5 | {{- $ext := .Site.Params.pgext_count -}} |
7 | 6 | <figure class="hero-figure" aria-labelledby="hero-arch-title" aria-describedby="hero-arch-desc"> |
8 | | - <svg class="pig-arch" viewBox="0 0 560 512" role="img" xmlns="http://www.w3.org/2000/svg"> |
| 7 | + <svg class="pig-arch" viewBox="0 0 560 326" role="img" xmlns="http://www.w3.org/2000/svg"> |
9 | 8 | <title id="hero-arch-title">{{ if $zh }}pig 工作原理示意图{{ else }}How pig works{{ end }}</title> |
10 | | - <desc id="hero-arch-desc">{{ if $zh }}pig 从 Pigsty Infra、PGDG 与操作系统基础仓库解析软件包,通过 repo、ext、pg、pt、pb、pitr 等子命令,在本机配置仓库、安装 PostgreSQL 14-18 与 {{ $ext }} 个扩展,并接管 Patroni 高可用与 pgBackRest 备份恢复。{{ else }}pig resolves packages from Pigsty Infra, PGDG, and the OS base repositories, then uses its repo, ext, pg, pt, pb, and pitr subcommands to configure repositories on the host, install PostgreSQL 14-18 with {{ $ext }} extensions, and drive Patroni high availability and pgBackRest backup and recovery.{{ end }}</desc> |
| 9 | + <desc id="hero-arch-desc">{{ if $zh }}pig 从 Pigsty Infra、PGDG 与操作系统基础仓库解析软件包,再由一个静态二进制的 repo、ext、pg、pt、pb、pitr 等子命令,配置仓库、安装 PostgreSQL 14-18 与 {{ $ext }} 个扩展,并接管 Patroni 高可用与 pgBackRest 备份恢复。{{ else }}pig resolves packages from Pigsty Infra, PGDG, and the OS base repositories, then drives them from one static binary whose repo, ext, pg, pt, pb, and pitr subcommands configure repositories, install PostgreSQL 14-18 with {{ $ext }} extensions, and run Patroni high availability and pgBackRest backup and recovery.{{ end }}</desc> |
11 | 10 |
|
12 | 11 | <defs> |
13 | 12 | <linearGradient id="pa-core-sheen" x1="0" y1="0" x2="1" y2="1"> |
|
105 | 104 | </g> |
106 | 105 | </g> |
107 | 106 |
|
108 | | - {{/* 内核 → 主机 */}} |
109 | | - <g class="pa-wires"> |
110 | | - <path class="pa-trace pa-trace--head" d="M280 316 V 372" marker-end="url(#pa-arrow)"/> |
111 | | - <path class="pa-flow pa-flow--c" d="M280 316 V 368"/> |
112 | | - <circle class="pa-node" cx="280" cy="316" r="3"/> |
113 | | - <text class="pa-edge-label" x="292" y="344">apt · dnf · systemd</text> |
114 | | - </g> |
115 | | - |
116 | | - {{/* -------------------------------------------------------------- 主机 */}} |
117 | | - <g class="pa-band"> |
118 | | - <text class="pa-band-label" x="16" y="366">{{ if $zh }}你的主机{{ else }}YOUR HOST{{ end }}</text> |
119 | | - <line class="pa-rule" x1="16" y1="376" x2="544" y2="376"/> |
120 | | - |
121 | | - <rect class="pa-plate" x="16" y="388" width="258" height="52" rx="9"/> |
122 | | - <text class="pa-plate-title" x="34" y="410">{{ if $zh }}仓库定义{{ else }}Repositories{{ end }}</text> |
123 | | - <text class="pa-plate-sub" x="34" y="428">/etc/apt · /etc/yum.repos.d</text> |
124 | | - |
125 | | - <rect class="pa-plate" x="286" y="388" width="258" height="52" rx="9"/> |
126 | | - <text class="pa-plate-title" x="304" y="410">PostgreSQL 14 – 18</text> |
127 | | - <text class="pa-plate-sub" x="304" y="428">{{ if $zh }}内核 + {{ $ext }} 个扩展包{{ else }}kernels + {{ $ext }} extension packages{{ end }}</text> |
128 | | - |
129 | | - <rect class="pa-plate" x="16" y="448" width="258" height="52" rx="9"/> |
130 | | - <text class="pa-plate-title" x="34" y="470">Patroni</text> |
131 | | - <text class="pa-plate-sub" x="34" y="488">{{ if $zh }}高可用集群与切换{{ else }}HA cluster & switchover{{ end }}</text> |
132 | | - |
133 | | - <rect class="pa-plate" x="286" y="448" width="258" height="52" rx="9"/> |
134 | | - <text class="pa-plate-title" x="304" y="470">pgBackRest → PITR</text> |
135 | | - <text class="pa-plate-sub" x="304" y="488">{{ if $zh }}备份、校验与时间点恢复{{ else }}backup, verify, recover{{ end }}</text> |
136 | | - </g> |
137 | 107 | </svg> |
138 | 108 | </figure> |
0 commit comments