timeline_setter 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +11 -2
- data/config/assets.yml +9 -0
- data/doc/doc.markdown +65 -17
- data/doc/templates.html +3 -0
- data/doc/timeline-setter.html +327 -238
- data/doc/timeline-setter.min.html +3 -0
- data/documentation/TimelineSetter/CLI.html +77 -52
- data/documentation/TimelineSetter/Parser.html +40 -39
- data/documentation/TimelineSetter/Timeline.html +132 -83
- data/documentation/TimelineSetter.html +27 -12
- data/documentation/_index.html +23 -12
- data/documentation/class_list.html +20 -9
- data/documentation/css/style.css +7 -5
- data/documentation/file.README.html +33 -23
- data/documentation/file_list.html +20 -9
- data/documentation/frames.html +1 -1
- data/documentation/index.html +33 -23
- data/documentation/js/app.js +16 -14
- data/documentation/js/full_list.js +7 -6
- data/documentation/js/jquery.js +3 -3
- data/documentation/method_list.html +42 -23
- data/documentation/top-level-namespace.html +26 -11
- data/index.html +100 -19
- data/lib/timeline_setter/cli.rb +2 -0
- data/lib/timeline_setter/timeline.rb +6 -3
- data/lib/timeline_setter/version.rb +1 -1
- data/lib/timeline_setter.rb +0 -7
- data/public/javascripts/templates/card.jst +21 -0
- data/public/javascripts/templates/notch.jst +1 -0
- data/public/javascripts/templates/series_legend.jst +3 -0
- data/public/javascripts/templates/timeline.jst +20 -0
- data/public/javascripts/templates/year_notch.jst +3 -0
- data/public/javascripts/templates.js +1 -0
- data/public/javascripts/timeline-setter.js +303 -167
- data/public/javascripts/timeline-setter.min.js +1 -0
- data/public/stylesheets/timeline-setter.css +5 -5
- data/spec/timeline_setter_spec.rb +2 -2
- data/templates/timeline-markup.erb +5 -59
- data/timeline_setter.gemspec +15 -5
- metadata +15 -5
@@ -3,16 +3,26 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
|
8
|
-
|
6
|
+
<title>
|
7
|
+
File: README
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
16
|
|
10
17
|
<script type="text/javascript" charset="utf-8">
|
11
18
|
relpath = '';
|
12
19
|
if (relpath != '') relpath += '/';
|
13
20
|
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="js/
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
16
26
|
|
17
27
|
</head>
|
18
28
|
<body>
|
@@ -31,39 +41,39 @@
|
|
31
41
|
</div>
|
32
42
|
|
33
43
|
<div id="search">
|
34
|
-
|
35
|
-
|
36
|
-
|
44
|
+
|
45
|
+
<a id="class_list_link" href="#">Class List</a>
|
46
|
+
|
47
|
+
<a id="method_list_link" href="#">Method List</a>
|
48
|
+
|
49
|
+
<a id="file_list_link" href="#">File List</a>
|
50
|
+
|
37
51
|
</div>
|
38
|
-
|
39
52
|
<div class="clear"></div>
|
40
53
|
</div>
|
41
54
|
|
42
55
|
<iframe id="search_frame"></iframe>
|
43
56
|
|
44
|
-
<div id="content"><div id='filecontents'
|
45
|
-
|
46
|
-
|
47
|
-
_______ ___ _____ __ __
|
57
|
+
<div id="content"><div id='filecontents'>=
|
58
|
+
'
|
59
|
+
_______ ___ _____ __ __
|
48
60
|
/_ __(_)___ ___ ___ / (_)___ ___ / ___/___ / /_/ /____ _____
|
49
61
|
/ / / / __ `__ \/ _ \/ / / __ \/ _ \\__ \/ _ \/ __/ __/ _ \/ ___/
|
50
|
-
/ / / / / / / / / __/ / / / / / __/__/ / __/ /_/ /_/ __/ /
|
51
|
-
/_/ /_/_/ /_/ /_/\___/_/_/_/ /_/\___/____/\___/\__/\__/\___/_/
|
52
|
-
|
62
|
+
/ / / / / / / / / __/ / / / / / __/__/ / __/ /_/ /_/ __/ /
|
63
|
+
/_/ /_/_/ /_/ /_/\___/_/_/_/ /_/\___/____/\___/\__/\__/\___/_/
|
64
|
+
|
53
65
|
TimelineSetter is a tool to create HTML timelines from spreadsheets of events.
|
54
|
-
|
66
|
+
|
55
67
|
For usage and installation instructions, see:
|
56
68
|
http://propublica.github.com/timeline-setter/
|
57
|
-
|
69
|
+
|
58
70
|
To report a bug or suggest a feature:
|
59
|
-
http://github.com/propublica/timeline-setter/issues
|
60
|
-
</span></pre>
|
61
|
-
</div></div>
|
71
|
+
http://github.com/propublica/timeline-setter/issues</div></div>
|
62
72
|
|
63
73
|
<div id="footer">
|
64
|
-
Generated on
|
74
|
+
Generated on Wed Nov 2 15:20:07 2011 by
|
65
75
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
66
|
-
0.
|
76
|
+
0.7.2 (ruby-1.8.7).
|
67
77
|
</div>
|
68
78
|
|
69
79
|
</body>
|
@@ -2,11 +2,19 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
10
18
|
<base id="base_target" target="_parent" />
|
11
19
|
</head>
|
12
20
|
<body>
|
@@ -19,9 +27,13 @@
|
|
19
27
|
<div id="content">
|
20
28
|
<h1 id="full_list_header">File List</h1>
|
21
29
|
<div id="nav">
|
22
|
-
|
23
|
-
|
24
|
-
|
30
|
+
|
31
|
+
<a target="_self" href="class_list.html">Classes</a>
|
32
|
+
|
33
|
+
<a target="_self" href="method_list.html">Methods</a>
|
34
|
+
|
35
|
+
<a target="_self" href="file_list.html">Files</a>
|
36
|
+
|
25
37
|
</div>
|
26
38
|
<div id="search">Search: <input type="text" /></div>
|
27
39
|
|
@@ -35,4 +47,3 @@
|
|
35
47
|
</div>
|
36
48
|
</body>
|
37
49
|
</html>
|
38
|
-
|
data/documentation/frames.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
-
<title>Documentation by YARD 0.
|
7
|
+
<title>Documentation by YARD 0.7.2</title>
|
8
8
|
</head>
|
9
9
|
<frameset cols="20%,*">
|
10
10
|
<frame name="list" src="class_list.html" />
|
data/documentation/index.html
CHANGED
@@ -3,16 +3,26 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
|
8
|
-
|
6
|
+
<title>
|
7
|
+
File: README
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
16
|
|
10
17
|
<script type="text/javascript" charset="utf-8">
|
11
18
|
relpath = '';
|
12
19
|
if (relpath != '') relpath += '/';
|
13
20
|
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="js/
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
16
26
|
|
17
27
|
</head>
|
18
28
|
<body>
|
@@ -31,39 +41,39 @@
|
|
31
41
|
</div>
|
32
42
|
|
33
43
|
<div id="search">
|
34
|
-
|
35
|
-
|
36
|
-
|
44
|
+
|
45
|
+
<a id="class_list_link" href="#">Class List</a>
|
46
|
+
|
47
|
+
<a id="method_list_link" href="#">Method List</a>
|
48
|
+
|
49
|
+
<a id="file_list_link" href="#">File List</a>
|
50
|
+
|
37
51
|
</div>
|
38
|
-
|
39
52
|
<div class="clear"></div>
|
40
53
|
</div>
|
41
54
|
|
42
55
|
<iframe id="search_frame"></iframe>
|
43
56
|
|
44
|
-
<div id="content"><div id='filecontents'
|
45
|
-
|
46
|
-
|
47
|
-
_______ ___ _____ __ __
|
57
|
+
<div id="content"><div id='filecontents'>=
|
58
|
+
'
|
59
|
+
_______ ___ _____ __ __
|
48
60
|
/_ __(_)___ ___ ___ / (_)___ ___ / ___/___ / /_/ /____ _____
|
49
61
|
/ / / / __ `__ \/ _ \/ / / __ \/ _ \\__ \/ _ \/ __/ __/ _ \/ ___/
|
50
|
-
/ / / / / / / / / __/ / / / / / __/__/ / __/ /_/ /_/ __/ /
|
51
|
-
/_/ /_/_/ /_/ /_/\___/_/_/_/ /_/\___/____/\___/\__/\__/\___/_/
|
52
|
-
|
62
|
+
/ / / / / / / / / __/ / / / / / __/__/ / __/ /_/ /_/ __/ /
|
63
|
+
/_/ /_/_/ /_/ /_/\___/_/_/_/ /_/\___/____/\___/\__/\__/\___/_/
|
64
|
+
|
53
65
|
TimelineSetter is a tool to create HTML timelines from spreadsheets of events.
|
54
|
-
|
66
|
+
|
55
67
|
For usage and installation instructions, see:
|
56
68
|
http://propublica.github.com/timeline-setter/
|
57
|
-
|
69
|
+
|
58
70
|
To report a bug or suggest a feature:
|
59
|
-
http://github.com/propublica/timeline-setter/issues
|
60
|
-
</span></pre>
|
61
|
-
</div></div>
|
71
|
+
http://github.com/propublica/timeline-setter/issues</div></div>
|
62
72
|
|
63
73
|
<div id="footer">
|
64
|
-
Generated on
|
74
|
+
Generated on Wed Nov 2 15:20:07 2011 by
|
65
75
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
66
|
-
0.
|
76
|
+
0.7.2 (ruby-1.8.7).
|
67
77
|
</div>
|
68
78
|
|
69
79
|
</body>
|
data/documentation/js/app.js
CHANGED
@@ -23,7 +23,7 @@ function createDefineLinks() {
|
|
23
23
|
function() {
|
24
24
|
$(this).prev().hide();
|
25
25
|
$(this).parent().prev().height(tHeight);
|
26
|
-
$(this).text("more...")
|
26
|
+
$(this).text("more...");
|
27
27
|
});
|
28
28
|
}
|
29
29
|
|
@@ -38,7 +38,7 @@ function createFullTreeLinks() {
|
|
38
38
|
function() {
|
39
39
|
$(this).parent().toggleClass('showAll');
|
40
40
|
$(this).parent().prev().height(tHeight);
|
41
|
-
$(this).text("show all")
|
41
|
+
$(this).text("show all");
|
42
42
|
});
|
43
43
|
}
|
44
44
|
|
@@ -93,13 +93,14 @@ function keyboardShortcuts() {
|
|
93
93
|
if (window.top.frames.main) return;
|
94
94
|
$(document).keypress(function(evt) {
|
95
95
|
if (evt.altKey || evt.ctrlKey || evt.metaKey || evt.shiftKey) return;
|
96
|
-
if (typeof evt.
|
97
|
-
(evt.
|
98
|
-
evt.
|
96
|
+
if (typeof evt.target !== "undefined" &&
|
97
|
+
(evt.target.nodeName == "INPUT" ||
|
98
|
+
evt.target.nodeName == "TEXTAREA")) return;
|
99
99
|
switch (evt.charCode) {
|
100
100
|
case 67: case 99: $('#class_list_link').click(); break; // 'c'
|
101
101
|
case 77: case 109: $('#method_list_link').click(); break; // 'm'
|
102
102
|
case 70: case 102: $('#file_list_link').click(); break; // 'f'
|
103
|
+
default: break;
|
103
104
|
}
|
104
105
|
});
|
105
106
|
}
|
@@ -139,31 +140,32 @@ function fixOutsideWorldLinks() {
|
|
139
140
|
}
|
140
141
|
|
141
142
|
function generateTOC() {
|
142
|
-
if ($('#filecontents').length
|
143
|
+
if ($('#filecontents').length === 0) return;
|
143
144
|
var _toc = $('<ol class="top"></ol>');
|
144
145
|
var show = false;
|
145
146
|
var toc = _toc;
|
146
147
|
var counter = 0;
|
147
148
|
var tags = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
149
|
+
var i;
|
148
150
|
if ($('#filecontents h1').length > 1) tags.unshift('h1');
|
149
|
-
for (i
|
150
|
-
var lastTag = parseInt(tags[0][1]);
|
151
|
+
for (i = 0; i < tags.length; i++) { tags[i] = '#filecontents ' + tags[i]; }
|
152
|
+
var lastTag = parseInt(tags[0][1], 10);
|
151
153
|
$(tags.join(', ')).each(function() {
|
152
154
|
if (this.id == "filecontents") return;
|
153
155
|
show = true;
|
154
|
-
var thisTag = parseInt(this.tagName[1]);
|
155
|
-
if (this.id.length
|
156
|
+
var thisTag = parseInt(this.tagName[1], 10);
|
157
|
+
if (this.id.length === 0) {
|
156
158
|
var proposedId = $(this).text().replace(/[^a-z0-9-]/ig, '_');
|
157
|
-
if ($('#' + proposedId).length > 0) proposedId += counter++;
|
159
|
+
if ($('#' + proposedId).length > 0) { proposedId += counter; counter++; }
|
158
160
|
this.id = proposedId;
|
159
161
|
}
|
160
162
|
if (thisTag > lastTag) {
|
161
|
-
for (
|
163
|
+
for (i = 0; i < thisTag - lastTag; i++) {
|
162
164
|
var tmp = $('<ol/>'); toc.append(tmp); toc = tmp;
|
163
165
|
}
|
164
166
|
}
|
165
167
|
if (thisTag < lastTag) {
|
166
|
-
for (
|
168
|
+
for (i = 0; i < lastTag - thisTag; i++) toc = toc.parent();
|
167
169
|
}
|
168
170
|
toc.append('<li><a href="#' + this.id + '">' + $(this).text() + '</a></li>');
|
169
171
|
lastTag = thisTag;
|
@@ -185,7 +187,7 @@ function generateTOC() {
|
|
185
187
|
$(this).text('float');
|
186
188
|
$('#toc').toggleClass('nofloat');
|
187
189
|
}, function() {
|
188
|
-
$(this).text('left')
|
190
|
+
$(this).text('left');
|
189
191
|
$('#toc').toggleClass('nofloat');
|
190
192
|
});
|
191
193
|
}
|
@@ -13,7 +13,7 @@ function fullListSearch() {
|
|
13
13
|
|
14
14
|
$('#search input').keyup(function() {
|
15
15
|
searchString = this.value.toLowerCase();
|
16
|
-
if (searchString
|
16
|
+
if (searchString === "") {
|
17
17
|
clearTimeout(inSearch);
|
18
18
|
inSearch = null;
|
19
19
|
$('#full_list, #content').removeClass('insearch');
|
@@ -40,7 +40,7 @@ function fullListSearch() {
|
|
40
40
|
});
|
41
41
|
|
42
42
|
$('#search input').focus();
|
43
|
-
$('#full_list').after("<div id='noresults'></div>")
|
43
|
+
$('#full_list').after("<div id='noresults'></div>");
|
44
44
|
}
|
45
45
|
|
46
46
|
var lastRowClass = '';
|
@@ -59,8 +59,9 @@ function searchItem() {
|
|
59
59
|
'<strong>$1</strong>'));
|
60
60
|
}
|
61
61
|
|
62
|
-
if (searchCache.length
|
63
|
-
|
62
|
+
if (searchCache.length === searchIndex + 1) {
|
63
|
+
searchDone();
|
64
|
+
return;
|
64
65
|
}
|
65
66
|
else {
|
66
67
|
searchIndex++;
|
@@ -71,7 +72,7 @@ function searchItem() {
|
|
71
72
|
|
72
73
|
function searchDone() {
|
73
74
|
highlight(true);
|
74
|
-
if ($('#full_list li:visible').size()
|
75
|
+
if ($('#full_list li:visible').size() === 0) {
|
75
76
|
$('#noresults').text('No results were found.').hide().fadeIn();
|
76
77
|
}
|
77
78
|
else {
|
@@ -137,7 +138,7 @@ function escapeShortcut() {
|
|
137
138
|
$(document).keydown(function(evt) {
|
138
139
|
if (evt.which == 27) {
|
139
140
|
$('#search_frame', window.top.document).slideUp(100);
|
140
|
-
$('#search a', window.top.document).removeClass('active inactive')
|
141
|
+
$('#search a', window.top.document).removeClass('active inactive');
|
141
142
|
$(window.top).focus();
|
142
143
|
}
|
143
144
|
});
|