The plugin system is a crucial part of Rspress, which allows you to easily extend the abilities of the framework during the process of building a site. So, what ability can you extend with plugins? Let's take a look at the overall architecture of Rspress first.
The overall architecture of Rspress is shown in the figure below:
The overall framework is divided into two parts: Node Side and Browser Runtime. Through the plugin system, you can easily extend the abilities of these two parts. Specifically, you can extend the ability to:
remark
/rehype
plugins to extend the compliation ability of Markdown/MDX./blog
route to display a list of blogs, and the content is defined by yourself.title
, description
, etc. You can extend the calculation logic of these metadata through plugins, and pass usePageData hook access.adding a global BackToTop (return to top) component
, adding a global side effect logic
.