Skip to content

Commit

Permalink
fix mrg filename
Browse files Browse the repository at this point in the history
  • Loading branch information
brianorwhatever committed Oct 6, 2023
1 parent 6d7c36a commit 9c8d2b4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aviarytech/tev2-hrgt",
"version": "0.0.7",
"version": "0.0.8",
"description": "Human Readable Glossary Tool (HRGT)",
"main": "lib/Run.js",
"types": "lib/Run.d.ts",
Expand Down
9 changes: 5 additions & 4 deletions src/Glossary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ export class Glossary {
* @returns A promise that resolves to the populated runtime glossary.
*/
public async initialize(mrgFileName: string | null): Promise<Output> {
let glossarydir = path.join(this.scopedir, this.saf.scope.glossarydir);
console.log("glossary dir", glossarydir);
console.log("mrg file", mrgFileName ?? this.saf.scope.mrgfile);
let mrgfile = path.join(glossarydir, mrgFileName ?? this.saf.scope.mrgfile);
let mrgfile = path.join(
this.scopedir,
this.saf.scope.glossarydir,
mrgFileName ?? this.saf.scope.mrgfile
);

// Get the MRG map of the MRG file
const mrg = await this.getMrgMap(mrgfile);
Expand Down
72 changes: 36 additions & 36 deletions template.mustache
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Glossary</title>
</head>
<body>
<div class="glossary-container">
<h1>Glossary</h1>
<ul class="glossary-list">
{{#entries}}
<li class="glossary-item">
<div class="glossary-term">
<strong>Term:</strong> {{term}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Glossary</title>
</head>
<body>
<div class="glossary-container">
<h1>Glossary</h1>
<ul class="glossary-list">
{{#entries}}
<li class="glossary-item">
<div class="glossary-term">
<strong>Term:</strong> {{term}}
</div>
<div class="glossary-definition">
<strong>Definition:</strong>
{{#glossaryText}}
{{glossaryText}}
{{/glossaryText}}
{{^glossaryText}}
No glossary text available.
{{/glossaryText}}
</div>
{{#altterms}}
<div class="glossary-alternatives">
<strong>Alternative Terms:</strong> {{.}}
</div>
{{/altterms}}
</li>
{{/entries}}
</ul>
</div>
<div class="glossary-definition">
<strong>Definition:</strong>
{{#glossaryText}}
{{glossaryText}}
{{/glossaryText}}
{{^glossaryText}}
No glossary text available.
{{/glossaryText}}
</div>
{{#altterms}}
<div class="glossary-alternatives">
<strong>Alternative Terms:</strong> {{.}}
</div>
{{/altterms}}
</li>
{{/entries}}
</ul>
</div>
</body>
</html>
</body>
</html>

0 comments on commit 9c8d2b4

Please sign in to comment.