forked from nicoespeon/gitgraph.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment-plan.html
More file actions
60 lines (56 loc) · 1.46 KB
/
deployment-plan.html
File metadata and controls
60 lines (56 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GitGraph.js example page</title>
<link rel="stylesheet" type="text/css" href="../src/gitgraph.css" />
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<table>
<tr>
<td>
<canvas id="gitGraph"></canvas>
</td>
<td>
<pre style="float: right;">
It really looks like:
1
|\
2 3
| |\
4 5 6
| |/
7 8
|/
9
</pre>
</td>
</tr>
</table>
<pre>
This is a sample of rendering a plan with nested parallelism where the max parallel tasks is only 3.
This rendering is based on git revision history and is using a Javascript library called Gitgraph.js.
Things I would change that are not supported: (already modified)
x - The white circles are merges which we ideally don't want to show. The arrow should flow into the task after the white circle.
x - We want to be able to flow out and in to a circle with many lines.
What might be difficult:
- Arbitrary dependencies (we'd have to do crazy lines)
- Large parallelization of tasks will take up horizontal space
</pre>
<br/>
<br/>
<br/>
<canvas id="gitGraph2"></canvas>
<pre>
1 task, then 4 parallel, then joining into another task
</pre>
<script src="../src/gitgraph.js"></script>
<script src="deployment-plan.js"></script>
</body>
</html>