refactor(v2): remove sidebar_label filed from doc metadata file (#4863)

This commit is contained in:
Alexey Pyltsyn 2021-06-02 17:52:41 +03:00 committed by GitHub
parent 644f148a8b
commit d72f760e4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 7 deletions

View file

@ -125,7 +125,6 @@ export function processDocMetadata({
const frontMatter = validateDocFrontMatter(unsafeFrontMatter);
const {
sidebar_label: sidebarLabel,
custom_edit_url: customEditURL,
// Strip number prefixes by default (01-MyFolder/01-MyDoc.md => MyFolder/MyDoc) by default,
@ -261,7 +260,6 @@ export function processDocMetadata({
lastUpdate.lastUpdatedAt * 1000,
)
: undefined,
sidebar_label: sidebarLabel,
sidebarPosition,
frontMatter,
};