MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / buildMdbaseYaml

Method buildMdbaseYaml

src/services/MdbaseSpecService.ts:156–171  ·  view source on GitHub ↗

* Build the mdbase.yaml content.

(typesFolder = DEFAULT_TYPES_FOLDER)

Source from the content-addressed store, hash-verified

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.

Callers 2

generateMethod · 0.95

Calls 2

normalizeTypesFolderMethod · 0.95
yamlQuoteFunction · 0.85

Tested by

no test coverage detected