* Build the mdbase.yaml content.
(typesFolder = DEFAULT_TYPES_FOLDER)
| 154 | * Build the mdbase.yaml content. |
| 155 | */ |
| 156 | buildMdbaseYaml(typesFolder = DEFAULT_TYPES_FOLDER): string { |
| 157 | const normalizedTypesFolder = |
| 158 | this.normalizeTypesFolder(typesFolder) ?? DEFAULT_TYPES_FOLDER; |
| 159 | |
| 160 | return [ |
| 161 | 'spec_version: "0.2.0"', |
| 162 | 'name: "TaskNotes"', |
| 163 | 'description: "Task collection managed by TaskNotes for Obsidian"', |
| 164 | "settings:", |
| 165 | ` types_folder: ${yamlQuote(normalizedTypesFolder)}`, |
| 166 | " default_strict: false", |
| 167 | " exclude:", |
| 168 | ` - ${yamlQuote(normalizedTypesFolder)}`, |
| 169 | "", |
| 170 | ].join("\n"); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Build the _types/task.md content with YAML frontmatter. |
no test coverage detected