diff options
| author | Dean Anderson <dean@locomation.ai> | 2018-09-26 16:02:48 -0400 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-09-29 19:08:20 +0200 |
| commit | d3452b0a1e9f4424591b5621ee107a95a61300d5 (patch) | |
| tree | b12037f9cbdbeb3cef10c553cc5cf3711f1f0c54 /src/Config.ts | |
| parent | 1fa12911c78438c8fdce6358f61731640fe29b20 (diff) | |
| download | doxdocgen-d3452b0a1e9f4424591b5621ee107a95a61300d5.tar.gz | |
Added additional File Header fields for version, copyright, and custom lines
Diffstat (limited to 'src/Config.ts')
| -rw-r--r-- | src/Config.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Config.ts b/src/Config.ts index a0bae83..54d227a 100644 --- a/src/Config.ts +++ b/src/Config.ts @@ -32,6 +32,9 @@ class File { } public fileTemplate: string = "@file {name}"; + public copyrightTag: string[] = ["@copyright Copyright (c) {year}"]; + public versionTag: string = "@version 0.1"; + public customTag: string[] = []; public fileOrder: string[] = ["brief", "empty", "file", "author", "date"]; } @@ -71,6 +74,9 @@ export class Config { values.Cpp.dtorText = Cpp.getConfiguration().get<string>("dtorText", values.Cpp.dtorText); values.File.fileTemplate = File.getConfiguration().get<string>("fileTemplate", values.File.fileTemplate); + values.File.versionTag = File.getConfiguration().get<string>("versionTag", values.File.versionTag); + values.File.copyrightTag = File.getConfiguration().get<string[]>("copyrightTag", values.File.copyrightTag); + values.File.customTag = File.getConfiguration().get<string[]>("customTag", values.File.customTag); values.File.fileOrder = File.getConfiguration().get<string[]>("fileOrder", values.File.fileOrder); values.Generic.includeTypeAtReturn = Generic.getConfiguration().get<boolean>("includeTypeAtReturn", values.Generic.includeTypeAtReturn); @@ -93,6 +99,7 @@ export class Config { public readonly typeTemplateReplace: string = "{type}"; public readonly nameTemplateReplace: string = "{name}"; public readonly dateTemplateReplace: string = "{date}"; + public readonly yearTemplateReplace: string = "{year}"; public readonly textTemplateReplace: string = "{text}"; public C: C; |