Skip to content

Commit 105d014

Browse files
committed
docs: replace admonition ":::caution" with ":::warning"
as ":::caution" has been deprecated and replaced with ":::warning" in docusaurus 3.0, see: https://docusaurus.io/docs/migration/v3#admonition-warning
1 parent 052de92 commit 105d014

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

docs/api/classes/mongo-instance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Typings: `async start(): Promise<void>`
4141

4242
Start the `mongod` and the watcher processes
4343

44-
:::caution
44+
:::warning
4545
Currently does not check if the instance is in a correct state and just resets all values, see [#662](https://github.com/typegoose/mongodb-memory-server/issues/662).
4646
:::
4747

@@ -51,7 +51,7 @@ Typings: `async stop(): Promise<boolean>`
5151

5252
Stop the `mongod` and the watcher processes
5353

54-
:::caution
54+
:::warning
5555
Will not Error if instance is not running
5656
:::
5757

docs/api/classes/mongo-memory-replset.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Typings: `async start(): Promise<void>`
5555

5656
Used to start an new ReplSet or to Re-Start an stopped ReplSet
5757

58-
:::caution
58+
:::warning
5959
Will Error if ReplSet is already running
6060
:::
6161

@@ -83,7 +83,7 @@ Stop an running instance, this function will by default call [`.cleanup`](#clean
8383

8484
With `cleanupOptions` options for cleanup can be manually set.
8585

86-
:::caution
86+
:::warning
8787
Will not Error if instance is not running
8888
:::
8989

@@ -105,10 +105,10 @@ It is recommended to `await` the promise returned from `start` when available.
105105

106106
Does not start the replset instance if not already starting (unlike [`ensureInstance`](./mongo-memory-server.md#ensureinstance)).
107107

108-
:::caution
108+
:::warning
109109
Will Error if state is not `running` or `init`.
110110
:::
111-
:::caution
111+
:::warning
112112
Will **not** Error if a error is encountered while waiting.
113113
:::
114114

@@ -154,7 +154,7 @@ Typings:
154154

155155
Getter & Setter for [`_instanceOpts`](#_instanceopts)
156156

157-
:::caution
157+
:::warning
158158
Will Throw an Error if `state` is not `stopped`
159159
:::
160160

@@ -175,7 +175,7 @@ Typings:
175175

176176
Getter & Setter for [`_binaryOpts`](#_binaryopts)
177177

178-
:::caution
178+
:::warning
179179
Will Throw an Error if `state` is not `stopped`
180180
:::
181181

@@ -196,7 +196,7 @@ Typings:
196196

197197
Getter & Setter for [`_replSetOpts`](#_replsetopts)
198198

199-
:::caution
199+
:::warning
200200
Will Throw an Error if `state` is not `stopped`
201201
:::
202202

@@ -222,7 +222,7 @@ Typings: `get state(): MongoMemoryReplSetStates`
222222

223223
Getter for [`_state`](#_state)
224224

225-
:::caution
225+
:::warning
226226
Will Throw an Error if `state` is not `stopped`
227227
:::
228228

docs/api/classes/mongo-memory-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Used to start an new Instance or to Re-Start an stopped instance
4040
with `forceSamePort` set to `true` and having `instance.port` set, it will use that port and not generate a new port.
4141
with `forceSamePort` set to `true` and not having `instance.port` set, it will generate a new free port.
4242

43-
:::caution
43+
:::warning
4444
Will Error if instance is already running
4545
:::
4646

@@ -79,7 +79,7 @@ Stop an running instance, this function will by default call [`.cleanup`](#clean
7979

8080
With `cleanupOptions` options for cleanup can be manually set.
8181

82-
:::caution
82+
:::warning
8383
Will not Error if instance is not running
8484
:::
8585

@@ -99,7 +99,7 @@ Ensure that the instance is running, will run [`start`](#start) if stopped, will
9999

100100
It is recommended to `await` the promise returned from `start` when available.
101101

102-
:::caution
102+
:::warning
103103
Will Error if instance cannot be started
104104
:::
105105

docs/guides/integration-examples/docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ This Guide will show how `mongodb-memory-server` can be used with Docker & docke
77

88
## Important Notes before Starting
99

10-
:::caution
10+
:::warning
1111
It is common that images like `node:16-alpine` are used, which will not work with this package, because mongodb does not provide binaries for Alpine yet.
1212
It is recommended to switch to images like `node:16` (or `node:16-buster`) for Debian builds.
1313

1414
See [No Build available for Alpine Linux](../known-issues.md#no-build-available-for-alpine-linux).
1515
:::
1616

17-
:::caution
17+
:::warning
1818
Docker Debian builds (at least with `debian:11`), extra packages have to be installed:
1919

2020
```sh

docs/guides/integration-examples/test-runners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ afterAll(async () => {
9494
});
9595
```
9696

97-
:::caution
97+
:::warning
9898
It is very important to limit the spawned number of Jest workers on machines that have many cores, because otherwise the tests may run slower than with fewer workers, because the database instance(s) may be hit very hard.
9999
Use either [`--maxWorkers 4`](https://jestjs.io/docs/configuration#maxworkers-number--string) or [`--runInBand`](https://jestjs.io/docs/cli#--runinband) to limit the workers.
100100
:::

docs/guides/migration/migrate10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: 'Migrate to version 10.0.0'
55

66
Here are the Important changes made for 10.0.0
77

8-
:::caution Important, Read this first
8+
:::warning Important, Read this first
99
This Guide is written for migration from version `9.4.1` to `10.0.0`, for versions `>10.0.0 <11.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md)
1010
:::
1111

docs/guides/migration/migrate7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: 'Migrate to version 7.0.0'
55

66
Here are the Important changes made for 7.0.0
77

8-
:::caution Important, Read this first
8+
:::warning Important, Read this first
99
This Guide is written for migration from version `6.9.6` to `7.0.0`, for versions `>7.0.0 <8.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md)
1010
:::
1111

docs/guides/migration/migrate8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: 'Migrate to version 8.0.0'
55

66
Here are the Important changes made for 8.0.0
77

8-
:::caution Important, Read this first
8+
:::warning Important, Read this first
99
This Guide is written for migration from version `7.6.0` to `8.0.0`, for versions `>8.0.0 <9.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md)
1010
:::
1111

docs/guides/migration/migrate9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: 'Migrate to version 9.0.0'
55

66
Here are the Important changes made for 9.0.0
77

8-
:::caution Important, Read this first
8+
:::warning Important, Read this first
99
This Guide is written for migration from version `8.16.0` to `9.0.0`, for versions `>9.0.0 <10.0.0`, please consult the [CHANGELOG](https://github.com/typegoose/mongodb-memory-server/blob/master/CHANGELOG.md)
1010
:::
1111

docs/test.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Heads up! Here's a pro-tip.
2424
Useful information.
2525
:::
2626

27-
:::caution
27+
:::warning
2828
Warning! You better pay attention!
2929
:::
3030

0 commit comments

Comments
 (0)