> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# 我抽空写了3个rspress插件

## 前言

我之前提到过将[笔记从`VuePress`迁移到`Rspress`](https://www.tteam.icu/blog/dev/%E7%AC%94%E8%AE%B0%E4%BB%8Evuepress%E8%BF%81%E7%A7%BB%E5%88%B0rspress.md)

## 现状

### 官方更新

在经过多个月的发展后，`Rspress`官方已经支持类似`VuePress`的`@[code](./foo.js)`语法:

````text
```file="../1212.js"
````

因此，我将之前开发的相关插件迁移到了官方推荐的模式

![](https://img.tteam.icu/i/2026/03/01/cbce225b.webp)

### 我现在使用的插件

![](https://img.tteam.icu/i/2026/03/01/2af16a01.webp)

#### 自动侧边栏

[开源地址](https://github.com/buyfakett/rspress-plugin-auto-sidebar)

只需要按规则定义好导航栏，就会自动搜索导航栏指定的目录，并自动生成侧边栏

![](https://img.tteam.icu/i/2026/03/01/4fa09e73.webp)

![](https://img.tteam.icu/i/2026/03/01/a46dc8b8.webp)

#### `giscus`评论插件

[开源地址](https://github.com/buyfakett/rspress-plugin-giscus)

会在每篇文章下面增加`giscus`评论

![](https://img.tteam.icu/i/2026/03/01/e3f0cee5.webp)

#### 地图插件

[开源地址](https://github.com/buyfakett/rspress-plugin-map)

这个插件的灵感来自于[hexo-tag-map](https://github.com/kuole-o/hexo-tag-map),让`rspress`支持各家地图

这个插件暂时还没用在我的网站中，打算未来等官方适配或者自己适配一下博客样式后接入吧，以下是现在的状态:

```mdx
<rspress-map type="gaode" lat="22.538718" lng="114.080723" />
```

![](https://img.tteam.icu/i/2026/03/01/96c4312a.webp)
