mdoc 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.rubocop.yml +2 -0
- data/README.md +134 -47
- data/bin/mdoc +11 -32
- data/lib/mdoc/document/kramdown.rb +25 -0
- data/lib/mdoc/document.rb +87 -0
- data/lib/mdoc/meta.rb +14 -0
- data/lib/mdoc/options.rb +104 -0
- data/lib/mdoc/pipeline.rb +59 -0
- data/lib/mdoc/processor/add_title.rb +15 -0
- data/lib/mdoc/processor/add_toc.rb +11 -0
- data/lib/mdoc/processor/smart_code_block.rb +37 -0
- data/lib/mdoc/processor.rb +21 -0
- data/lib/mdoc/version.rb +3 -4
- data/lib/mdoc/writer.rb +18 -0
- data/lib/mdoc.rb +143 -2
- data/mdoc.gemspec +19 -19
- data/spec/add_title_spec.rb +10 -0
- data/spec/add_toc_spec.rb +12 -0
- data/spec/document_spec.rb +34 -0
- data/spec/execute_spec.rb +12 -0
- data/spec/find_doc_type_spec.rb +14 -0
- data/spec/fixtures/README.md +135 -0
- data/spec/fixtures/config/mdoc_a.cnf +1 -0
- data/spec/fixtures/config/mdoc_b.cnf +1 -0
- data/spec/fixtures/executes/a +0 -0
- data/spec/fixtures/executes/b +0 -0
- data/spec/fixtures/executes/c +0 -0
- data/spec/fixtures/general.txt +10 -0
- data/spec/fixtures/multikeys.html +18 -0
- data/{examples → spec/fixtures}/multikeys.md +10 -8
- data/{examples → spec/fixtures}/original.md +10 -10
- data/{examples → spec/fixtures}/pandoc.md +7 -7
- data/spec/fixtures/process.test.md +11 -0
- data/spec/fixtures/templates/default.html.erb +0 -0
- data/spec/fixtures/templates/pandoc.html.erb +0 -0
- data/spec/get_class_spec.rb +35 -0
- data/spec/kramdown_spec.rb +10 -0
- data/spec/meta_spec.rb +6 -0
- data/spec/options_spec.rb +66 -0
- data/spec/pipeline_spec.rb +95 -0
- data/spec/smart_code_block_spec.rb +10 -0
- data/spec/spec_helper.rb +40 -7
- data/spec/tpl_out_spec.rb +19 -0
- data/templates/default.html.erb +17 -0
- metadata +63 -25
- data/ROADMAP +0 -24
- data/config/members.yml +0 -16
- data/docs/css/jsgantt.css +0 -53
- data/docs/gantt.html +0 -237
- data/docs/js/jsgantt.js +0 -1681
- data/lib/mdoc/convert.rb +0 -92
- data/lib/mdoc/parser.rb +0 -80
- data/spec/parser_spec.rb +0 -32
data/docs/gantt.html
DELETED
@@ -1,237 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
5
|
-
<link rel="stylesheet" type="text/css" href="./css/jsgantt.css" />
|
6
|
-
<script language="javascript" src="./js/jsgantt.js"></script>
|
7
|
-
<title>Gantt Chart | Markdown Document Converting Tools</title>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h2>Markdown Document Converting Tools
|
11
|
-
|
12
|
-
</h2>
|
13
|
-
|
14
|
-
<div style="position:relative" class="gantt" id="GanttChartDIV"></div>
|
15
|
-
<script>
|
16
|
-
var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'day');
|
17
|
-
g.setShowRes(1); // Show/Hide Responsible (0/1)
|
18
|
-
g.setShowDur(1); // Show/Hide Duration (0/1)
|
19
|
-
g.setShowComp(0); //
|
20
|
-
g.setCaptionType('Caption'); // Set to Show Caption
|
21
|
-
g.setShowStartDate(0); // Show/Hide Start Date(0/1)
|
22
|
-
g.setShowEndDate(0); // Show/Hide End Date(0/1)
|
23
|
-
//g.setDateDisplayFormat('yyyy-mm-dd') // Set format to display dates ('mm/dd/yyyy', 'dd/mm/yyyy', 'yyyy-mm-dd')
|
24
|
-
g.setFormatArr("day","week","month") // Set format options (up to 4 : "minute","hour","day","week","month","quarter")
|
25
|
-
|
26
|
-
if( g ) {
|
27
|
-
g.AddTaskItem(new JSGantt.TaskItem(10,'design api document in readme','06/12/2013','06/12/2013','008000','',0,'黄巍',100,0,0,1,'','黄巍2013-06-12'));
|
28
|
-
|
29
|
-
g.AddTaskItem(new JSGantt.TaskItem(12,'write a document parser using yaml and kramdown','06/12/2013','06/12/2013','008000','',0,'黄巍',100,0,0,1,'','黄巍2013-06-12'));
|
30
|
-
|
31
|
-
g.AddTaskItem(new JSGantt.TaskItem(14,'write converters for varies format','06/12/2013','06/12/2013','FF0000','',0,'黄巍',0,1,0,1,'',''));
|
32
|
-
|
33
|
-
g.AddTaskItem(new JSGantt.TaskItem(15,'convert to docx with pandoc','06/12/2013','06/12/2013','008000','',0,'黄巍',100,0,14,1,'','黄巍2013-06-13'));
|
34
|
-
|
35
|
-
g.AddTaskItem(new JSGantt.TaskItem(16,'convert to html use document-up','06/12/2013','06/12/2013','008000','',0,'黄巍',100,0,14,1,'','黄巍2013-06-13'));
|
36
|
-
|
37
|
-
g.AddTaskItem(new JSGantt.TaskItem(17,'convert to pdf use xelatex','06/12/2013','06/12/2013','FF0000','',0,'黄巍',0,0,14,1,'','黄巍'));
|
38
|
-
|
39
|
-
g.AddTaskItem(new JSGantt.TaskItem(19,'a server that can receive html for review','06/12/2013','06/12/2013','FF0000','',0,'黄巍',50,0,0,1,'','黄巍:50\%'));
|
40
|
-
|
41
|
-
g.AddTaskItem(new JSGantt.TaskItem(21,'first public release','06/13/2013','06/13/2013','008000','',1,'黄巍',100,0,0,1,'','黄巍2013-06-13'));
|
42
|
-
|
43
|
-
g.AddTaskItem(new JSGantt.TaskItem(23,'updated version','06/13/2013','06/13/2013','FFA500','',1,'黄巍',0,1,0,1,'',''));
|
44
|
-
|
45
|
-
g.AddTaskItem(new JSGantt.TaskItem(24,'add epub3 support via pandoc','06/13/2013','06/13/2013','FFA500','',0,'黄巍',0,0,23,1,'','黄巍'));
|
46
|
-
|
47
|
-
g.Draw();
|
48
|
-
g.DrawDependencies();
|
49
|
-
}
|
50
|
-
else
|
51
|
-
{
|
52
|
-
alert("not defined");
|
53
|
-
}
|
54
|
-
</script>
|
55
|
-
|
56
|
-
|
57
|
-
<h3>Recent Git Log</h3>
|
58
|
-
<pre><code>
|
59
|
-
* <em style='color:grey'>041b1c2d26d8b9741d89fb74a44e0b22b82b32b2</em>
|
60
|
-
| <strong>2013-06-13 13:09</strong> By Huang Wei <huang@humentsoft.com>
|
61
|
-
| | <strong style='color:green'>use default encoding instead of utf-8</strong>
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* <em style='color:grey'>fdde3ad7af13c190a0924359f809297ed2634f8a</em>
|
65
|
-
|\ <strong>2013-06-13 11:36</strong> By Huang Wei <huang@humentsoft.com>
|
66
|
-
| | | | <strong style='color:green'>Merge branch 'develop'</strong>
|
67
|
-
| |
|
68
|
-
| |
|
69
|
-
| * <em style='color:grey'>7a01e81fb120b36de5fe09ab6cbf190c8d4531b7</em>
|
70
|
-
| | <strong>2013-06-13 11:36</strong> By Huang Wei <huang@humentsoft.com>
|
71
|
-
| | | | <strong style='color:green'>update progress of task release_v0.1.0 to 100</strong>
|
72
|
-
| |
|
73
|
-
| |
|
74
|
-
| * <em style='color:grey'>bdde406fc791056d68d8ba6724c78de02a3a87e0</em>
|
75
|
-
| | <strong>2013-06-13 11:33</strong> By Huang Wei <huang@humentsoft.com>
|
76
|
-
| | | | <strong style='color:green'>update progress of task release_v0.1.0 to 99</strong>
|
77
|
-
| |
|
78
|
-
| |
|
79
|
-
| * <em style='color:grey'>8953709e62836c4122530706e6027efb00eea636</em>
|
80
|
-
| | <strong>2013-06-13 11:33</strong> By Huang Wei <huang@humentsoft.com>
|
81
|
-
| | | | <strong style='color:green'>update progress of task release_v0.1.0 to 10</strong>
|
82
|
-
| |
|
83
|
-
| |
|
84
|
-
| * <em style='color:grey'>63d539bd33057223ddbdf85333a677e70ef2cf4c</em>
|
85
|
-
| | <strong>2013-06-13 10:21</strong> By Huang Wei <huang@humentsoft.com>
|
86
|
-
| | | | <strong style='color:green'>update progress of task server to 50</strong>
|
87
|
-
| |
|
88
|
-
| |
|
89
|
-
| * <em style='color:grey'>632872a5122d1403cc3a5e01c39c5ec299c1664d</em>
|
90
|
-
| | <strong>2013-06-13 10:04</strong> By Huang Wei <huang@humentsoft.com>
|
91
|
-
| | | | <strong style='color:green'>update progress of task server to 20</strong>
|
92
|
-
| |
|
93
|
-
| |
|
94
|
-
| * <em style='color:grey'>259f168a98ff33af2bf3b4b9bf0ba288d0212490</em>
|
95
|
-
| | <strong>2013-06-13 10:04</strong> By Huang Wei <huang@humentsoft.com>
|
96
|
-
| | | | <strong style='color:green'>update progress of task server to 10</strong>
|
97
|
-
| |
|
98
|
-
| |
|
99
|
-
| * <em style='color:grey'>011fe218159e33c261a5ad16a81ec7ad5ab591c0</em>
|
100
|
-
| | <strong>2013-06-13 10:03</strong> By Huang Wei <huang@humentsoft.com>
|
101
|
-
| | | | <strong style='color:green'>update progress of task docup to 100</strong>
|
102
|
-
| |
|
103
|
-
| |
|
104
|
-
| * <em style='color:grey'>27325d491f881ad7aa79cf6d698cdd95ea985f12</em>
|
105
|
-
| |\ <strong>2013-06-13 10:03</strong> By Huang Wei <huang@humentsoft.com>
|
106
|
-
| | | | | | <strong style='color:green'>Merge branch 'docup' into develop</strong>
|
107
|
-
| | |
|
108
|
-
| | |
|
109
|
-
| | * <em style='color:grey'>7bacfd6018bdf8c47815c08888da25d86d019824</em>
|
110
|
-
| |/ <strong>2013-06-13 10:03</strong> By Huang Wei <huang@humentsoft.com>
|
111
|
-
| | | | <strong style='color:green'>[close] close the branch by set progress to 100.</strong>
|
112
|
-
| |
|
113
|
-
| |
|
114
|
-
| * <em style='color:grey'>1ff39d99261eb0f9e3101c4ae14d48fec9934940</em>
|
115
|
-
| | <strong>2013-06-13 09:26</strong> By Huang Wei <huang@humentsoft.com>
|
116
|
-
| | | | <strong style='color:green'>update progress of task docup to 10</strong>
|
117
|
-
| |
|
118
|
-
| |
|
119
|
-
| * <em style='color:grey'>d08d988e79c74d6cd52c479512c42ef1010eb63c</em>
|
120
|
-
| | <strong>2013-06-12 17:40</strong> By Huang Wei <huangw@pe-po.com>
|
121
|
-
| | | | <strong style='color:green'>update progress of task docx to 100</strong>
|
122
|
-
| |
|
123
|
-
| |
|
124
|
-
| * <em style='color:grey'>660833a30d8ee2ad3c8ada83072d9ee099bfdaa7</em>
|
125
|
-
| |\ <strong>2013-06-12 17:40</strong> By Huang Wei <huangw@pe-po.com>
|
126
|
-
| | | | | | <strong style='color:green'>Merge branch 'docx' into develop</strong>
|
127
|
-
| | |
|
128
|
-
| | |
|
129
|
-
| | * <em style='color:grey'>851db1ef761ffbf8b8568811e392d8aa3e1248e1</em>
|
130
|
-
| |/ <strong>2013-06-12 17:40</strong> By Huang Wei <huangw@pe-po.com>
|
131
|
-
| | | | <strong style='color:green'>[close] close the branch by set progress to 100.</strong>
|
132
|
-
| |
|
133
|
-
| |
|
134
|
-
| * <em style='color:grey'>a96485aba4ccba1779d8ba30a395da7d2fef7a01</em>
|
135
|
-
| | <strong>2013-06-12 16:37</strong> By Huang Wei <huangw@pe-po.com>
|
136
|
-
| | | | <strong style='color:green'>update progress of task docx to 10</strong>
|
137
|
-
| |
|
138
|
-
| |
|
139
|
-
| * <em style='color:grey'>22f182e221d4c7ada28451a170952db80818f108</em>
|
140
|
-
| | <strong>2013-06-12 16:37</strong> By Huang Wei <huangw@pe-po.com>
|
141
|
-
| | | | <strong style='color:green'>update on develop</strong>
|
142
|
-
| |
|
143
|
-
| |
|
144
|
-
| * <em style='color:grey'>1e249e20e7e62b000372da46e8e7d99168a790d5</em>
|
145
|
-
| | <strong>2013-06-12 16:29</strong> By Huang Wei <huangw@pe-po.com>
|
146
|
-
| | | | <strong style='color:green'>update progress of task parser to 100</strong>
|
147
|
-
| |
|
148
|
-
| |
|
149
|
-
| * <em style='color:grey'>4433ff051851c837601808419da9b8628d61a0fe</em>
|
150
|
-
| |\ <strong>2013-06-12 16:29</strong> By Huang Wei <huangw@pe-po.com>
|
151
|
-
| | | | | | <strong style='color:green'>Merge branch 'parser' into develop</strong>
|
152
|
-
| | |
|
153
|
-
| | |
|
154
|
-
| | * <em style='color:grey'>4ebcddc1aacacf7960279529a0e226d02d18dea2</em>
|
155
|
-
| | | <strong>2013-06-12 16:29</strong> By Huang Wei <huangw@pe-po.com>
|
156
|
-
| | | | | | <strong style='color:green'>[close] close the branch by set progress to 100.</strong>
|
157
|
-
| | |
|
158
|
-
| | |
|
159
|
-
| | * <em style='color:grey'>c02f3faf055a953e837dcbb8c08d214929b69631</em>
|
160
|
-
| | | <strong>2013-06-12 11:28</strong> By Huang Wei <huangw@pe-po.com>
|
161
|
-
| | | | | | <strong style='color:green'>[progress] update progress to 35</strong>
|
162
|
-
| | |
|
163
|
-
| | |
|
164
|
-
| | * <em style='color:grey'>cb3c603e2c39f4a6380c4ff42627800223f1df9f</em>
|
165
|
-
| | |\ <strong>2013-06-12 11:25</strong> By Huang Wei <huangw@pe-po.com>
|
166
|
-
| | |/ | |/| <strong style='color:green'>Merge branch 'develop' into parser</strong>
|
167
|
-
| | |
|
168
|
-
| | |
|
169
|
-
| * | <em style='color:grey'>63bc917f67d17c3ffc4697d27bce1201ff837483</em>
|
170
|
-
| | | <strong>2013-06-12 11:25</strong> By Huang Wei <huangw@pe-po.com>
|
171
|
-
| | | | | | <strong style='color:green'>update progress of task parser to 35</strong>
|
172
|
-
| | |
|
173
|
-
| | |
|
174
|
-
| | * <em style='color:grey'>4654400daf726cdc5357da7a0228692088538b88</em>
|
175
|
-
| | | <strong>2013-06-12 11:25</strong> By Huang Wei <huangw@pe-po.com>
|
176
|
-
| | | | | | <strong style='color:green'>[progress] update progress to 35</strong>
|
177
|
-
| | |
|
178
|
-
| | |
|
179
|
-
| | * <em style='color:grey'>4d6ca5fe0cff693ec88e83c916c6939856c3f70e</em>
|
180
|
-
| | |\ <strong>2013-06-12 11:23</strong> By Huang Wei <huangw@pe-po.com>
|
181
|
-
| | |/ | |/| <strong style='color:green'>Merge branch 'develop' into parser</strong>
|
182
|
-
| | |
|
183
|
-
| | |
|
184
|
-
| * | <em style='color:grey'>3e04aeb3403c126d82a62bb2a20a72815080d8d8</em>
|
185
|
-
| | | <strong>2013-06-12 11:23</strong> By Huang Wei <huangw@pe-po.com>
|
186
|
-
| | | | | | <strong style='color:green'>update progress of task parser to 30</strong>
|
187
|
-
| | |
|
188
|
-
| | |
|
189
|
-
| | * <em style='color:grey'>f3985b809df19e4672fbe5a34d50d90697fd8e15</em>
|
190
|
-
| |/ <strong>2013-06-12 11:22</strong> By Huang Wei <huangw@pe-po.com>
|
191
|
-
| | | | <strong style='color:green'>[progress] update progress to 30</strong>
|
192
|
-
| |
|
193
|
-
| |
|
194
|
-
| * <em style='color:grey'>473e61be6bc015bfb5b3d7331d23bc4d407bb1b7</em>
|
195
|
-
| | <strong>2013-06-12 11:15</strong> By Huang Wei <huangw@pe-po.com>
|
196
|
-
| | | | <strong style='color:green'>update progress of task parser to 10</strong>
|
197
|
-
| |
|
198
|
-
| |
|
199
|
-
| * <em style='color:grey'>06c10ccac8c71c5c88646f5f930c5adf1ffdcb0b</em>
|
200
|
-
| | <strong>2013-06-12 11:14</strong> By Huang Wei <huangw@pe-po.com>
|
201
|
-
| | | | <strong style='color:green'>update progress of task design to 100</strong>
|
202
|
-
| |
|
203
|
-
| |
|
204
|
-
| * <em style='color:grey'>468f9f0ba196b75ccf91124979fead7810a67eab</em>
|
205
|
-
| |\ <strong>2013-06-12 11:14</strong> By Huang Wei <huangw@pe-po.com>
|
206
|
-
| | | | | | <strong style='color:green'>Merge branch 'design' into develop</strong>
|
207
|
-
| | |
|
208
|
-
| | |
|
209
|
-
| | * <em style='color:grey'>b556ca8e73f1f927ed183d22558c5d3674c37349</em>
|
210
|
-
| |/ <strong>2013-06-12 11:14</strong> By Huang Wei <huangw@pe-po.com>
|
211
|
-
| | | | <strong style='color:green'>update readme.</strong>
|
212
|
-
| |
|
213
|
-
| |
|
214
|
-
| * <em style='color:grey'>8c22bcbcec187cf475786ae21bed61935ff249aa</em>
|
215
|
-
| | <strong>2013-06-12 10:21</strong> By Huang Wei <huangw@pe-po.com>
|
216
|
-
| | | | <strong style='color:green'>update progress of task design to 10</strong>
|
217
|
-
| |
|
218
|
-
| |
|
219
|
-
| * <em style='color:grey'>ac3862ef63de5e594e76fa5675959cc6fab1b62a</em>
|
220
|
-
| | <strong>2013-06-12 10:20</strong> By Huang Wei <huangw@pe-po.com>
|
221
|
-
| | | | <strong style='color:green'>update Gantt chart</strong>
|
222
|
-
| |
|
223
|
-
| |
|
224
|
-
| * <em style='color:grey'>8bdb56db381fa801a56bad355add39c78d44f5c1</em>
|
225
|
-
|/ <strong>2013-06-12 10:15</strong> By Huang Wei <huangw@pe-po.com>
|
226
|
-
| | <strong style='color:green'>update Gantt chart</strong>
|
227
|
-
|
|
228
|
-
|
|
229
|
-
* <em style='color:grey'>831f9d5945f2be643d54fd6abe230a8ae6657aba</em>
|
230
|
-
<strong>2013-06-12 10:14</strong> By Huang Wei <huangw@pe-po.com>
|
231
|
-
<strong style='color:green'>add roadmap</strong>
|
232
|
-
|
233
|
-
|
234
|
-
</code></pre>
|
235
|
-
|
236
|
-
</body>
|
237
|
-
</html>
|