mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +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 {
|
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 {
|
return {
|
||||||
test: /\.mdx?$/i,
|
test: /\.mdx?$/i,
|
||||||
include: contentDirs
|
include: contentDirs,
|
||||||
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
||||||
.map(addTrailingPathSeparator),
|
|
||||||
use: [
|
use: [
|
||||||
getJSLoader({isServer}),
|
getJSLoader({isServer}),
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue