Commit bfa2621e authored by Peter Langenkamp's avatar Peter Langenkamp

only include files where the type attribute in the docusaurus header is either concept or term

parent 0260e893
Pipeline #17196 failed with stage
in 1 minute and 53 seconds
...@@ -122,7 +122,7 @@ async function getGlossaryTerms(files) { ...@@ -122,7 +122,7 @@ async function getGlossaryTerms(files) {
//gather all metadata //gather all metadata
let { metadata } = parseMD(content) let { metadata } = parseMD(content)
//keep only the required keys //keep only the required keys
if (metadata.title) { if (metadata.title && (metadata.type == "concept" || metadata.type == "term")) {
let glossaryContent = metadata.glossaryText; let glossaryContent = metadata.glossaryText;
if (glossaryContent) { if (glossaryContent) {
...@@ -163,6 +163,8 @@ async function getGlossaryTerms(files) { ...@@ -163,6 +163,8 @@ async function getGlossaryTerms(files) {
glossaryText: glossaryContent, glossaryText: glossaryContent,
filepath: filepath.slice(1,-3), filepath: filepath.slice(1,-3),
}); });
} else {
console.log(metadata.type);
} }
} }
return arr; return arr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment