mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 13:38:33 +02:00
feat(content-docs): make docs:version command work on localized docs (#7106)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
0a3aad618e
commit
4134ebb3fb
8 changed files with 165 additions and 183 deletions
|
@ -67,7 +67,7 @@ export default async function pluginContentDocs(
|
|||
|
||||
const versionsMetadata = await readVersionsMetadata({context, options});
|
||||
|
||||
const pluginId = options.id ?? DEFAULT_PLUGIN_ID;
|
||||
const pluginId = options.id;
|
||||
|
||||
const pluginDataDirRoot = path.join(
|
||||
generatedFilesDir,
|
||||
|
@ -97,12 +97,7 @@ export default async function pluginContentDocs(
|
|||
.arguments('<version>')
|
||||
.description(commandDescription)
|
||||
.action((version) => {
|
||||
cliDocsVersionCommand(version, siteDir, pluginId, {
|
||||
path: options.path,
|
||||
sidebarPath: options.sidebarPath,
|
||||
sidebarCollapsed: options.sidebarCollapsed,
|
||||
sidebarCollapsible: options.sidebarCollapsible,
|
||||
});
|
||||
cliDocsVersionCommand(version, options, context);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue