Skip to main content

Multiple Modules

Documenting multiple modules is supported through use of the -Sidebar parameter.

For example, the following commands would generate module documentation for both ModuleA and ModuleB, each contained within their own sidebar subfolder.

New-DocusaurusHelp -Module "ModuleA" -Sidebar "SidebarA" -EditUrl "http://some.url/ModuleA"
New-DocusaurusHelp -Module "ModuleB" -Sidebar "SidebarB" -EditUrl "http://some.url/ModuleB"

After that, docusaurus/sidebars.js would need to be updated to include both sidebar specifications.

const moduleA = require('./docs/ModuleA/docusaurus.sidebar.js');
const moduleB = require('./docs/ModuleB/docusaurus.sidebar.js');

module.exports = {
docs: {
Docusaurus: ['doc1', 'doc2', 'doc3'],
ModuleA: moduleA,
ModuleB: moduleB,
},
};