Import multiple docs directories from a monorepo
mainIf an imported repository is a monorepo containing multiple docs directories, you can automatically include all of them in your site by setting multi_docs: True in your configuration.
When multi_docs is enabled, the plugin strips the docs directory from the path. For example, if a project has a structure like project1/docs/index.md, it will be imported as project1/index.md.
Important Considerations:
- Navigation: If you use the
!importstatement in yournavsection, ensure the paths reflect the new structure (i.e., remove thedocs/segment from the path). - Edit URLs: The
edit_urlsconfiguration will continue to map correctly to the original file structure in the remote repository.
plugins:
multirepo:
multi_docs: True