Skip to content

Commit

Permalink
module name -> software name
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Sep 19, 2024
1 parent f4cd2c9 commit a83bf9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/available_software/available_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,18 +405,18 @@ def generate_software_detail_page(
f.write("---\nhide:\n - toc\n---\n" + read_data)


def get_custom_markdown_text(module_name: str, custom_text_folder: str) -> str:
def get_custom_markdown_text(software_name: str, custom_text_folder: str) -> str:
"""
Get the custom Markdown text that will be added to the detailed Markdown pages.
@return: Custom Markdown text
"""
custom_markdown_path = os.path.join(custom_text_folder, module_name + ".md")
custom_markdown_path = os.path.join(custom_text_folder, software_name + ".md")

if not os.path.exists(custom_markdown_path):
return ""

print(f"Adding custom text for {module_name} located at {custom_markdown_path}")
print(f"Adding custom text for {software_name} located at {custom_markdown_path}")

with open(custom_markdown_path, 'r') as f:
return "\n" + f.read() + "\n"
Expand Down

0 comments on commit a83bf9c

Please sign in to comment.