Skip to content

Commit 713f9ee

Browse files
committed
Add Dark/Light mode and release table
1 parent f8d4791 commit 713f9ee

5 files changed

Lines changed: 347 additions & 135 deletions

File tree

.github/workflows/fetch-releases.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
python << 'EOF'
4242
import json
4343
import os
44-
from datetime import datetime
44+
from datetime import datetime, timezone
4545
from github import Github, Auth, GithubException
4646
import requests
4747
@@ -176,7 +176,7 @@ jobs:
176176
os.makedirs('docs/data', exist_ok=True)
177177
178178
output_data = {
179-
'last_updated': datetime.utcnow().isoformat() + 'Z',
179+
'last_updated': datetime.now(timezone.utc).isoformat() + 'Z',
180180
'repositories': {}
181181
}
182182
@@ -220,7 +220,7 @@ jobs:
220220
python << 'EOF'
221221
import json
222222
import os
223-
from datetime import datetime
223+
from datetime import datetime, timezone
224224
from github import Github, Auth, GithubException
225225
226226
github_token = os.environ.get('GITHUB_TOKEN')
@@ -239,7 +239,7 @@ jobs:
239239
# Get recent workflow runs
240240
workflows = repo.get_workflows()
241241
build_info = {
242-
'last_updated': datetime.utcnow().isoformat() + 'Z',
242+
'last_updated': datetime.now(timezone.utc).isoformat() + 'Z',
243243
'workflows': []
244244
}
245245
@@ -283,14 +283,14 @@ jobs:
283283
build_file = 'docs/data/builds.json'
284284
os.makedirs('docs/data', exist_ok=True)
285285
with open(build_file, 'w', encoding='utf-8') as f:
286-
json.dump({'last_updated': datetime.utcnow().isoformat() + 'Z', 'workflows': [], 'skipped': True}, f)
286+
json.dump({'last_updated': datetime.now(timezone.utc).isoformat() + 'Z', 'workflows': [], 'skipped': True}, f)
287287
except Exception as e:
288288
print(f"⚠️ Could not fetch build info: {e}")
289289
# Create empty file
290290
build_file = 'docs/data/builds.json'
291291
os.makedirs('docs/data', exist_ok=True)
292292
with open(build_file, 'w', encoding='utf-8') as f:
293-
json.dump({'last_updated': datetime.utcnow().isoformat() + 'Z', 'workflows': []}, f)
293+
json.dump({'last_updated': datetime.now(timezone.utc).isoformat() + 'Z', 'workflows': []}, f)
294294
EOF
295295
env:
296296
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -302,7 +302,7 @@ jobs:
302302
python << 'EOF'
303303
import json
304304
import os
305-
from datetime import datetime
305+
from datetime import datetime, timezone
306306
from github import Github, Auth, GithubException
307307
308308
github_token = os.environ.get('GITHUB_TOKEN')
@@ -331,7 +331,7 @@ jobs:
331331
pass
332332
333333
version_info = {
334-
'last_updated': datetime.utcnow().isoformat() + 'Z',
334+
'last_updated': datetime.now(timezone.utc).isoformat() + 'Z',
335335
'versions': versions_data,
336336
'project_manifest': project_manifest
337337
}
@@ -354,7 +354,7 @@ jobs:
354354
os.makedirs('docs/data', exist_ok=True)
355355
with open(version_file, 'w', encoding='utf-8') as f:
356356
json.dump({
357-
'last_updated': datetime.utcnow().isoformat() + 'Z',
357+
'last_updated': datetime.now(timezone.utc).isoformat() + 'Z',
358358
'versions': {},
359359
'skipped': True
360360
}, f)
@@ -365,7 +365,7 @@ jobs:
365365
os.makedirs('docs/data', exist_ok=True)
366366
with open(version_file, 'w', encoding='utf-8') as f:
367367
json.dump({
368-
'last_updated': datetime.utcnow().isoformat() + 'Z',
368+
'last_updated': datetime.now(timezone.utc).isoformat() + 'Z',
369369
'versions': {},
370370
'error': str(e)
371371
}, f)

docs/downloads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function formatSize(bytes) {
210210
}
211211

212212
// Fetch and display downloads
213-
fetch('/docs/data/releases.json')
213+
fetch('/data/releases.json')
214214
.then(response => {
215215
if (!response.ok) {
216216
throw new Error(`HTTP error! status: ${response.status}`);

0 commit comments

Comments
 (0)