website: clarify purpose of sourceUrl

This commit is contained in:
Zach Shilton 2021-03-18 12:31:24 -04:00
parent 203900e403
commit 618a3d42c6
No known key found for this signature in database
GPG Key ID: 487BAB946192712E
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ async function resolvePluginEntryDocs(pluginConfigEntry) {
const { data: frontmatter } = grayMatter(fileString)
const { nav_title, sidebar_title } = frontmatter
const title = nav_title || sidebar_title || basename
// construct sourceUrl
// construct sourceUrl (used for "Edit this page" link)
const sourceUrl = `https://github.com/${repo}/blob/${version}/${filePath}`
// determine pluginTier
const pluginOwner = repo.split('/')[0]