Use index.html instead of dependencies.html (#293)

This commit is contained in:
merwanehamadi
2023-08-11 20:32:23 -07:00
committed by GitHub
parent c8ff1fd646
commit d8d7fa662b

View File

@@ -266,7 +266,7 @@ def graph_interactive_network(
"layout": {"hierarchical": hierarchical_options},
}
relative_path = "agbenchmark/challenges/skill_tree/dependencies.html"
relative_path = "agbenchmark/challenges/skill_tree/index.html"
file_path = str(Path(relative_path).resolve())
if show:
@@ -278,7 +278,7 @@ def graph_interactive_network(
["Task: ", "Click on a skill to to see the task"],
]
iframe_path = "dependencies.html"
iframe_path = "index.html"
combined_file_path = "agbenchmark/challenges/skill_tree/combined_view.html"
create_combined_html(combined_file_path, iframe_path, table_data)
@@ -295,7 +295,7 @@ def graph_interactive_network(
"""
# Path to the iframe HTML file
iframe_path = "agbenchmark/challenges/skill_tree/dependencies.html"
iframe_path = "agbenchmark/challenges/skill_tree/index.html"
# Insert the JS code snippet into the iframe HTML file
insert_js_into_iframe(iframe_path, iframe_js_code)