Skip to content

Commit

Permalink
refactor: remove frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Groveer committed Jan 17, 2024
1 parent fd9dddb commit 529f7c2
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 716 deletions.
2 changes: 0 additions & 2 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ function sidebarBlog() {
{ text: "自动登陆", link: "/blog/linux-auto-login" },
{ text: "挂载小技巧", link: "/blog/linux-mount" },
{ text: "网络管理", link: "/blog/linux-networkmanager" },
{ text: "分区 & 格式化", link: "/blog/linux-partition-format" },
{ text: "zram & swap", link: "/blog/linux-zram" },
],
},
Expand All @@ -141,7 +140,6 @@ function sidebarBlog() {
text: "IDE",
collapsed: false,
items: [
{ text: "Vim 配置", link: "/blog/vim" },
{ text: "VsCode 配置", link: "/blog/vscode" },
{ text: "Windows Neovim 配置", link: "/blog/windows-neovim-c" },
],
Expand Down
22 changes: 7 additions & 15 deletions docs/blog/archlinux-config.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
---
title: ArchLinux 安装后配置
date: 2022-08-03 14:46:23
tags:
- Linux
categories:
- ArchLinux
cover: https://pic.3gbizhi.com/2020/0827/20200827012846681.jpg
feature: false
---
# {{ $frontmatter.title }}
# ArchLinux 安装后配置

ArchLinux 安装后并不是完事大吉了,还需要好好配置才能愉快的进行使用。

Expand Down Expand Up @@ -43,7 +33,7 @@ ArchLinux 安装后并不是完事大吉了,还需要好好配置才能愉快

若安装失败,可以参考[GnuPG-2.1 与 pacman 密钥环](https://www.archlinuxcn.org/gnupg-2-1-and-the-pacman-keyring/)重新生成密钥环。

### 配置[aur](https://wiki.archlinux.org/title/Arch_User_Repository_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87))
### 配置[aur](<https://wiki.archlinux.org/title/Arch_User_Repository_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)>)

```shell
sudo pacman -S yay
Expand All @@ -63,7 +53,7 @@ yay -S mkinitcpio-firmware

### 配置X11环境

1. 安装[xorg](https://wiki.archlinux.org/title/Xorg_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)):
1. 安装[xorg](<https://wiki.archlinux.org/title/Xorg_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)>):

```shell
yay -S xorg-server xorg-xinit
Expand Down Expand Up @@ -107,6 +97,7 @@ wayland本身只是个协议,并不提供图形环境,因此需要安装混
```

其他桌面环境自行搜索:[wayland](https://wiki.archlinux.org/title/Wayland)

> 某些应用程序是支持wayland协议,但是默认却走的xwayland,导致显示效果很不理想,可以设置环境变量或配置文件使其走wayland协议

3. Firefox:
Expand Down Expand Up @@ -201,7 +192,7 @@ wayland本身只是个协议,并不提供图形环境,因此需要安装混

## 安装输入法

1. 安装[fcitx5](https://wiki.archlinux.org/title/Fcitx5_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)):
1. 安装[fcitx5](<https://wiki.archlinux.org/title/Fcitx5_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)>):

```shell
yay -S fcitx5 fcitx5-chinese-addons fcitx5-gtk fcitx5-configtool
Expand Down Expand Up @@ -236,7 +227,7 @@ wayland本身只是个协议,并不提供图形环境,因此需要安装混

### golang

1. 安装[go](https://wiki.archlinux.org/title/Go_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)):
1. 安装[go](<https://wiki.archlinux.org/title/Go_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)>):

```shell
yay -S go
Expand Down Expand Up @@ -286,6 +277,7 @@ wayland本身只是个协议,并不提供图形环境,因此需要安装混
`powerdevil`:电源管理模块,系统设置中的电源管理
`kwalletmanager`:KDE 钱包管理,一般用来禁用电子钱包
`konsole`:KDE 的仿真终端

2. 基本安装:
基本安装并不代表最小化安装,基本安装会附带很多程序,如桌面小工具、discover等

Expand Down
13 changes: 1 addition & 12 deletions docs/blog/archlinux-install-nvidia.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
---
title: ArchLinux 安装 Nvidia 驱动
date: 2022-08-05 14:46:32
tags:
- Linux
categories:
- ArchLinux
cover: https://pic.3gbizhi.com/2020/1011/20201011011357445.jpg
feature: false
---

# {{ $frontmatter.title }}
# ArchLinux 安装 Nvidia 驱动

Nvidia 的开源驱动(nouveau)是作为逆向工程开发的,性能毕竟比不上闭源驱动,本篇教程将教大家在 ArchLinux 上安装闭源驱动。

Expand Down
14 changes: 1 addition & 13 deletions docs/blog/cmake-advanced.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
---
title: CMake 进阶用法
date: 2022-09-08 19:46:21
tags:
- CMake
- Qt
categories:
- Development
cover: https://pic.3gbizhi.com/2020/0816/20200816070447569.jpg
feature: true
---

# {{ $frontmatter.title }}
# CMake 进阶用法

使用 CMake 创建一个简单的基于 Qt 的开发库,并且逐步添加单元测试和文档示例(doxygen)。

Expand Down
14 changes: 1 addition & 13 deletions docs/blog/cmake-basic.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
---
title: CMake 基础用法
date: 2022-09-07 19:36:43
tags:
- CMake
- Qt
categories:
- Development
cover: https://pic.3gbizhi.com/2019/0923/20190923050727803.jpg
feature: false
---

# {{ $frontmatter.title }}
# CMake 基础用法

创建 CMake 项目大概需要以下几步:

Expand Down
13 changes: 2 additions & 11 deletions docs/blog/deepin-repair-system.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
---
title: Deepin 系统修复
date: 2022-07-12 15:36:36
tags:
- Linux
categories:
- Deepin
cover: https://pic.3gbizhi.com/2019/0912/20190912025700341.jpg
feature: false
---
# {{ $frontmatter.title }}
# Deepin 系统修复

Deepin 系统是一个基于 debian 的操作系统(UOS 为其专业版),最近发现很多小伙伴在升级时可能导致系统崩溃,无法进入的情况,这里提供一个通用的修复方法。一般升级出现的问题都是系统核心模块没有正常升级导致(通常是 systemd);这里的修复方法是通过 live 系统对 Deepin 本身的文件系统进行挂载,然后 chroot 进去进行再次更新来进行修复。

Expand Down Expand Up @@ -60,4 +50,5 @@ chroot:这是一个命令,目的是切换根目录,将某个目录当作
```

当执行`apt update`可能会出现无法获取仓库源的情况,这是由于 live 系统未激活导致,但是一般会出现`dpkg --configure -a`的提示,此时使用该命令再次更新即可。

9. 至此,Deepin 系统已经成功进行再次更新,然后按`ctrl+d`退出 chroot 环境,最后使用`sudo reboot`重启系统进行 Deepin 就可以查看是否正常了
13 changes: 1 addition & 12 deletions docs/blog/git.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
---
title: git 命令使用方法
date: 2022-08-13 19:46:11
tags:
- Tool
- Windows
categories:
- Tool
cover: https://pic.3gbizhi.com/2020/1104/20201104025420867.jpg
feature: false
---
# {{ $frontmatter.title }}
# git 命令使用方法

本文章只提供一些不常见的用法,对于 git 基本用法,网上教程很多,这里不再赘述。

Expand Down
13 changes: 1 addition & 12 deletions docs/blog/latex.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
---
title: Latex 环境配置
date: 2023-01-17 18:52:54
tags:
- Tool
categories:
- Tool
cover: https://pic.3gbizhi.com/2020/0915/20200915093843136.jpg
feature: false
---

# {{ $frontmatter.title }}
# Latex 环境配置

## 安装基础软件

Expand Down
12 changes: 1 addition & 11 deletions docs/blog/linux-auto-login.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
---
title: 使用 systemd 实现自动登陆
date: 2022-09-16 15:59:35
tags:
- Linux
categories:
- Linux
cover: https://pic.3gbizhi.com/2019/0909/20190909043921431.jpg
feature: false
---
# {{ $frontmatter.title }}
# 使用 systemd 实现自动登陆

systemd 是一个 Linux 系统基础组件的集合,提供了一个系统和服务管理器,运行为 PID 1 并负责启动其它程序。使用 systemd 实现自动登录,其实就是开机自启 getty 服务,但默认的服务需要进行修改才能实现该功能。

Expand Down
12 changes: 1 addition & 11 deletions docs/blog/linux-mount.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
---
title: Linux 磁盘挂载
date: 2022-09-10 16:06:43
tags:
- Linux
categories:
- Linux
cover: https://pic.3gbizhi.com/2014/0504/20140504053231302.jpg
feature: false
---
# {{ $frontmatter.title }}
# Linux 磁盘挂载

这里提供一些在 Linux 环境下磁盘挂载小技巧。

Expand Down
13 changes: 1 addition & 12 deletions docs/blog/linux-networkmanager.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
---
title: NetworkManager 一些技巧
date: 2023-01-09 11:48:39
tags:
- Linux
- NetworkManager
categories:
- Linux
cover: https://pic.3gbizhi.com/2020/1214/20201214113105310.jpg
feature: false
---
# {{ $frontmatter.title }}
# NetworkManager 一些技巧

NetworkManager 是一个为系统提供检测和配置功能以便自动连接到网络的程序。NetworkManager 的功能对无线和有线网络都很有用。

Expand Down
28 changes: 0 additions & 28 deletions docs/blog/linux-partition-format.md

This file was deleted.

13 changes: 1 addition & 12 deletions docs/blog/linux-zram.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
---
title: 使用zram创建swap分区
date: 2022-08-23 18:33:27
tags:
- Linux
categories:
- Linux
cover: https://pic.3gbizhi.com/2020/1020/20201020112257666.jpg
feature: false
---

# {{ $frontmatter.title }}
# 使用zram创建swap分区

使用 zram 作为交换空间,与常规的基于分区或基于文件的交换空间做的事情相同。当内存压力过大时,一些最近使用最少的数据会被移到交换空间。平均来说,它会被压缩到其原始大小的 50% 左右,并被放置在内存的 zram 空间中。这比将这些内存页存储在硬盘上要快得多,并可以释放出它所使用的内存用于其他用途。

Expand Down
14 changes: 1 addition & 13 deletions docs/blog/qemu.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
---
title: 如何优雅的使用 qemu-kvm
date: 2022-06-08 19:16:16
tags:
- Linux
- Tool
categories:
- Linux
cover: https://pic.3gbizhi.com/2020/1010/20201010015227581.jpg
feature: false
---

# {{ $frontmatter.title }}
# 如何优雅的使用 qemu-kvm

作为开发人员,往往需要在各种环境中进行调试,由于硬件资源的限制,调试环境的配置,往往需要花费大量的时间,本篇文章旨在使用 qemu-kvm 来配置各种调试环境,并且合理使用快照功能来实现各个环境的切换。

Expand Down
13 changes: 1 addition & 12 deletions docs/blog/qt-tips.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
---
title: Qt 提升代码质量的方法
date: 2022-08-25 19:34:32
tags:
- Qt
- C++
categories:
- Development
cover: https://pic.3gbizhi.com/2020/0827/20200827012845413.jpg
feature: false
---
# {{ $frontmatter.title }}
# Qt 提升代码质量的方法

1. 不需要的头文件不要包含
2. 尽量使用前置声明,而非一味的包头文件
Expand Down
14 changes: 4 additions & 10 deletions docs/blog/toc.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: 目录
---

# {{ $frontmatter.title }}
# 目录

1. Linux
1. ArchLinux
Expand All @@ -16,8 +12,7 @@ title: 目录
3. [自动登陆](linux-auto-login)
4. [挂载小技巧](linux-mount)
5. [网络管理](linux-networkmanager)
6. [分区 & 格式化](linux-partition-format)
7. [zram & swap](linux-zram)
6. [zram & swap](linux-zram)
2. Develop
1. [CMake 基础用法](cmake-basic)
2. [CMake 进阶用法](cmake-advanced)
Expand All @@ -28,6 +23,5 @@ title: 目录
3. [Qemu 工具](qemu)
4. [clash 配置](clash)
4. IDE
1. [Vim 配置](vim)
2. [VsCode 配置](vscode)
3. [Windows Neovim 配置](windows-neovim-c)
1. [VsCode 配置](vscode)
2. [Windows Neovim 配置](windows-neovim-c)
Loading

0 comments on commit 529f7c2

Please sign in to comment.