Skip to content
Discussion options

You must be logged in to vote

NVM - found solution after I re-read this post #10508
and checked more carefully this example: github.com//discussions/10508

Solution for other:

  1. Add following script in /src/scripts/mermaid_icons.js
import mermaid from 'mermaid';
import { icons } from '@iconify-json/logos';
mermaid.registerIconPacks([
  {
    name: icons.prefix, // To use the prefix defined in the icon pack
    icons,
  },
]);

and import it in docusaurus.config.ts

  clientModules: [require.resolve('./src/scripts/mermaid_icons.js')],

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by slorber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant