Rspress builds documents based on Rsbuild.
Rsbuild provides a rich set of build configurations. You can customize these configurations through builderConfig. For example, change the output directory to doc_dist
:
Rspress also provides the builderPlugins config to register Rsbuild plugins. You can leverage Rsbuild's extensive plugin ecosystem to enhance and extend your build capabilities.
For example, add Google analytics through rsbuild-plugin-google-analytics:
You can learn more about the configuration options through Rsbuild - Config documentation.
You can configure Rspack through the tools.rspack option provided by Rsbuild:
The compilation of MDX in the framework is based on unified, and you can add related compilation plugins through markdown
configuration. for example
:
Only the JS version of the MDX compiler supports compilation plugins.