website: fix issue with .mdx in URL paths

pull/10821/head
Zach Shilton 5 years ago
parent 0e3fcb589b
commit cc133ea250
No known key found for this signature in database
GPG Key ID: 487BAB946192712E

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

Loading…
Cancel
Save