Getting Started
This section helps you add Graphviz support for Rspress.
Install
Setup
Register pluginViz in your Rspress config.
This docs site uses the plugin from this repository directly:
Usage
Use the viz language block in your Markdown files.
This will be rendered as:
Loading graph...
Usage notes:
- Optional scaling: add a scale factor after the language name, e.g.
{0.75}.
Rendered result:
Loading graph...
Advanced Configuration
pluginViz accepts the following options:
Acknowledgments
- vitepress-plugin-viz - Original VitePress plugin that this Rspress plugin ports.
- @viz-js/viz - Graphviz rendering in WebAssembly.