aboutsummaryrefslogtreecommitdiff
path: root/.vitepress/config.mts
blob: 48677dabcc66c74ee639a20b170bf1b337fac69a (plain)
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
import { defineConfig } from '@lando/vitepress-theme-default-plus/config';
import mkdocsAdmonitions from './mkdocs-admonitions.mjs';

// https://vitepress.dev/reference/site-config
export default defineConfig({
  srcDir: 'docs',

  lang: 'zh-CN',
  title: 'LinuxCabin Handbook',
  description: '给新手的Linux手册',

  markdown: {
    config: (md) => md.use(mkdocsAdmonitions),
  },

  themeConfig: {
    nav: [
      { text: '首页', link: '/' },
      { text: '开始', link: '/getting-started/purpose', activeMatch: '^/getting-started/' },
      { text: '发行版', link: '/distros/distro', activeMatch: '^/distros/' },
      { text: '桌面', link: '/desktop/desktop', activeMatch: '^/desktop/' },
      { text: '兼容性', link: '/compatibility/windows/wine/wine', activeMatch: '^/compatibility/' },
      { text: '应用与工具', link: '/applications/apps', activeMatch: '^/applications/' },
      { text: '进阶', link: '/advanced/lvm', activeMatch: '^/advanced/' },
      { text: '关于', link: '/about' }
    ],

    sidebar: {
      '/getting-started/': [
        {
          text: '开始',
          items: [
            { text: '手册目的', link: '/getting-started/purpose' },
            { text: '操作系统基础', link: '/getting-started/os-basis' },
            { text: '安装前的准备', link: '/getting-started/before-installing' },
            { text: '安装 Linux', link: '/getting-started/install' },
            {
              text: '详细安装过程',
              items: [
                { text: 'Debian', link: '/getting-started/installation-by-distro/debian' },
                { text: 'Fedora', link: '/getting-started/installation-by-distro/fedora' }
              ]
            },
            { text: '安装后的配置', link: '/getting-started/post-installation' },
            {
              text: '设备支持',
              items: [
                { text: '驱动', link: '/getting-started/devices/drivers' },
                { text: 'Mac 设备', link: '/getting-started/devices/mac' },
                { text: '其他设备', link: '/getting-started/devices/others' }
              ]
            },
            { text: '输入法', link: '/getting-started/input-method' },
            { text: '常用命令', link: '/getting-started/common-command' },
            { text: '网络', link: '/getting-started/network' }
          ]
        }
      ],

      '/distros/': [
        {
          text: '发行版',
          items: [
            { text: '发行版概览', link: '/distros/distro' },
            {
              text: 'Debian 系',
              items: [
                { text: '发行版关系图', link: '/distros/debian/graph' },
                { text: 'Debian', link: '/distros/debian/debian' },
                { text: 'Ubuntu', link: '/distros/debian/ubuntu' },
                { text: 'Linux Mint', link: '/distros/debian/linuxmint' },
                { text: 'Deepin', link: '/distros/debian/deepin' }
              ]
            },
            {
              text: 'Red Hat 系',
              items: [
                { text: '发行版关系图', link: '/distros/rhel/graph' },
                { text: 'Fedora', link: '/distros/rhel/fedora' },
                { text: 'RHEL', link: '/distros/rhel/rhel' },
                { text: 'Rocky Linux', link: '/distros/rhel/rocky' },
                { text: 'AlmaLinux', link: '/distros/rhel/almalinux' }
              ]
            },
            {
              text: 'Arch 系',
              items: [
                { text: 'Arch Linux', link: '/distros/arch/archlinux' },
                { text: 'Artix Linux', link: '/distros/arch/artixlinux' },
                { text: 'CachyOS', link: '/distros/arch/cachy' },
                { text: 'EndeavourOS', link: '/distros/arch/endeavoros' }
              ]
            },
            {
              text: 'SUSE 系',
              items: [
                { text: 'SUSE', link: '/distros/suse/suse' },
                { text: 'openSUSE', link: '/distros/suse/opensuse' }
              ]
            },
            { text: 'NixOS', link: '/distros/nixos' },
            { text: 'Gentoo', link: '/distros/gentoo' }
          ]
        }
      ],

      '/desktop/': [
        {
          text: '桌面',
          items: [
            { text: '桌面概览', link: '/desktop/desktop' },
            {
              text: '桌面环境',
              items: [
                { text: 'KDE Plasma', link: '/desktop/de/kde' },
                { text: 'GNOME', link: '/desktop/de/gnome' },
                { text: 'Xfce', link: '/desktop/de/xfce' }
              ]
            },
            {
              text: '窗口管理器',
              items: [
                { text: 'Hyprland', link: '/desktop/wm/hyprland' },
                { text: 'Niri', link: '/desktop/wm/niri' },
                { text: 'i3', link: '/desktop/wm/i3' },
                { text: 'Sway', link: '/desktop/wm/sway' },
                { text: 'Openbox', link: '/desktop/wm/openbox' }
              ]
            },
            {
              text: 'Dotfiles',
              items: [
                { text: 'DMS', link: '/desktop/dotfiles/dms' },
                { text: 'end-4', link: '/desktop/dotfiles/end-4' },
                { text: 'ML4W', link: '/desktop/dotfiles/ml4w' }
              ]
            }
          ]
        }
      ],

      '/compatibility/': [
        {
          text: '兼容性',
          items: [
            {
              text: 'Windows 兼容',
              items: [
                {
                  text: 'Wine 及其衍生方案',
                  items: [
                    { text: 'Wine', link: '/compatibility/windows/wine/wine' },
                    { text: 'Bottles', link: '/compatibility/windows/wine/bottles' },
                    { text: 'Steam', link: '/compatibility/windows/wine/steam' },
                    { text: 'Adobe 应用', link: '/compatibility/windows/wine/adobe_on_wine' }
                  ]
                },
                { text: '虚拟机', link: '/compatibility/windows/vm' }
              ]
            },
            {
              text: '跨发行版',
              items: [
                { text: 'Distrobox', link: '/compatibility/inter-distros/distrobox' }
              ]
            }
          ]
        }
      ],

      '/applications/': [
        {
          text: '应用与工具',
          items: [
            { text: '应用概览', link: '/applications/apps' },
            {
              text: '即时通讯',
              items: [
                { text: 'QQ', link: '/applications/im/qq' },
                { text: '微信', link: '/applications/im/wechat' },
                { text: 'Matrix', link: '/applications/im/matrix' }
              ]
            },
            {
              text: '办公与协作',
              items: [
                { text: '钉钉', link: '/applications/office/dingtalk' },
                { text: '飞书', link: '/applications/office/feishu' },
                { text: 'LibreOffice', link: '/applications/office/libreoffice' },
                { text: 'ONLYOFFICE', link: '/applications/office/onlyoffice' },
                { text: 'WPS Office', link: '/applications/office/wps' }
              ]
            },
            {
              text: '娱乐',
              items: [
                { text: 'QQ 音乐', link: '/applications/entertainment/qqmusic' },
                { text: '网易云音乐', link: '/applications/entertainment/ncm' },
                { text: '腾讯视频', link: '/applications/entertainment/tencent' },
                { text: '爱奇艺', link: '/applications/entertainment/iqiyi' }
              ]
            },
            {
              text: '编辑器',
              items: [
                { text: 'Nano', link: '/applications/editors/nano' },
                { text: 'Emacs', link: '/applications/editors/emacs' },
                { text: 'Vim', link: '/applications/editors/vim' },
                { text: 'VS Code', link: '/applications/editors/vscode' }
              ]
            },
            {
              text: '多媒体处理',
              items: [
                { text: 'GIMP', link: '/applications/multimedia/gimp' },
                { text: 'Krita', link: '/applications/multimedia/krita' },
                { text: 'OBS Studio', link: '/applications/multimedia/obs_studio' },
                { text: 'Kdenlive', link: '/applications/multimedia/kdenlive' },
                { text: 'DaVinci Resolve', link: '/applications/multimedia/davinci' },
                { text: 'VLC', link: '/applications/multimedia/vlc' },
                { text: '其他', link: '/applications/multimedia/others' }
              ]
            },
            {
              text: '编程与开发',
              items: [
                { text: 'Git', link: '/applications/programming/git' },
                { text: 'SSH', link: '/applications/programming/ssh' },
                { text: 'Python', link: '/applications/programming/python' },
                { text: 'Miniconda', link: '/applications/programming/miniconda' },
                { text: 'C/C++', link: '/applications/programming/cpp' }
              ]
            },
            {
              text: '工程制图',
              items: [
                { text: 'ZWCAD', link: '/applications/cad/zwcad' },
                { text: 'FreeCAD', link: '/applications/cad/freecad' },
                { text: 'OpenSCAD', link: '/applications/cad/openscad' }
              ]
            },
            {
              text: 'AI',
              items: [
                { text: 'OpenClaw', link: '/applications/ai/openclaw' },
                { text: 'OpenCode', link: '/applications/ai/opencode' }
              ]
            },
            {
              text: 'Shell',
              items: [
                { text: 'Shell', link: '/applications/shell/shell' },
                { text: 'Bash', link: '/applications/shell/bash' },
                { text: 'Zsh', link: '/applications/shell/zsh' },
                { text: 'Fish', link: '/applications/shell/fish' }
              ]
            },
            {
              text: '游戏引擎',
              items: [
                { text: 'Godot', link: '/applications/gameengine/godot' }
              ]
            },
            {
              text: '系统维护',
              items: [
                { text: 'GParted', link: '/applications/maintenance/gparted' }
              ]
            },
            {
              text: '其他',
              items: [
                { text: 'Fastfetch', link: '/applications/other/fastfetch' }
              ]
            }
          ]
        }
      ],

      '/advanced/': [
        {
          text: '进阶',
          items: [
            { text: 'LVM', link: '/advanced/lvm' },
            {
              text: 'Btrfs',
              items: [
                { text: 'Btrfs', link: '/advanced/btrfs/btrfs' },
                { text: '在 Btrfs 上安装 Linux', link: '/advanced/btrfs/linux_on_btrfs' },
                { text: '迁移到 Btrfs', link: '/advanced/btrfs/migrating_to_btrfs' }
              ]
            },
            { text: 'Swap', link: '/advanced/swap' },
            { text: '引导加载器', link: '/advanced/boot_loader' },
            {
              text: '命令',
              items: [
                { text: 'dd', link: '/advanced/command/dd' }
              ]
            }
          ]
        }
      ]
    },

    socialLinks: [
      { icon: 'codeberg', link: 'https://codeberg.org/LinuxCabin/linux-handbook' }
    ]
  }
})