Skip to content

Commit

Permalink
fix: website builder
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Oct 25, 2024
1 parent b2032da commit 5b2fdc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
path: website/data/

- name: Build website
run: python /app/script.py
run: python /app/script.py website/data/sampleEval.json


deploy:
Expand Down
1 change: 1 addition & 0 deletions website/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# builder environment for the website
# Use an official Python runtime as a parent image
FROM python:3.12-slim

Expand Down
6 changes: 3 additions & 3 deletions website/script.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import plotly.graph_objects as go
import pandas as pd
from layout import layout_with_figures
import json, re
import json, re, sys
from algo_details_script import create_algo_page

github_pages_root_url = "https://esl-epfl.github.io/szcore/"

path_to_eval = './data/sampleEval.json'
path_to_eval = sys.argv[1]
path_to_algo_yaml = "../algorithms/"
file = open(path_to_eval)

Expand Down Expand Up @@ -47,4 +47,4 @@
file.write(complete_html)

# Create second HTML file for algo details (from yaml)
create_algo_page(path_to_algo_yaml)
create_algo_page(path_to_algo_yaml)

0 comments on commit 5b2fdc3

Please sign in to comment.