We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b562b1 commit 7c60813Copy full SHA for 7c60813
apps/doc-gen/src/app/docgen-client.ts
@@ -57,7 +57,7 @@ export class DocGenClient extends PluginClient {
57
58
async docgen(builds: Build[], userConfig?: Config): Promise<void> {
59
const config = { ...defaults, ...userConfig }
60
- config.sourcesDir = this.contractPath.length > 0 ? this.contractPath : config.sourcesDir
+ config.sourcesDir = this.contractPath !== config.sourcesDir ? this.contractPath : config.sourcesDir
61
const templates = await loadTemplates(config.theme, config.root, config.templates)
62
const site = buildSite(builds, config, templates.properties ?? {})
63
const renderedSite = render(site, templates, config.collapseNewlines)
0 commit comments