feat(v2): allow per-doc hiding of edit url (#2166)

This commit is contained in:
Yangshun Tay 2020-01-01 18:45:55 +08:00 committed by GitHub
parent 428e087eb7
commit 75f5bb4d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 1 deletions

View file

@ -134,7 +134,7 @@ export default async function processMetadata({
description,
source: aliasedSitePath(filePath, siteDir),
permalink,
editUrl: custom_edit_url || docsEditUrl,
editUrl: custom_edit_url !== undefined ? custom_edit_url : docsEditUrl,
version,
lastUpdatedBy,
lastUpdatedAt,