Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MattTJung authored Jul 25, 2024
1 parent 0bcc01f commit 434534f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def update_html(template_file, resources, resources_base):
linode = html.fromstring(f'<li><a href="{resources_base:s}{resource:s}">{resources_base:s}{resource:s}</a></li>\n')
ulnode.insert(0, linode)

return html.tostring(tree, pretty_print=True, encoding='utf8')
return tree


def make_parser():
Expand All @@ -36,5 +36,4 @@ def make_parser():
resources_base=args.resourcesbase
)

with open(args.outfile, 'w', encoding='utf8') as f:
f.write(new_html)
new_html.write(args.outfile, method='html', pretty_print=True)

0 comments on commit 434534f

Please sign in to comment.