Skip to content

Commit

Permalink
update various aesthetics
Browse files Browse the repository at this point in the history
  • Loading branch information
JHogenboom committed Nov 21, 2024
1 parent 06d44bb commit 05e6380
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
16 changes: 12 additions & 4 deletions hugo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,27 @@ enableGitInfo = true
[menu]

[[menu.after]]
name = "STRONG AYA website"
name = ""
weight = 1

[[menu.after]]
name = "Quick Links"
weight = 5

[[menu.after]]
name = "About STRONG AYA"
url = "https://strongaya.eu"
weight = 20
weight = 10

[[menu.after]]
name = "Github"
url = "https://github.com/STRONGAYA/AYA-cancer-data-schema"
weight = 10
weight = 20

[[menu.after]]
name = "Associated scientific publication (in preparation)"
url = ""
weight = 20
weight = 30

[params]
BookTheme = 'auto'
Expand Down
10 changes: 5 additions & 5 deletions hugo/generate_hugo_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ Object.keys(variableInfo).forEach(async (variable) => {

// Fetch the class details
const classDetails = await getClassDetails(variableData.class, apiKey);
content += `**Class shortcode**: ${variableData.class}\n`;
content += `**Vocabulary information**:\n`;
content += `**Preferred name**: ${classDetails.preferredName}\n`;
content += `**Definition**: ${classDetails.definition}\n\n`;
content += `## Vocabulary information:\n\n`;
content += ` - Class shortcode: ${variableData.class}\n`;
content += ` - Preferred name: ${classDetails.preferredName}\n`;
content += ` - Definition**: ${classDetails.definition}\n\n`;

// Add value mapping information
if (variableData.value_mapping) {
const valueMapping = variableData.value_mapping.terms;
content += `**Allowed values**:\n`;
content += `## Allowed values**:\n`;
for (const term in valueMapping) {
const termDetails = await getClassDetails(valueMapping[term].target_class, apiKey);
content += ` - ${term.charAt(0).toUpperCase() + term.slice(1)}\n`;
Expand Down

0 comments on commit 05e6380

Please sign in to comment.