Skip to content

Commit 000308c

Browse files
[autofix.ci] apply automated fixes
1 parent 6039a8b commit 000308c

File tree

8 files changed

+44
-88
lines changed

8 files changed

+44
-88
lines changed

docs/community/contributing.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ In GitHub, you first [**fork a mermaid repository**](https://github.com/mermaid-
2929

3030
Then you **clone** a copy to your local development machine (e.g. where you code) to make a copy with all the files to work with.
3131

32-
> **💡 Tip**
33-
> [Here is a GitHub document that gives an overview of the process](https://docs.github.com/en/get-started/quickstart/fork-a-repo).
32+
> **💡 Tip** > [Here is a GitHub document that gives an overview of the process](https://docs.github.com/en/get-started/quickstart/fork-a-repo).
3433
3534
```bash
3635
git clone [email protected]/your-fork/mermaid

docs/community/intro.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ mindmap
3333

3434
## Join the Development
3535

36-
> **💡 Tip**
37-
> **Check out our** [**detailed contribution guide**](./contributing.md).
36+
> **💡 Tip** > **Check out our** [**detailed contribution guide**](./contributing.md).
3837
3938
Where to start:
4039

@@ -48,8 +47,7 @@ Where to start:
4847

4948
## A Question Or a Suggestion?
5049

51-
> **💡 Tip**
52-
> **Have a look at** [**how to open an issue**](./questions-and-suggestions.md).
50+
> **💡 Tip** > **Have a look at** [**how to open an issue**](./questions-and-suggestions.md).
5351
5452
If you have faced a vulnerability [report it to us](./security.md).
5553

docs/config/directives.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ While directives allow you to change most of the default configuration settings,
2222
Mermaid basically supports two types of configuration options to be overridden by directives.
2323

2424
1. _General/Top Level configurations_ : These are the configurations that are available and applied to all the diagram. **Some of the most important top-level** configurations are:
25+
2526
- theme
2627
- fontFamily
2728
- logLevel

docs/config/setup/mermaid/classes/UnknownDiagramError.md

Lines changed: 30 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -88,77 +88,57 @@ Defined in: node_modules/.pnpm/typescript\@5.7.3/node_modules/typescript/lib/lib
8888

8989
---
9090

91-
### stackTraceLimit
91+
### prepareStackTrace()?
9292

93-
> `static` **stackTraceLimit**: `number`
93+
> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`
9494
95-
Defined in: node_modules/.pnpm/@types+node\@22.16.4/node_modules/@types/node/globals.d.ts:161
95+
Defined in: node_modules/.pnpm/@types+node\@22.13.5/node_modules/@types/node/globals.d.ts:143
9696

97-
The `Error.stackTraceLimit` property specifies the number of stack frames
98-
collected by a stack trace (whether generated by `new Error().stack` or
99-
`Error.captureStackTrace(obj)`).
97+
Optional override for formatting stack traces
10098

101-
The default value is `10` but may be set to any valid JavaScript number. Changes
102-
will affect any stack trace captured _after_ the value has been changed.
99+
#### Parameters
103100

104-
If set to a non-number value, or set to a negative number, stack traces will
105-
not capture any frames.
101+
##### err
106102

107-
#### Inherited from
103+
`Error`
108104

109-
`Error.stackTraceLimit`
105+
##### stackTraces
110106

111-
## Methods
107+
`CallSite`\[]
112108

113-
### captureStackTrace()
109+
#### Returns
114110

115-
> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`
111+
`any`
116112

117-
Defined in: node_modules/.pnpm/@types+node\@22.16.4/node_modules/@types/node/globals.d.ts:145
113+
#### See
118114

119-
Creates a `.stack` property on `targetObject`, which when accessed returns
120-
a string representing the location in the code at which
121-
`Error.captureStackTrace()` was called.
115+
<https://v8.dev/docs/stack-trace-api#customizing-stack-traces>
116+
117+
#### Inherited from
118+
119+
`Error.prepareStackTrace`
120+
121+
---
122122

123-
```js
124-
const myObject = {};
125-
Error.captureStackTrace(myObject);
126-
myObject.stack; // Similar to `new Error().stack`
127-
```
123+
### stackTraceLimit
128124

129-
The first line of the trace will be prefixed with
130-
`${myObject.name}: ${myObject.message}`.
125+
> `static` **stackTraceLimit**: `number`
131126
132-
The optional `constructorOpt` argument accepts a function. If given, all frames
133-
above `constructorOpt`, including `constructorOpt`, will be omitted from the
134-
generated stack trace.
127+
Defined in: node_modules/.pnpm/@types+node\@22.13.5/node_modules/@types/node/globals.d.ts:145
135128

136-
The `constructorOpt` argument is useful for hiding implementation
137-
details of error generation from the user. For instance:
129+
#### Inherited from
138130

139-
```js
140-
function a() {
141-
b();
142-
}
131+
`Error.stackTraceLimit`
143132

144-
function b() {
145-
c();
146-
}
133+
## Methods
147134

148-
function c() {
149-
// Create an error without stack trace to avoid calculating the stack trace twice.
150-
const { stackTraceLimit } = Error;
151-
Error.stackTraceLimit = 0;
152-
const error = new Error();
153-
Error.stackTraceLimit = stackTraceLimit;
135+
### captureStackTrace()
154136

155-
// Capture the stack trace above function b
156-
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
157-
throw error;
158-
}
137+
> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`
159138
160-
a();
161-
```
139+
Defined in: node_modules/.pnpm/@types+node\@22.13.5/node_modules/@types/node/globals.d.ts:136
140+
141+
Create .stack property on a target object
162142

163143
#### Parameters
164144

@@ -177,33 +157,3 @@ a();
177157
#### Inherited from
178158

179159
`Error.captureStackTrace`
180-
181-
---
182-
183-
### prepareStackTrace()
184-
185-
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
186-
187-
Defined in: node_modules/.pnpm/@types+node\@22.16.4/node_modules/@types/node/globals.d.ts:149
188-
189-
#### Parameters
190-
191-
##### err
192-
193-
`Error`
194-
195-
##### stackTraces
196-
197-
`CallSite`\[]
198-
199-
#### Returns
200-
201-
`any`
202-
203-
#### See
204-
205-
<https://v8.dev/docs/stack-trace-api#customizing-stack-traces>
206-
207-
#### Inherited from
208-
209-
`Error.prepareStackTrace`

docs/ecosystem/mermaid-chart.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Try the Ultimate AI, Mermaid, and Visual Diagramming Suite by creating an accoun
2929
- **Plugins** - A plugin system for extending the functionality of Mermaid.
3030

3131
Official Mermaid Chart plugins:
32+
3233
- [Mermaid Chart GPT](https://chatgpt.com/g/g-684cc36f30208191b21383b88650a45d-mermaid-chart-diagrams-and-charts)
3334
- [Confluence](https://marketplace.atlassian.com/apps/1234056/mermaid-chart-for-confluence?hosting=cloud&tab=overview)
3435
- [Jira](https://marketplace.atlassian.com/apps/1234810/mermaid-chart-for-jira?tab=overview&hosting=cloud)

docs/news/announcements.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ The Mermaid Chart team is excited to introduce a new Visual Editor for Flowchart
3535
Learn more:
3636

3737
- Visual Editor For Flowcharts
38+
3839
- [Blog post](https://www.mermaidchart.com/blog/posts/mermaid-chart-releases-new-visual-editor-for-flowcharts)
3940

4041
- [Demo video](https://www.youtube.com/watch?v=5aja0gijoO0)
4142

4243
- Visual Editor For Sequence diagrams
44+
4345
- [Blog post](https://www.mermaidchart.com/blog/posts/mermaid-chart-unveils-visual-editor-for-sequence-diagrams)
4446

4547
- [Demo video](https://youtu.be/imc2u5_N6Dc)

docs/syntax/c4.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ The following unfinished features are not supported in the short term.
139139
- [ ] Legend
140140

141141
- [x] System Context
142+
142143
- [x] Person(alias, label, ?descr, ?sprite, ?tags, $link)
143144
- [x] Person_Ext
144145
- [x] System(alias, label, ?descr, ?sprite, ?tags, $link)
@@ -152,6 +153,7 @@ The following unfinished features are not supported in the short term.
152153
- [x] System_Boundary
153154

154155
- [x] Container diagram
156+
155157
- [x] Container(alias, label, ?techn, ?descr, ?sprite, ?tags, $link)
156158
- [x] ContainerDb
157159
- [x] ContainerQueue
@@ -161,6 +163,7 @@ The following unfinished features are not supported in the short term.
161163
- [x] Container_Boundary(alias, label, ?tags, $link)
162164

163165
- [x] Component diagram
166+
164167
- [x] Component(alias, label, ?techn, ?descr, ?sprite, ?tags, $link)
165168
- [x] ComponentDb
166169
- [x] ComponentQueue
@@ -169,15 +172,18 @@ The following unfinished features are not supported in the short term.
169172
- [x] ComponentQueue_Ext
170173

171174
- [x] Dynamic diagram
175+
172176
- [x] RelIndex(index, from, to, label, ?tags, $link)
173177

174178
- [x] Deployment diagram
179+
175180
- [x] Deployment_Node(alias, label, ?type, ?descr, ?sprite, ?tags, $link)
176181
- [x] Node(alias, label, ?type, ?descr, ?sprite, ?tags, $link): short name of Deployment_Node()
177182
- [x] Node_L(alias, label, ?type, ?descr, ?sprite, ?tags, $link): left aligned Node()
178183
- [x] Node_R(alias, label, ?type, ?descr, ?sprite, ?tags, $link): right aligned Node()
179184

180185
- [x] Relationship Types
186+
181187
- [x] Rel(from, to, label, ?techn, ?descr, ?sprite, ?tags, $link)
182188
- [x] BiRel (bidirectional relationship)
183189
- [x] Rel_U, Rel_Up

docs/syntax/gantt.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ gantt
360360
weekday monday
361361
```
362362

363-
> **Warning**
364-
> `millisecond` and `second` support was added in v10.3.0
363+
> **Warning** > `millisecond` and `second` support was added in v10.3.0
365364
366365
## Output in compact mode
367366

0 commit comments

Comments
 (0)