website: clarify purpose of sourceUrl

pull/10764/head
Zach Shilton 5 years ago
parent 203900e403
commit 618a3d42c6
No known key found for this signature in database
GPG Key ID: 487BAB946192712E

@ -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]

Loading…
Cancel
Save