mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-06 07:39:48 +02:00
Merge branch 'develop' into release/9.4.2
* develop: Add highlight tag info in contributing.md chore(deps): update dependency cypress to v12 docs: fix links Fix types chore(deps): update dependency vite to v4
This commit is contained in:
@@ -20,13 +20,14 @@ const visualizerOptions = (packageName: string, core = false): PluginOption[] =>
|
|||||||
if (packageName !== 'mermaid' || !visualize) {
|
if (packageName !== 'mermaid' || !visualize) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return ['network', 'treemap', 'sunburst'].map((chartType) =>
|
return ['network', 'treemap', 'sunburst'].map(
|
||||||
visualizer({
|
(chartType) =>
|
||||||
filename: `./stats/${chartType}${core ? '.core' : ''}.html`,
|
visualizer({
|
||||||
template: chartType as TemplateType,
|
filename: `./stats/${chartType}${core ? '.core' : ''}.html`,
|
||||||
gzipSize: true,
|
template: chartType as TemplateType,
|
||||||
brotliSize: true,
|
gzipSize: true,
|
||||||
})
|
brotliSize: true,
|
||||||
|
}) as PluginOption
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -63,6 +63,28 @@ flowchart LR
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can use `note`, `tip`, `warning` and `danger` in triple backticks to add a note, tip, warning or danger box.
|
||||||
|
Do not use vitepress specific markdown syntax `::: warning` as it will not be processed correctly.
|
||||||
|
|
||||||
|
````
|
||||||
|
```note
|
||||||
|
Note content
|
||||||
|
```
|
||||||
|
|
||||||
|
```tip
|
||||||
|
Tip content
|
||||||
|
```
|
||||||
|
|
||||||
|
```warning
|
||||||
|
Warning content
|
||||||
|
```
|
||||||
|
|
||||||
|
```danger
|
||||||
|
Danger content
|
||||||
|
```
|
||||||
|
|
||||||
|
````
|
||||||
|
|
||||||
**_DO NOT CHANGE FILES IN `/docs`_**
|
**_DO NOT CHANGE FILES IN `/docs`_**
|
||||||
|
|
||||||
### The official documentation site
|
### The official documentation site
|
||||||
|
@@ -30,7 +30,8 @@ flowchart LR
|
|||||||
id
|
id
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note** The id is what is displayed in the box.
|
> **Note**
|
||||||
|
> The id is what is displayed in the box.
|
||||||
|
|
||||||
### A node with text
|
### A node with text
|
||||||
|
|
||||||
|
@@ -74,7 +74,7 @@
|
|||||||
"@vitest/ui": "^0.28.4",
|
"@vitest/ui": "^0.28.4",
|
||||||
"concurrently": "^7.5.0",
|
"concurrently": "^7.5.0",
|
||||||
"coveralls": "^3.1.1",
|
"coveralls": "^3.1.1",
|
||||||
"cypress": "^10.11.0",
|
"cypress": "^12.0.0",
|
||||||
"cypress-image-snapshot": "^4.0.1",
|
"cypress-image-snapshot": "^4.0.1",
|
||||||
"esbuild": "^0.17.0",
|
"esbuild": "^0.17.0",
|
||||||
"eslint": "^8.32.0",
|
"eslint": "^8.32.0",
|
||||||
|
@@ -41,7 +41,7 @@ function nav() {
|
|||||||
link: '/config/Tutorials',
|
link: '/config/Tutorials',
|
||||||
activeMatch: '/config/',
|
activeMatch: '/config/',
|
||||||
},
|
},
|
||||||
{ text: 'Integrations', link: '/misc/integrations', activeMatch: '/misc/' },
|
{ text: 'Integrations', link: '/ecosystem/integrations', activeMatch: '/ecosystem/' },
|
||||||
{
|
{
|
||||||
text: version,
|
text: version,
|
||||||
items: [
|
items: [
|
||||||
|
@@ -31,7 +31,7 @@ const idRedirectMap: Record<string, string> = {
|
|||||||
c4c: 'syntax/c4c',
|
c4c: 'syntax/c4c',
|
||||||
classdiagram: 'syntax/classDiagram',
|
classdiagram: 'syntax/classDiagram',
|
||||||
configuration: 'config/configuration',
|
configuration: 'config/configuration',
|
||||||
demos: 'misc/integrations',
|
demos: 'ecosystem/integrations',
|
||||||
development: 'community/development',
|
development: 'community/development',
|
||||||
directives: 'config/directives',
|
directives: 'config/directives',
|
||||||
entityrelationshipdiagram: 'syntax/entityRelationshipDiagram',
|
entityrelationshipdiagram: 'syntax/entityRelationshipDiagram',
|
||||||
@@ -40,7 +40,7 @@ const idRedirectMap: Record<string, string> = {
|
|||||||
flowchart: 'syntax/flowchart',
|
flowchart: 'syntax/flowchart',
|
||||||
gantt: 'syntax/gantt',
|
gantt: 'syntax/gantt',
|
||||||
gitgraph: 'syntax/gitgraph',
|
gitgraph: 'syntax/gitgraph',
|
||||||
integrations: 'misc/integrations',
|
integrations: 'ecosystem/integrations',
|
||||||
'language-highlight': '',
|
'language-highlight': '',
|
||||||
markdown: '',
|
markdown: '',
|
||||||
mermaidapi: 'config/usage',
|
mermaidapi: 'config/usage',
|
||||||
|
@@ -21,7 +21,9 @@ flowchart LR
|
|||||||
id
|
id
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note** The id is what is displayed in the box.
|
```note
|
||||||
|
The id is what is displayed in the box.
|
||||||
|
```
|
||||||
|
|
||||||
### A node with text
|
### A node with text
|
||||||
|
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
import { defineConfig, searchForWorkspaceRoot, PluginOption } from 'vite';
|
import { defineConfig, type PluginOption, searchForWorkspaceRoot } from 'vite';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
// @ts-ignore: still in alpha
|
|
||||||
import { SearchPlugin } from 'vitepress-plugin-search';
|
import { SearchPlugin } from 'vitepress-plugin-search';
|
||||||
|
|
||||||
const virtualModuleId = 'virtual:mermaid-config';
|
const virtualModuleId = 'virtual:mermaid-config';
|
||||||
@@ -8,7 +7,7 @@ const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
SearchPlugin(),
|
SearchPlugin() as PluginOption,
|
||||||
{
|
{
|
||||||
// TODO: will be fixed in the next vitepress release.
|
// TODO: will be fixed in the next vitepress release.
|
||||||
name: 'fix-virtual',
|
name: 'fix-virtual',
|
||||||
|
24
pnpm-lock.yaml
generated
24
pnpm-lock.yaml
generated
@@ -65,11 +65,11 @@ importers:
|
|||||||
specifier: ^3.1.1
|
specifier: ^3.1.1
|
||||||
version: 3.1.1
|
version: 3.1.1
|
||||||
cypress:
|
cypress:
|
||||||
specifier: ^10.11.0
|
specifier: ^12.0.0
|
||||||
version: 10.11.0
|
version: 12.5.1
|
||||||
cypress-image-snapshot:
|
cypress-image-snapshot:
|
||||||
specifier: ^4.0.1
|
specifier: ^4.0.1
|
||||||
version: 4.0.1_bg25yee4qeg7mpleuvd346a3tq
|
version: 4.0.1_cypress@12.5.1+jest@29.3.1
|
||||||
esbuild:
|
esbuild:
|
||||||
specifier: ^0.17.0
|
specifier: ^0.17.0
|
||||||
version: 0.17.0
|
version: 0.17.0
|
||||||
@@ -4214,7 +4214,7 @@ packages:
|
|||||||
/axios/0.21.4_debug@4.3.2:
|
/axios/0.21.4_debug@4.3.2:
|
||||||
resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==}
|
resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.2_debug@4.3.2
|
follow-redirects: 1.15.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- debug
|
- debug
|
||||||
dev: true
|
dev: true
|
||||||
@@ -5302,14 +5302,14 @@ packages:
|
|||||||
resolution: {integrity: sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==}
|
resolution: {integrity: sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/cypress-image-snapshot/4.0.1_bg25yee4qeg7mpleuvd346a3tq:
|
/cypress-image-snapshot/4.0.1_cypress@12.5.1+jest@29.3.1:
|
||||||
resolution: {integrity: sha512-PBpnhX/XItlx3/DAk5ozsXQHUi72exybBNH5Mpqj1DVmjq+S5Jd9WE5CRa4q5q0zuMZb2V2VpXHth6MjFpgj9Q==}
|
resolution: {integrity: sha512-PBpnhX/XItlx3/DAk5ozsXQHUi72exybBNH5Mpqj1DVmjq+S5Jd9WE5CRa4q5q0zuMZb2V2VpXHth6MjFpgj9Q==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
cypress: ^4.5.0
|
cypress: ^4.5.0
|
||||||
dependencies:
|
dependencies:
|
||||||
chalk: 2.4.2
|
chalk: 2.4.2
|
||||||
cypress: 10.11.0
|
cypress: 12.5.1
|
||||||
fs-extra: 7.0.1
|
fs-extra: 7.0.1
|
||||||
glob: 7.2.3
|
glob: 7.2.3
|
||||||
jest-image-snapshot: 4.2.0_jest@29.3.1
|
jest-image-snapshot: 4.2.0_jest@29.3.1
|
||||||
@@ -5319,9 +5319,9 @@ packages:
|
|||||||
- jest
|
- jest
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/cypress/10.11.0:
|
/cypress/12.5.1:
|
||||||
resolution: {integrity: sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==}
|
resolution: {integrity: sha512-ZmCmJ3lsyeOpBfh410m5+AO2CO1AxAzFBt7k6/uVbNcrNZje1vdiwYTpj2ksPKg9mjr9lR6V8tmlDNMvr4H/YQ==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: ^14.0.0 || ^16.0.0 || >=18.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -6779,7 +6779,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-XGozTsMPYkm+6b5QL3Z9wQcJjNYxp0CYn3U1gO7dwD6PAqU1SVWZxI9CCg3z+ml3YfqdPnrBehaBrnH2AGKbNA==}
|
resolution: {integrity: sha512-XGozTsMPYkm+6b5QL3Z9wQcJjNYxp0CYn3U1gO7dwD6PAqU1SVWZxI9CCg3z+ml3YfqdPnrBehaBrnH2AGKbNA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/follow-redirects/1.15.2_debug@4.3.2:
|
/follow-redirects/1.15.2:
|
||||||
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
||||||
engines: {node: '>=4.0'}
|
engines: {node: '>=4.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -6787,8 +6787,6 @@ packages:
|
|||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
debug:
|
debug:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
|
||||||
debug: 4.3.2
|
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/foreground-child/2.0.0:
|
/foreground-child/2.0.0:
|
||||||
@@ -7328,7 +7326,7 @@ packages:
|
|||||||
engines: {node: '>=8.0.0'}
|
engines: {node: '>=8.0.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
eventemitter3: 4.0.7
|
eventemitter3: 4.0.7
|
||||||
follow-redirects: 1.15.2_debug@4.3.2
|
follow-redirects: 1.15.2
|
||||||
requires-port: 1.0.0
|
requires-port: 1.0.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- debug
|
- debug
|
||||||
|
Reference in New Issue
Block a user