Commit 7340ae3 1 parent 3e4bdb9 commit 7340ae3 Copy full SHA for 7340ae3
File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ def package_name(wheel_file: pathlib.Path) -> str:
59
59
60
60
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected] /dist/semantic.min.css" integrity="sha256-cDGQ39yChhpN5vzgHbjIdGEtQ5kXE9tttCsI7VR9TuY=" crossorigin="anonymous">
61
61
<script src="https://cdn.jsdelivr.net/npm/[email protected] /dist/semantic.min.js" integrity="sha256-fN8vcX2ULyTDspVTHEteK8hd3rQAb5thNiwakjAW75Q=" crossorigin="anonymous"></script>
62
+
63
+ <!-- CDN example (jsDelivr) -->
64
+ <script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
65
+ <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
66
+ <script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script>
67
+ <script>dayjs.extend(window.dayjs_plugin_utc)</script>
68
+ <script>dayjs.extend(window.dayjs_plugin_relativeTime)</script>
62
69
</head>
63
70
<body>
64
71
<div class="ui container">
@@ -68,6 +75,9 @@ def package_name(wheel_file: pathlib.Path) -> str:
68
75
</p>
69
76
70
77
<h2>Build context</h2>
78
+ <p>
79
+ Built <span id="build-timestamp">at { ts } </span>.
80
+ </p>
71
81
<pre id="context-info">{ json .dumps (context_info , indent = 2 )} </pre>
72
82
73
83
<h2>Usage</h2>
@@ -105,6 +115,10 @@ def package_name(wheel_file: pathlib.Path) -> str:
105
115
document.querySelectorAll(".base-url").forEach(el => {{
106
116
el.textContent = baseUrl;
107
117
}});
118
+
119
+ const buildTimestamp = document.getElementById("build-timestamp");
120
+ const buildTimestampDate = dayjs('{ ts } ');
121
+ buildTimestamp.textContent = buildTimestampDate.fromNow();
108
122
</script>
109
123
</html>
110
124
"""
You can’t perform that action at this time.
0 commit comments