Skip to content

Commit ffbcfb5

Browse files
committed
include margin note about date generated
1 parent bd54cd8 commit ffbcfb5

File tree

4 files changed

+21
-31
lines changed

4 files changed

+21
-31
lines changed

summary.scribl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
@(require racket/path
33
racket/file
44
racket/list
5-
scribble/base)
5+
scribble/base
6+
racket/date)
67

78
@title{Benchmarking results summary}
9+
@margin-note{These plots were generated on @(date->string (current-date))}
10+
11+
12+
@linebreak{}
13+
@linebreak{}
14+
@linebreak{}
815

916
@(define pngs
1017
(for/list ([p (in-directory ".")]

summary/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2-
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=0.8"/><title>Benchmarking results summary</title><link rel="stylesheet" type="text/css" href="scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-racket.css" title="default"/><script type="text/javascript" src="scribble-common.js"></script><script type="text/javascript" src="manual-racket.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="scribble-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;">&bull;</td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">Benchmarking results summary</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._.Benchmarking_results_summary%29" class="tocsubseclink" data-pltdoc="x">Benchmarking results summary</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">8.17</span></div><div class="navsettop"><span class="navleft"><div class="nosearchform"></div>&nbsp;&nbsp;<span class="tocsettoggle">&nbsp;&nbsp;<a href="javascript:void(0);" title="show/hide table of contents" onclick="TocsetToggle();">contents</a></span></span>&nbsp;</div><h2 class="heading"><a name="(part._.Benchmarking_results_summary)"></a>Benchmarking results summary<span class="button-group"><a href="#(part._.Benchmarking_results_summary)" class="heading-anchor" title="Link to here">🔗</a><span style="visibility: hidden"> </span></span></h2><ul><li><p><span style="font-weight: bold">alarm</span>
2+
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=0.8"/><title>Benchmarking results summary</title><link rel="stylesheet" type="text/css" href="scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-racket.css" title="default"/><script type="text/javascript" src="scribble-common.js"></script><script type="text/javascript" src="manual-racket.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="scribble-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;">&bull;</td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">Benchmarking results summary</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._.Benchmarking_results_summary%29" class="tocsubseclink" data-pltdoc="x">Benchmarking results summary</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">8.15</span></div><div class="navsettop"><span class="navleft"><div class="nosearchform"></div>&nbsp;&nbsp;<span class="tocsettoggle">&nbsp;&nbsp;<a href="javascript:void(0);" title="show/hide table of contents" onclick="TocsetToggle();">contents</a></span></span>&nbsp;</div><h2 class="heading"><a name="(part._.Benchmarking_results_summary)"></a>Benchmarking results summary<span class="button-group"><a href="#(part._.Benchmarking_results_summary)" class="heading-anchor" title="Link to here">🔗</a><span style="visibility: hidden"> </span></span></h2><blockquote class="refpara"><blockquote class="refcolumn"><blockquote class="refcontent"><p>These plots were generated on Monday, September 8th, 2025</p></blockquote></blockquote></blockquote><p><br/>
3+
<br/>
4+
<br/></p><ul><li><p><span style="font-weight: bold">alarm</span>
35
<br/>
46
<img src="alarm.png" alt="" width="985" height="590"/></p></li><li><p><span style="font-weight: bold">bench_test1</span>
57
<br/>

summary/scribble-common.js

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,21 @@
22

33
// Page Parameters ------------------------------------------------------------
44

5-
function GetURL() {
6-
return new URL(location);
7-
}
8-
9-
function GetPageArgs() {
10-
return GetURL().searchParams;
11-
}
12-
13-
function GetPageQueryString() {
14-
return GetPageArgs().toString();
15-
}
5+
var page_query_string = location.search.substring(1);
6+
const page_args = new URLSearchParams(location.search);
167

178
function GetPageArg(key, def) {
18-
return GetPageArgs().get(key) || def;
9+
return page_args.get(key) || def;
1910
}
2011

2112
function MergePageArgsIntoLink(a) {
22-
if (GetPageArgs().size === 0 || !a.dataset.pltdoc) return;
13+
if (page_args.size === 0 || !a.dataset.pltdoc) return;
2314
a.href = MergePageArgsIntoUrl(a.href);
2415
}
2516

2617
function MergePageArgsIntoUrl(href) {
2718
const url = new URL(href, window.location.href);
28-
for (const [key, val] of GetPageArgs()) {
19+
for (const [key, val] of page_args) {
2920
if (url.searchParams.has(key)) continue;
3021
url.searchParams.append(key, val)
3122
}
@@ -79,24 +70,14 @@ function SetPLTRoot(ver, relative) {
7970

8071
// adding index.html works because of the above
8172
function GotoPLTRoot(ver, relative) {
82-
var u = GetRootPath(ver);
73+
var u = GetCookie("PLT_Root."+ver, null);
8374
if (u == null) return true; // no cookie: use plain up link
8475
// the relative path is optional, default goes to the toplevel start page
8576
if (!relative) relative = "index.html";
8677
location = u + relative;
8778
return false;
8879
}
8980

90-
function GetRootPath(ver) {
91-
var u = GetCookie("PLT_Root."+ver, null);
92-
if (u != null)
93-
return u;
94-
// use root specified by local-redirect wrapper, if present
95-
if (typeof user_doc_root != "undefined")
96-
return user_doc_root;
97-
return null;
98-
}
99-
10081
// Utilities ------------------------------------------------------------------
10182

10283
var normalize_rxs = [/\/\/+/g, /\/\.(\/|$)/, /\/[^\/]*\/\.\.(\/|$)/];
@@ -116,7 +97,7 @@ function NormalizePath(path) {
11697
function DoSearchKey(event, field, ver, top_path) {
11798
var val = field.value;
11899
if (event && event.key === 'Enter') {
119-
var u = GetRootPath(ver);
100+
var u = GetCookie("PLT_Root."+ver, null);
120101
if (u == null) u = top_path; // default: go to the top path
121102
u += "search/index.html?q=" + encodeURIComponent(val);
122103
u = MergePageArgsIntoUrl(u);

summary/scribble.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
see if any font is set. */
1313

1414
/* Monospace: */
15-
.maincolumn, .refpara, .refelem, .tocset, .stt, .hspace, .refparaleft, .refelemleft, .reffootnote {
15+
.maincolumn, .refpara, .refelem, .tocset, .stt, .hspace, .refparaleft, .refelemleft {
1616
font-family: monospace;
1717
}
1818

@@ -200,7 +200,7 @@ table td {
200200
/* ---------------------------------------- */
201201
/* Margin notes */
202202

203-
.refpara, .refelem, .reffootnote {
203+
.refpara, .refelem {
204204
position: relative;
205205
float: right;
206206
left: 2em;
@@ -209,7 +209,7 @@ table td {
209209
margin: 0em -13em 0em 0em;
210210
}
211211

212-
.refpara, .refparaleft, .reffootnote {
212+
.refpara, .refparaleft {
213213
top: -1em;
214214
}
215215

0 commit comments

Comments
 (0)