Moved position for icon config and added major version in icon docs

This commit is contained in:
saurabhg772244 2024-10-10 14:15:16 +05:30
parent 9f6f1e96e5
commit ca885027d4
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ 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()),
},
]);
```
@ -25,7 +25,7 @@ mermaid.registerIconPacks([
Using packages and a bundler:
```bash
npm install @iconify-json/logos
npm install @iconify-json/logos@1
```
With lazy loading

View File

@ -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' },
],
},
];

View File

@ -11,7 +11,7 @@ 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()),
},
]);
```
@ -19,7 +19,7 @@ mermaid.registerIconPacks([
Using packages and a bundler:
```bash
npm install @iconify-json/logos
npm install @iconify-json/logos@1
```
With lazy loading