diff --git a/docs/terms/guardianship.md b/docs/terms/guardianship.md index f590e284bd9d294952e9acc4ed84c797538740c3..5217a280c2662e370a94eda05dd8f8ec2a0005a4 100644 --- a/docs/terms/guardianship.md +++ b/docs/terms/guardianship.md @@ -22,8 +22,6 @@ We may use the phrase %%natural guardianship|guardianship%% to refer to an guard The %%Guardianship pattern|pattern-guardianship%% provides an overview of how this concept fits in with related concepts. -The %%Guardianship pattern|pattern-guardianship%% provides an overview of how this concept fits in with related concepts. - ### Purpose **Guardianship** is a means by which %%jurisdictions|jurisdiction%% provide assurances to %%parties|party%% (within its scope) that they can enjoy, dispose of and control in pretty much any way they like. The %%legal system|legal-system%% of the %%jurisdiction|jurisdiction%% specifies these rights, and provides ways in which the %%owner|owner%% can exercize them (that provides the assurance). diff --git a/docs/terms/legal-system.md b/docs/terms/legal-system.md index aa3da825faef110a6a187a722e165dabdd23b7ec..c46b734dce995efc4fc47732c27aa6342d1b1041 100644 --- a/docs/terms/legal-system.md +++ b/docs/terms/legal-system.md @@ -14,8 +14,6 @@ A **Legal System** is a system in which rules are defined ([legislature](https:/ The %%Jurisdictions pattern|pattern-jurisdiction%% provides an overview of how this concept fits in with related concepts. -The %%Jurisdictions pattern|pattern-jurisdiction%% provides an overview of how this concept fits in with related concepts. - ### Purpose The ability to distinguish between (non)legal-systems is a very generic enabler to tell which rules (laws, policies, guidelines, etc.) will apply within its %%scope|scope%%, as well as to evaluate the risks that we run when not complying with the rules. Conversely, the %%party|party%% that operates a legal system may provide additional rules to help mitigate such risks. diff --git a/plugins/terminology-parser/index.js b/plugins/terminology-parser/index.js index 9cca9cd4093dea2028d9db708428c32def1349af..6d8c24b9b7ed1720cc35870c62797404f7c9257e 100644 --- a/plugins/terminology-parser/index.js +++ b/plugins/terminology-parser/index.js @@ -143,7 +143,9 @@ async function getGlossaryTerms(files) { // Get the popup text for the term let hoverText = await getHoverText(referencePath); - const new_final_url = referencePath.slice(1,-3); + const glossary_file_path = path.resolve(process.cwd(), glossaryPath); + const term_path = path.resolve(process.cwd(), TERMS_DIR, reference); + const new_final_url = getRelativePath(glossary_file_path, term_path); if (hoverText === undefined) { var new_text = ('' + text + ''); @@ -173,7 +175,7 @@ function generateGlossary(data) { let undefineds = ""; data.forEach(item => { if (item.title !== undefined) { - if (item.hoverText === undefined) { + if (item.glossaryText === undefined) { undefineds = undefineds + `\n- [${item.title}](${item.filepath})\n`; } else { content = content + `\n\n### **[${item.title}](${item.filepath})**\n${item.glossaryText}\n`;