feat(v2): add docs pagination_label frontmatter (#4982)

* feat(v2): add docs pagination_label frontmatter

* feat(v2): add docs pagination_label frontmatter

* feat(v2): add docs pagination_label frontmatter
This commit is contained in:
Sébastien Lorber 2021-06-16 12:03:46 +02:00 committed by GitHub
parent 41d9288e3d
commit 32e76f1cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 25 additions and 10 deletions

View file

@ -2,6 +2,7 @@
id: baz
title: baz
slug: bazSlug.html
pagination_label: baz pagination_label
---
# Baz markdown title
@ -36,7 +37,7 @@ Duplicated footnote reference[^second].
[^first]: Footnote **can have markup**
and multiple paragraphs.
and multiple paragraphs.
[^second]: Footnote text.

View file

@ -182,7 +182,7 @@ Object {
},
\\"sidebar\\": \\"docs\\",
\\"next\\": {
\\"title\\": \\"baz\\",
\\"title\\": \\"baz pagination_label\\",
\\"permalink\\": \\"/docs/foo/bazSlug.html\\"
}
}",
@ -200,7 +200,8 @@ Object {
\\"frontMatter\\": {
\\"id\\": \\"baz\\",
\\"title\\": \\"baz\\",
\\"slug\\": \\"bazSlug.html\\"
\\"slug\\": \\"bazSlug.html\\",
\\"pagination_label\\": \\"baz pagination_label\\"
},
\\"sidebar\\": \\"docs\\",
\\"previous\\": {
@ -243,7 +244,7 @@ Object {
},
\\"sidebar\\": \\"docs\\",
\\"previous\\": {
\\"title\\": \\"baz\\",
\\"title\\": \\"baz pagination_label\\",
\\"permalink\\": \\"/docs/foo/bazSlug.html\\"
}
}",

View file

@ -296,6 +296,7 @@ describe('simple site', () => {
id: 'baz',
slug: 'bazSlug.html',
title: 'baz',
pagination_label: 'baz pagination_label',
},
});
});
@ -354,6 +355,7 @@ describe('simple site', () => {
id: 'baz',
slug: 'bazSlug.html',
title: 'baz',
pagination_label: 'baz pagination_label',
},
});

View file

@ -360,6 +360,7 @@ describe('simple website', () => {
id: 'baz',
title: 'baz',
slug: 'bazSlug.html',
pagination_label: 'baz pagination_label',
},
});
@ -373,7 +374,7 @@ describe('simple website', () => {
permalink: '/docs/',
slug: '/',
previous: {
title: 'baz',
title: 'baz pagination_label',
permalink: '/docs/foo/bazSlug.html',
},
sidebar: 'docs',
@ -399,7 +400,7 @@ describe('simple website', () => {
sourceDirName: 'foo',
isDocsHomePage: false,
next: {
title: 'baz',
title: 'baz pagination_label',
permalink: '/docs/foo/bazSlug.html',
},
permalink: '/docs/foo/bar',