diff --git a/docs/terms/business-transaction.md b/docs/terms/business-transaction.md index fb3c682ee44a52bcc2f76ed888ac9b937989f539..84becd69bc8d4661712ed110bf65f58c3a161aed 100644 --- a/docs/terms/business-transaction.md +++ b/docs/terms/business-transaction.md @@ -6,7 +6,7 @@ type: concept typeid: business-transaction stage: draft hoverText: "Business Transaction: a Transaction that constitutes business of its participating Parties." -glossaryText: "See: %%transaction^transaction%%)." +glossaryText: "See: %%transaction^transaction%%." --- See: %%transaction^transaction%% diff --git a/docs/terms/credential-catalogue.md b/docs/terms/credential-catalogue.md index 66ebe905fe99bb41ef3173d7dd87ecbde3b44d05..1e0a6a29b40dc43a52c2bae8cd9005961ecbd4eb 100644 --- a/docs/terms/credential-catalogue.md +++ b/docs/terms/credential-catalogue.md @@ -5,8 +5,8 @@ scopeid: essifLab type: concept typeid: credential-catalogue stage: draft -hoverText: "Credential Catalogue (functional component): the capability to register and advertise the information about Credential Types that their respective Governing Parties have decided to disclose so as to enable other Parties to decide whether or not it is beneficial for them to use Credentials of such types." -glossaryText: "the capability to register and advertise the information about %%credential types^credential-type%% that their respective %%governing parties^governor%% have decided to disclose so as to enable other %%parties^party%% to decide whether or not it is beneficial for them to use %%credentials^credential%% of such types." +hoverText: "Credential Catalogue: a functional component that has the capability to register and advertise the information about Credential Types that their respective Governing Parties have decided to disclose so as to enable other Parties to decide whether or not it is beneficial for them to use Credentials of such types." +glossaryText: "a functional component that has the capability to register and advertise the information about %%credential types^credential-type%% that their respective %%governing parties^governor%% have decided to disclose so as to enable other %%parties^party%% to decide whether or not it is beneficial for them to use %%credentials^credential%% of such types." --- :::info Editor's note diff --git a/plugins/terminology-parser/index.js b/plugins/terminology-parser/index.js index 2e228ffea83f4337613cd93162b9b1a8dd4c053f..9cca9cd4093dea2028d9db708428c32def1349af 100644 --- a/plugins/terminology-parser/index.js +++ b/plugins/terminology-parser/index.js @@ -170,15 +170,19 @@ async function getGlossaryTerms(files) { function generateGlossary(data) { //append all markdown terms in a variable let content = ""; + let undefineds = ""; data.forEach(item => { if (item.title !== undefined) { if (item.hoverText === undefined) { - content = content + `\n\n- **[${item.title}](${item.filepath})**\n`; + undefineds = undefineds + `\n- [${item.title}](${item.filepath})\n`; } else { - content = content + `\n\n- **[${item.title}](${item.filepath})**: ${item.glossaryText}\n`; + content = content + `\n\n### **[${item.title}](${item.filepath})**\n${item.glossaryText}\n`; } } }) + if (undefineds !== "") { + content = content + "\n\n## Terms without glossary texts\n\n" + undefineds; + } fs.readFile(glossaryPath, 'utf8', function(err, glossaryContent) { if (err) throw err; var indexOfSecond = glossaryContent.indexOf(searchTerm, 1);