docs: fix rewrites examples (#1941)

pull/1943/head
Orca 2 years ago committed by GitHub
parent e3aa230a25
commit 97f2b0e129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -125,8 +125,8 @@ You may configure the mapping via [`rewrites`](/config/app-configs#rewrites) opt
```ts ```ts
export default { export default {
rewrites: { rewrites: {
'packages/pkg-a/src/pkg-a-code.md': 'pkg-a/pkg-a-code', 'packages/pkg-a/src/pkg-a-code.md': 'pkg-a/pkg-a-code.md',
'packages/pkg-b/src/pkg-b-code.md': 'pkg-b/pkg-b-code' 'packages/pkg-b/src/pkg-b-code.md': 'pkg-b/pkg-b-code.md'
} }
} }
``` ```
@ -156,8 +156,8 @@ export default {
The above will create mapping as below. The above will create mapping as below.
``` ```
packages/pkg-a/src/pkg-a-code.md -> /pkg-a/pkg-a-code packages/pkg-a/src/pkg-a-code.md -> /pkg-a/pkg-a-code.md
packages/pkg-b/src/folder/file.md -> /pkg-b/folder/file packages/pkg-b/src/folder/file.md -> /pkg-b/folder/file.md
``` ```
::: warning You need server restart on page addition ::: warning You need server restart on page addition

Loading…
Cancel
Save