feat(content-docs): new front matter options to customize pagination (#5705)

This commit is contained in:
Joshua Chen 2021-10-21 18:27:57 +08:00 committed by GitHub
parent 29d13351a4
commit 3127f12654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 489 additions and 95 deletions

View file

@ -345,10 +345,11 @@ describe('simple website', () => {
permalink: '/docs/foo/bar',
},
next: {
title: 'Hello sidebar_label',
permalink: '/docs/',
title: 'rootAbsoluteSlug',
permalink: '/docs/rootAbsoluteSlug',
},
sidebar: 'docs',
sidebarPosition: undefined,
source: path.posix.join(
'@site',
posixPath(path.relative(siteDir, currentVersion.contentPath)),
@ -391,8 +392,8 @@ describe('simple website', () => {
permalink: '/docs/',
slug: '/',
previous: {
title: 'baz pagination_label',
permalink: '/docs/foo/bazSlug.html',
title: 'My heading as title',
permalink: '/docs/headingAsTitle',
},
sidebar: 'docs',
source: path.posix.join(