diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index a806f4c..f8cfeef 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -7,6 +7,22 @@ export default { footer: { message: '冀ICP备2025104367号/京公网安备11011502038830号', 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' }, + ], } } \ No newline at end of file diff --git a/docs/api-examples.md b/docs/api-examples.md deleted file mode 100644 index 6bd8bb5..0000000 --- a/docs/api-examples.md +++ /dev/null @@ -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 - - -## Results - -### Theme Data -
{{ theme }}
- -### Page Data -
{{ page }}
- -### Page Frontmatter -
{{ frontmatter }}
-``` - - - -## Results - -### Theme Data -
{{ theme }}
- -### Page Data -
{{ page }}
- -### Page Frontmatter -
{{ frontmatter }}
- -## More - -Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). diff --git a/docs/index.md b/docs/index.md index 15efad4..427e6ba 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,11 +8,11 @@ hero: tagline: Timeless小帅's Blog actions: - theme: brand - text: Markdown Examples - link: /markdown-examples - - theme: alt - text: API Examples - link: /api-examples + text: Linux使用日常 + link: /linux/linux +# - theme: alt +# text: Linux使用日常 +# link: /linux features: - title: Feature A diff --git a/docs/linux/01-nvim.md b/docs/linux/01-nvim.md new file mode 100644 index 0000000..eecc9ad --- /dev/null +++ b/docs/linux/01-nvim.md @@ -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】 \ No newline at end of file diff --git a/docs/linux/linux.md b/docs/linux/linux.md new file mode 100644 index 0000000..77aa4a9 --- /dev/null +++ b/docs/linux/linux.md @@ -0,0 +1,9 @@ +# Linux 使用日常记录 + +Linux学习日记,记录一些踩过的坑 + +我自己用的ubuntu22 记录日期【2025年11月06日】。 + +最开始安装的是ubuntu24 由于好多软件都因为系统版本过高用不了,切换源最后切的系统挂掉了。所以我还是又重新安装了ubuntu22.04版本作为日常使用 + +记录一下日常使用的文档日记 diff --git a/docs/markdown-examples.md b/docs/markdown-examples.md deleted file mode 100644 index f9258a5..0000000 --- a/docs/markdown-examples.md +++ /dev/null @@ -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).