Skip to content

Commit 45052ce

Browse files
committed
docs: ✏️ Add title to code block
1 parent 91b5bea commit 45052ce

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/docs/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: This page introduces how to change the behavior of this library.
88
Default behavior can be changed as needed.
99
Create `export-images.config.js` in the root.
1010

11-
```js
11+
```js title="export-images.config.js"
1212
/**
1313
* @type {import('next-export-optimize-images').Config}
1414
*/

docs/docs/getting-started.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ yarn add -D next-export-optimize-images
1717

1818
1. Write withExportImages in `next.config.js.`
1919

20-
```js
21-
// next.config.js
20+
```js title="next.config.js"
2221
const withExportImages = require('next-export-optimize-images')
2322

2423
module.exports = withExportImages({
@@ -28,8 +27,7 @@ module.exports = withExportImages({
2827

2928
If you are using `next-compose-plugins`
3029

31-
```js
32-
// next.config.js
30+
```js title="next.config.js"
3331
const withPlugins = require('next-compose-plugins')
3432
const withExportImages = require('next-export-optimize-images')
3533

@@ -46,7 +44,7 @@ module.exports = withPlugins(
4644

4745
2. Change the description of the `scripts` that do the `next export` in `package.json`
4846

49-
```diff
47+
```diff title="package.json"
5048
{
5149
- "export": "next build && next export",
5250
+ "export": "next build && next export && next-export-optimize-images",

0 commit comments

Comments
 (0)