Open vjpr opened 3 years ago
@vjpr there is a way to setup this, maybe not as straight, but you could look what i did in typescript-eslint
https://github.com/typescript-eslint/typescript-eslint/pull/3147
[
'@docusaurus/plugin-content-docs',
{
id: 'rules-docs',
path: '../packages/eslint-plugin/docs/rules',
sidebarPath: require.resolve('./sidebars/sidebar.rules.js'),
routeBasePath: 'rules',
editUrl: `${githubUrl}/edit/master/docs/`,
remarkPlugins,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'base-docs',
path: '../docs',
routeBasePath: 'docs',
sidebarPath: require.resolve('./sidebars/sidebar.base.js'),
editUrl: `${githubUrl}/edit/master/docs/`,
remarkPlugins,
},
],
We are using docusaurus in our NX monorepo. The docs is 1 app. It would be great if we could specify folders outside the docs app. This way we could pull the docs from other apps and libs folder.
I am creating this issue to track all the issues related to using multiple docs plugins without a single repo.
Below is an example of my setup:
There are 3 docs plugins in use here. One for the monorepo root package, and two others for other packages.
I have indicated where the plugin's
path
config is set.For the monorepo root docs plugin I set the
path
to be the root rather than thedocs
folder. This allows me to include thereadme.md
file in my docs.Issues