mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-28 04:36:45 +02:00
Moved position for icon config and added major version in icon docs
This commit is contained in:
@@ -17,7 +17,7 @@ mermaid.registerIconPacks([
|
|||||||
{
|
{
|
||||||
name: 'logos',
|
name: 'logos',
|
||||||
loader: () =>
|
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:
|
Using packages and a bundler:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install @iconify-json/logos
|
npm install @iconify-json/logos@1
|
||||||
```
|
```
|
||||||
|
|
||||||
With lazy loading
|
With lazy loading
|
||||||
|
@@ -174,13 +174,13 @@ function sidebarConfig() {
|
|||||||
{ text: 'API-Usage', link: '/config/usage' },
|
{ text: 'API-Usage', link: '/config/usage' },
|
||||||
{ text: 'Mermaid API Configuration', link: '/config/setup/README' },
|
{ text: 'Mermaid API Configuration', link: '/config/setup/README' },
|
||||||
{ text: 'Mermaid Configuration Options', link: '/config/schema-docs/config' },
|
{ text: 'Mermaid Configuration Options', link: '/config/schema-docs/config' },
|
||||||
|
{ text: 'Registering icons', link: '/config/icons' },
|
||||||
{ text: 'Directives', link: '/config/directives' },
|
{ text: 'Directives', link: '/config/directives' },
|
||||||
{ text: 'Theming', link: '/config/theming' },
|
{ text: 'Theming', link: '/config/theming' },
|
||||||
{ text: 'Math', link: '/config/math' },
|
{ text: 'Math', link: '/config/math' },
|
||||||
{ text: 'Accessibility', link: '/config/accessibility' },
|
{ text: 'Accessibility', link: '/config/accessibility' },
|
||||||
{ text: 'Mermaid CLI', link: '/config/mermaidCLI' },
|
{ text: 'Mermaid CLI', link: '/config/mermaidCLI' },
|
||||||
{ text: 'FAQ', link: '/config/faq' },
|
{ text: 'FAQ', link: '/config/faq' },
|
||||||
{ text: 'Registering icons', link: '/config/icons' },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@@ -11,7 +11,7 @@ mermaid.registerIconPacks([
|
|||||||
{
|
{
|
||||||
name: 'logos',
|
name: 'logos',
|
||||||
loader: () =>
|
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:
|
Using packages and a bundler:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install @iconify-json/logos
|
npm install @iconify-json/logos@1
|
||||||
```
|
```
|
||||||
|
|
||||||
With lazy loading
|
With lazy loading
|
||||||
|
Reference in New Issue
Block a user