mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 09:07:29 +02:00
fix(v2): sidebar_label should be used to compute next/previous button labels (#4970)
* sidebar_label should be used to compute next/previous button texts, as documented. * improve docs frontmatter doc * use a little bit of destructuring
This commit is contained in:
parent
aeb8e9da51
commit
737f80a026
8 changed files with 75 additions and 38 deletions
|
@ -201,6 +201,7 @@ describe('simple site', () => {
|
|||
frontMatter: {
|
||||
id: 'hello',
|
||||
title: 'Hello, World !',
|
||||
sidebar_label: 'Hello sidebar_label',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
@ -230,6 +231,7 @@ describe('simple site', () => {
|
|||
frontMatter: {
|
||||
id: 'hello',
|
||||
title: 'Hello, World !',
|
||||
sidebar_label: 'Hello sidebar_label',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue