Skip to content

Commit

Permalink
update gh page generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
bushshrub committed Jul 24, 2024
1 parent a0e7f21 commit 64b4dcb
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion generate_gh_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,34 @@

with open("gh-pages/index.html", "w") as f:
f.write("<!DOCTYPE html>\n")
f.write("<html>\n<body>\n")
f.write('''
<html>
<head>
<style>
body {
font-size: 20pt;
}
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: #fdfdfd;
}
a {
color: #ffe666;
text-decoration: none;
}
a:hover {
background: #424242;
color: #fdfdfd;
text-decoration: underline;
}
}
</style>
</head>
''')
f.write("<body>\n")
f.write("<h1>Algebra Book Build Files</h1>\n")
current_git_commit_hash = os.popen("git rev-parse --short HEAD").read().strip()
last_commit_dt = os.popen('git log -1 --date=format:"%Y/%m/%d %T" --format="%ad"').read().strip()
Expand Down

0 comments on commit 64b4dcb

Please sign in to comment.