-
Hello. I am creating a docusaurus project inside an existing repo. My docs are one level up from the docusaurus project
Any way to tell docusaurus to refer to md files in the folders up from the docusaurus project ?
To presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
+ path: "..",
+ include: ["fol-*/**/*.{md,mdx}"],
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
},
// ...
}),
],
], But it is throwing some errors. Any idea how to achieve this ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
This is the way, but you probably don't need to modify the
We don't know what those errors are so we can't help fixing them 🤷♂️ Create a small repro if you want more help |
Beta Was this translation helpful? Give feedback.
-
I think we should be able to use this kind of architecture, as I mention here #9027 |
Beta Was this translation helpful? Give feedback.
Using
path: '..'
is actually not a good idea, because this folder includes your whole site, including your blog, pages etc... this creates conflicts that we can't really manage. IMHO we should forbid you to use a direct parent folder.If you want to have 2 folders, you need to configure 2 docs plugin instances: