Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 1, 2009
1 parent 8475f65 commit 8962a1e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 10 additions & 5 deletions commit-timeline
Expand Up @@ -90,19 +90,21 @@ function on_load()
var band_infos = [
Timeline.createBandInfo({
width: "90%",
width: "90%%",
eventSource: event_source,
intervalUnit: Timeline.DateTime.WEEK,
intervalPixels: 250,
timeZone: %(timezone)d
}),
Timeline.createBandInfo({
layout: "overview",
width: "10%",
width: "10%%",
trackHeight: 0.5,
trackGap: 0.2,
eventSource: event_source,
intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 50
intervalPixels: 50,
timeZone: %(timezone)d
}),
];
band_infos[1].syncWith = 0;
Expand Down Expand Up @@ -233,7 +235,8 @@ def main():
parser.add_option("-o", "--output-dir", metavar="DIRNAME",
default="timeline")
parser.add_option("--timeline-js", metavar="JAVASCRIPT",
default="http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js")
default="http://static.simile.mit.edu/timeline/api-dev/timeline-api.js")
parser.add_option("--timezone", metavar="TZ", type="int", default=0)
parser.add_option("-d", "--delete", action="store_true")
options, args = parser.parse_args()

Expand All @@ -251,7 +254,9 @@ def main():
open(join(options.output_dir, "index.html"), "w").write(TL_HTML % {
"timeline_js": options.timeline_js
})
open(join(options.output_dir, "main.js"), "w").write(TL_JS)
open(join(options.output_dir, "main.js"), "w").write(TL_JS % {
"timezone": options.timezone
})
open(join(options.output_dir, "main.css"), "w").write(TL_CSS)
else:
parser.print_help()
Expand Down
5 changes: 3 additions & 2 deletions generate-timeline.sh
@@ -1,6 +1,7 @@
#! /bin/sh
./commit-timeline -d -o ~/tmp/timeline \
--timeline-js=$HOME/pack/simile-timeline/src/webapp/api/timeline-api.js \
./commit-timeline -d -o ~/tmp/timeline --timezone=-5 \
~/dam/research/software/{hedge,pyrticle,codepy,pycuda,pymbolic,pytools,boostmpi,experiments,meshpy,pylo,pymetis,pyopencl,pyublas}
scp -r ~/tmp/timeline/* tiker.net:public_html/git/commit-timeline


#--timeline-js=$HOME/pack/simile-timeline/src/webapp/api/timeline-api.js \

0 comments on commit 8962a1e

Please sign in to comment.