diff --git a/apps/doc-gen/src/app/docgen-client.ts b/apps/doc-gen/src/app/docgen-client.ts index 48361bb037..72da3d0975 100644 --- a/apps/doc-gen/src/app/docgen-client.ts +++ b/apps/doc-gen/src/app/docgen-client.ts @@ -63,7 +63,7 @@ export class DocGenClient extends PluginClient { const renderedSite = render(site, templates, config.collapseNewlines) const docs: string[] = [] for (const { id, contents } of renderedSite) { - const temp = `${this.fileName}.${id.split('.')[1]}` + const temp = `${this.fileName.split('.')[0]}.${id.split('.')[1]}` const newFileName = `docs/${temp}` await this.call('fileManager', 'setFile', newFileName , contents) docs.push(newFileName)