This website is built using Docusaurus, a modern static website generator.
pnpm installpnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
pnpm buildThis command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
USE_SSH=true pnpm deployNot using SSH:
GIT_USER=<Your GitHub username> pnpm deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
When updating the mermaid-merlin package or making changes to components, you may need to clear caches to ensure changes are reflected:
# Clear Docusaurus and node_modules caches
rm -rf .docusaurus && rm -rf node_modules/.cache
# Install
pnpm install
# Rebuild the project
pnpm build
# Restart development server
pnpm startIf you're still seeing old behavior in the browser:
- Hard refresh the browser (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows/Linux)
- Check browser console for debugging messages
- Clear browser cache if necessary
This is particularly important when:
- Updating the
@eth-peach-lab/mermaid-merlinandeth-peach-lab/mermaidpackage usingpnpm up @eth-peach-lab/merlin @eth-peach-lab/mermaid-merlin --latest. - Making changes to the
MermaidLiteViewercomponent - Adding new diagram types or features
- When
mermaid-merlinormerlinwas updated (Note: GitHub Action automatically updatespnpm-lock.yaml)