mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +02:00
refactor(v2): remove sidebar_label filed from doc metadata file (#4863)
This commit is contained in:
parent
644f148a8b
commit
d72f760e4d
5 changed files with 6 additions and 7 deletions
|
@ -76,7 +76,7 @@ function createTestUtils({
|
|||
docFileSource: string,
|
||||
expectedMetadata: Optional<
|
||||
DocMetadataBase,
|
||||
'source' | 'lastUpdatedBy' | 'lastUpdatedAt' | 'sidebar_label' | 'editUrl'
|
||||
'source' | 'lastUpdatedBy' | 'lastUpdatedAt' | 'editUrl'
|
||||
>,
|
||||
) {
|
||||
const docFile = await readDoc(docFileSource);
|
||||
|
@ -89,7 +89,6 @@ function createTestUtils({
|
|||
expect(metadata).toEqual({
|
||||
lastUpdatedBy: undefined,
|
||||
lastUpdatedAt: undefined,
|
||||
sidebar_label: undefined,
|
||||
editUrl: undefined,
|
||||
source: path.posix.join(
|
||||
'@site',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue