Skip to content

Commit

Permalink
Moved position for icon config and added major version in icon docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhg772244 committed Oct 10, 2024
1 parent 9f6f1e9 commit ca88502
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/config/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ mermaid.registerIconPacks([
{
name: 'logos',
loader: () =>
fetch('https://unpkg.com/@iconify-json/logos/icons.json').then((res) => res.json()),
fetch('https://unpkg.com/@iconify-json/logos@1/icons.json').then((res) => res.json()),
},
]);
```

Using packages and a bundler:

```bash
npm install @iconify-json/logos
npm install @iconify-json/logos@1
```

With lazy loading
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ function sidebarConfig() {
{ text: 'API-Usage', link: '/config/usage' },
{ text: 'Mermaid API Configuration', link: '/config/setup/README' },
{ text: 'Mermaid Configuration Options', link: '/config/schema-docs/config' },
{ text: 'Registering icons', link: '/config/icons' },
{ text: 'Directives', link: '/config/directives' },
{ text: 'Theming', link: '/config/theming' },
{ text: 'Math', link: '/config/math' },
{ text: 'Accessibility', link: '/config/accessibility' },
{ text: 'Mermaid CLI', link: '/config/mermaidCLI' },
{ text: 'FAQ', link: '/config/faq' },
{ text: 'Registering icons', link: '/config/icons' },
],
},
];
Expand Down
4 changes: 2 additions & 2 deletions packages/mermaid/src/docs/config/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ mermaid.registerIconPacks([
{
name: 'logos',
loader: () =>
fetch('https://unpkg.com/@iconify-json/logos/icons.json').then((res) => res.json()),
fetch('https://unpkg.com/@iconify-json/logos@1/icons.json').then((res) => res.json()),
},
]);
```

Using packages and a bundler:

```bash
npm install @iconify-json/logos
npm install @iconify-json/logos@1
```

With lazy loading
Expand Down

0 comments on commit ca88502

Please sign in to comment.