Merge pull request #10821 from zchsh/zs.fix-nested-plugin-urls

website: fix issue with .mdx in plugin docs URL paths
This commit is contained in:
Megan Marsh 2021-03-24 14:10:14 -07:00 committed by GitHub
commit b958fe7a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ async function resolvePluginEntryDocs(pluginConfigEntry) {
// Process into a NavLeaf, with a remoteFile attribute
const dirs = path.dirname(filePath).split('/')
const dirUrl = dirs.slice(2).join('/')
const basename = path.basename(filePath)
const basename = path.basename(filePath, path.extname(filePath))
// build urlPath
// note that this will be prefixed to get to our final path
const isIndexFile = basename === 'index'