mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
fix(content-docs): add trailing slash to contentDirs, before passing it to isMDXPartial (#8275)
This commit is contained in:
parent
412d2db011
commit
a4d935a6f1
1 changed files with 5 additions and 4 deletions
|
@ -255,12 +255,13 @@ export default async function pluginContentDocs(
|
|||
};
|
||||
|
||||
function createMDXLoaderRule(): RuleSetRule {
|
||||
const contentDirs = versionsMetadata.flatMap(getContentPathList);
|
||||
const contentDirs = versionsMetadata
|
||||
.flatMap(getContentPathList)
|
||||
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
||||
.map(addTrailingPathSeparator);
|
||||
return {
|
||||
test: /\.mdx?$/i,
|
||||
include: contentDirs
|
||||
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
||||
.map(addTrailingPathSeparator),
|
||||
include: contentDirs,
|
||||
use: [
|
||||
getJSLoader({isServer}),
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue