fix contractFolder condition

pull/3591/head
Joseph Izang 2 years ago committed by Aniket
parent 6b562b18c1
commit 7c608132d3
  1. 2
      apps/doc-gen/src/app/docgen-client.ts

@ -57,7 +57,7 @@ export class DocGenClient extends PluginClient {
async docgen(builds: Build[], userConfig?: Config): Promise<void> {
const config = { ...defaults, ...userConfig }
config.sourcesDir = this.contractPath.length > 0 ? this.contractPath : config.sourcesDir
config.sourcesDir = this.contractPath !== config.sourcesDir ? this.contractPath : config.sourcesDir
const templates = await loadTemplates(config.theme, config.root, config.templates)
const site = buildSite(builds, config, templates.properties ?? {})
const renderedSite = render(site, templates, config.collapseNewlines)

Loading…
Cancel
Save