Skip to content

Commit a11d565

Browse files
committed
docs: replace <details> with ::: details
1 parent 04f250f commit a11d565

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

docs/config/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ If you are using Vite and have a `vite.config` file, Vitest will read it to matc
1212

1313
To configure `vitest` itself, add `test` property in your Vite config. You'll also need to add a reference to Vitest types using a [triple slash command](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-) at the top of your config file, if you are importing `defineConfig` from `vite` itself.
1414

15-
<details>
16-
<summary>Open Config Examples</summary>
17-
15+
::: details Open Config Examples
1816
Using `defineConfig` from `vite` you should follow this:
1917

2018
```ts [vite.config.js]
@@ -93,7 +91,7 @@ export default defineConfig(configEnv => mergeConfig(
9391
})
9492
))
9593
```
96-
</details>
94+
:::
9795

9896
::: warning
9997
_All listed options_ on this page are located within a `test` property inside the configuration:

docs/guide/improving-performance.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ Collect the results stored in `.vitest-reports` directory from each machine and
9191
vitest --merge-reports
9292
```
9393

94-
<details>
95-
<summary>Github action example</summary>
96-
94+
::: details Github action example
9795
This setup is also used at https://github.com/vitest-tests/test-sharding.
9896

9997
```yaml
@@ -162,7 +160,7 @@ jobs:
162160
run: npx vitest --merge-reports
163161
```
164162
165-
</details>
163+
:::
166164
167165
:::tip
168166
Test sharding can also become useful on high CPU-count machines.

docs/guide/in-source.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ export default defineConfig({
7070

7171
### Other Bundlers
7272

73-
<details mt4>
74-
<summary text-xl>unbuild</summary>
75-
73+
::: details unbuild
7674
```ts [build.config.ts]
7775
import { defineBuildConfig } from 'unbuild'
7876

@@ -85,12 +83,9 @@ export default defineBuildConfig({
8583
```
8684

8785
Learn more: [unbuild](https://github.com/unjs/unbuild)
86+
:::
8887

89-
</details>
90-
91-
<details my2>
92-
<summary text-xl>Rollup</summary>
93-
88+
::: details Rollup
9489
```ts [rollup.config.js]
9590
import replace from '@rollup/plugin-replace' // [!code ++]
9691
@@ -105,8 +100,7 @@ export default {
105100
```
106101

107102
Learn more: [Rollup](https://rollupjs.org/)
108-
109-
</details>
103+
:::
110104

111105
## TypeScript
112106

0 commit comments

Comments
 (0)