Commit 26020985 authored by Rieks Joosten's avatar Rieks Joosten

New glossary version is here!

parent dd8305d4
Pipeline #17217 passed with stage
in 2 minutes and 21 seconds
......@@ -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%%
......@@ -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
......
......@@ -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);
......
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