This commit is contained in:
2025-11-06 13:01:15 +08:00
parent c3a766cf97
commit 78e8869950
6 changed files with 85 additions and 140 deletions
+16
View File
@@ -7,6 +7,22 @@ export default {
footer: { footer: {
message: '<a href="https://beian.miit.gov.cn" target="_blank">冀ICP备2025104367号</a>/<a href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank">京公网安备11011502038830号</a>', message: '<a href="https://beian.miit.gov.cn" target="_blank">冀ICP备2025104367号</a>/<a href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank">京公网安备11011502038830号</a>',
copyright: 'Copyright © 2019-2025 阿帅正传' copyright: 'Copyright © 2019-2025 阿帅正传'
},
sidebar: {
// 当用户位于 `guide` 目录时,会显示此侧边栏
'/linux/': [
{
text: 'Linux',
items: [
{text: 'Index', link: '/linux/linux'},
{text: 'nvim', link: '/linux/01-nvim'},
]
} }
],
},
socialLinks: [
{ icon: 'gitee', link: 'https://gitee.com/song_kang_shuai' },
{ icon: 'github', link: 'https://github.com/xiaoshuai125' },
],
} }
} }
-49
View File
@@ -1,49 +0,0 @@
---
outline: deep
---
# Runtime API Examples
This page demonstrates usage of some of the runtime APIs provided by VitePress.
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
```md
<script setup>
import { useData } from 'vitepress'
const { theme, page, frontmatter } = useData()
</script>
## Results
### Theme Data
<pre>{{ theme }}</pre>
### Page Data
<pre>{{ page }}</pre>
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
```
<script setup>
import { useData } from 'vitepress'
const { site, theme, page, frontmatter } = useData()
</script>
## Results
### Theme Data
<pre>{{ theme }}</pre>
### Page Data
<pre>{{ page }}</pre>
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
## More
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
+5 -5
View File
@@ -8,11 +8,11 @@ hero:
tagline: Timeless小帅's Blog tagline: Timeless小帅's Blog
actions: actions:
- theme: brand - theme: brand
text: Markdown Examples text: Linux使用日常
link: /markdown-examples link: /linux/linux
- theme: alt # - theme: alt
text: API Examples # text: Linux使用日常
link: /api-examples # link: /linux
features: features:
- title: Feature A - title: Feature A
+54
View File
@@ -0,0 +1,54 @@
# nvim 编辑器
最近想尝试用一下 nvim,我的操作系统是 Ubuntu24
## 提前安装好:
一个带有 npm 的 nodejs 环境
Nerd 字体,并将你的终端字体设置成 Nerd 字体
我用的是 JetBrains Mono ,如果你安装过 Nerd Font 跳过这个步骤
```shell
# 下载 JetBrainsMono Nerd Font 压缩包
curl -OL https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
# 创建用户字体目录
mkdir -p ~/.local/share/fonts/JetBrainsMono
# 解压下载的压缩包到字体目录
tar -xf JetBrainsMono.tar.xz -C ~/.local/share/fonts/JetBrainsMono
# 更新系统字体缓存
fc-cache -fv
# (可选)删除下载的压缩包
rm -f JetBrainsMono.tar.xz
# 验证安装(查看是否能识别到字体,输出包含 "JetBrainsMono Nerd Font" 即成功)
fc-list | grep -i "jetbrainsmono nerd"
```
::: info
安装完成字体之后要设置自己的终端字体为 JetBrainsMono Nerd Font Mono
:::
## 安装 nvim
我常试过使用 apt 安装,但是我安装的总是有问题。先说怎么安装,后面再说踩到的坑。
我现在用的是 appimage 版本的,下载地址
https://github.com/neovim/neovim/releases
我下载到了~/Applications 目录,根据自己喜好设置【2025 年 9 月 5 日 22:18:09】
```shell
cd ~/Applications
wget https://github.com/neovim/neovim/releases/download/nightly/nvim-linux-x86_64.appimage
chmod +x nvim-linux-x86_64.appimage
# 然后修改 ./bashrc 添加一个启动方式
echo "alias nvim='~/Applications/nvim-linux-x86_64.appimage'" >> ~/.bashrc
source ~/.bashrc
```
之后就可以命令行使用 nvim 了
## 使用 NvChad
这里有安装教程:
https://nvchad.com/docs/quickstart/install
这里我复制出来了,一个命令即可【2025 年 9 月 5 日 17:44:39】
```shell
git clone https://github.com/NvChad/starter ~/.config/nvim && nvim
```
回车之后就会安装了,会略微卡几秒钟 不要慌
先体验一下试试
目前到这里了,后面更新。。。 还再学,先记录一点【2025 年 9 月 5 日 17:50:53】
+9
View File
@@ -0,0 +1,9 @@
# Linux 使用日常记录
Linux学习日记,记录一些踩过的坑
我自己用的ubuntu22 记录日期【2025年11月06日】。
最开始安装的是ubuntu24 由于好多软件都因为系统版本过高用不了,切换源最后切的系统挂掉了。所以我还是又重新安装了ubuntu22.04版本作为日常使用
记录一下日常使用的文档日记
-85
View File
@@ -1,85 +0,0 @@
# Markdown Extension Examples
This page demonstrates some of the built-in markdown extensions provided by VitePress.
## Syntax Highlighting
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
**Input**
````md
```js{4}
export default {
data () {
return {
msg: 'Highlighted!'
}
}
}
```
````
**Output**
```js{4}
export default {
data () {
return {
msg: 'Highlighted!'
}
}
}
```
## Custom Containers
**Input**
```md
::: info
This is an info box.
:::
::: tip
This is a tip.
:::
::: warning
This is a warning.
:::
::: danger
This is a dangerous warning.
:::
::: details
This is a details block.
:::
```
**Output**
::: info
This is an info box.
:::
::: tip
This is a tip.
:::
::: warning
This is a warning.
:::
::: danger
This is a dangerous warning.
:::
::: details
This is a details block.
:::
## More
Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).