editing-docusaurus
Recommend enable Windows feature Windows Subsystem for Linux and then the Ubuntu image from Microsoft Store.
In VS Code, you can install the plugins:
Remote - WSL Markdown Preview Enhanced Markdown Preview Mermaid
To see what you are doing as you work.
Quick start
git clone
install yarn, node and npm
run yarn
inside the git repository to download all Node dependencies.
Installing the remark-mermaid plugin
You don't need to re-do this. But here are my configuration notes:
to create mermaid graphs, use remark-mermaid plugin. This should install when you run yarn
To build on your environment, you need to install dependencies for chrome-headless
How I enabled the mermaid plugin (don't need to re-do this step)
edit docusaurus.config.js
At top of file, add
const mermaid = require('remark-mermaid')
In the "docs" block, add remarkPlugins: [mermaid],
See https://mdxjs.com/advanced/plugins which explains how remark plugins work. Not explained in Docusaurus documentation.