fix plugin names and fix artefact folder

pull/3542/head
Joseph Izang 2 years ago
parent a2ca45901d
commit ca33b2b732
  1. 8
      apps/doc-gen/src/app/docgen-client.ts

@ -59,7 +59,7 @@ export class DocGenClient extends PluginClient {
const docs: string[] = [] const docs: string[] = []
for (const { id, contents } of renderedSite) { for (const { id, contents } of renderedSite) {
const temp = `${this.fileName.split('/')[1].split('.')[0]}.${id.split('.')[1]}` const temp = `${this.fileName.split('/')[1].split('.')[0]}.${id.split('.')[1]}`
const newFileName = `contracts/documentation/${temp}` const newFileName = `docs/${temp}`
await this.call('fileManager', 'setFile', newFileName , contents) await this.call('fileManager', 'setFile', newFileName , contents)
docs.push(newFileName) docs.push(newFileName)
} }
@ -70,9 +70,9 @@ export class DocGenClient extends PluginClient {
} }
async opendDocs(docs: string[]) { async opendDocs(docs: string[]) {
await this.call('manager', 'activatePlugin', 'docviewer') await this.call('manager', 'activatePlugin', 'doc-viewer')
await this.call('tabs' as any, 'focus', 'docviewer') await this.call('tabs' as any, 'focus', 'doc-viewer')
await this.call('docviewer' as any, 'viewDocs', docs) await this.call('doc-viewer' as any, 'viewDocs', docs)
} }
async generateDocs() { async generateDocs() {

Loading…
Cancel
Save