Skip to content

Commit

Permalink
Merge pull request #22 from wuespace/clear-default-value-source
Browse files Browse the repository at this point in the history
Specify the source of the default values in `docs`
  • Loading branch information
pklaschka authored Dec 8, 2024
2 parents 1166852 + 10269d9 commit cbe4ef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/writers/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export class DocsWriter implements Writer {
}

// Default value
prev += '#### Default Value\n\n';
const defaultSource = variable.optional
? "used by the application if not provided"
: "from the example environment file, must be provided";
prev += `#### Default Value (${defaultSource})\n\n`;
prev += this.markdownCodeBlock(`${variable.name}=${variable.defaultValue}`);

// Example values
Expand Down

0 comments on commit cbe4ef2

Please sign in to comment.