Skip to content

Commit

Permalink
update dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgilley committed Mar 25, 2024
1 parent 2a675c5 commit b02d5a5
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 143 deletions.
7 changes: 4 additions & 3 deletions GitHub/docs_dashboard-h.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def write_html(notebooks):
rows_by_extension[extension].append(row)

with open(html_file, 'w') as file:
file.write('<html>\n<head>\n<title>Code snippets dashboard</title>\n</head>\n<body>\n')
for extension, rows in rows_by_extension.items():
file.write(f'<h2>{extension}</h2>\n')
file.write('<html>\n<head>\n<title>Code snippets dashboard</title>\n<link rel="stylesheet" type="text/css" href="styles.css">\n</head>\n<body>\n')
for extension in sorted(rows_by_extension.keys()):
rows = rows_by_extension[extension]
file.write(f'<a name={extension}></a><h2>{extension}</h2>\n')
file.write('<table>\n')
for row in rows:
file.write(row)
Expand Down
Loading

0 comments on commit b02d5a5

Please sign in to comment.