write_down 0.0.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -21
  3. data/.travis.yml +4 -0
  4. data/Gemfile +1 -1
  5. data/LICENSE.txt +17 -18
  6. data/README.md +20 -8
  7. data/Rakefile +9 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +7 -0
  10. data/exe/write_down +3 -0
  11. data/lib/write_down/converter/base.rb +18 -0
  12. data/lib/write_down/converter/markdown.rb +18 -0
  13. data/lib/write_down/converter/org.rb +18 -0
  14. data/lib/write_down/erb/container.erb +19 -0
  15. data/lib/write_down/erb/essay.erb +5 -0
  16. data/lib/write_down/erb/layout.erb +64 -0
  17. data/lib/write_down/erb/page.erb +4 -0
  18. data/lib/write_down/erb/post.erb +5 -0
  19. data/lib/write_down/erb/slide.erb +79 -0
  20. data/lib/write_down/model/asset.rb +36 -0
  21. data/lib/write_down/model/base.rb +63 -0
  22. data/lib/write_down/model/container.rb +35 -0
  23. data/lib/write_down/model/essay.rb +35 -0
  24. data/lib/write_down/model/layout.rb +75 -0
  25. data/lib/write_down/model/page.rb +47 -0
  26. data/lib/write_down/model/post.rb +47 -0
  27. data/lib/write_down/model/slide.rb +27 -0
  28. data/lib/write_down/utils/qiniu_sync.rb +23 -0
  29. data/lib/write_down/version.rb +1 -1
  30. data/lib/write_down.rb +13 -33
  31. data/write_down.gemspec +23 -12
  32. metadata +54 -91
  33. data/bin/write_down +0 -43
  34. data/lib/write_down/article.rb +0 -64
  35. data/lib/write_down/configuration.rb +0 -6
  36. data/lib/write_down/converter.rb +0 -8
  37. data/lib/write_down/page.rb +0 -6
  38. data/lib/write_down/series.rb +0 -10
  39. data/lib/write_down/site.rb +0 -10
  40. data/lib/write_down/template.rb +0 -20
  41. data/template/emacs/404.html +0 -157
  42. data/template/emacs/CHANGELOG.md +0 -133
  43. data/template/emacs/CONTRIBUTING.md +0 -154
  44. data/template/emacs/LICENSE.md +0 -19
  45. data/template/emacs/README.md +0 -1
  46. data/template/emacs/apple-touch-icon-precomposed.png +0 -0
  47. data/template/emacs/crossdomain.xml +0 -15
  48. data/template/emacs/css/custom.css +0 -18
  49. data/template/emacs/css/main.css +0 -304
  50. data/template/emacs/css/normalize.css +0 -527
  51. data/template/emacs/favicon.ico +0 -0
  52. data/template/emacs/humans.txt +0 -15
  53. data/template/emacs/img/.gitignore +0 -0
  54. data/template/emacs/index.html +0 -62
  55. data/template/emacs/js/main.js +0 -1
  56. data/template/emacs/js/plugins.js +0 -24
  57. data/template/emacs/js/vendor/jquery-1.10.2.min.js +0 -6
  58. data/template/emacs/js/vendor/modernizr-2.6.2.min.js +0 -4
  59. data/template/emacs/post.html +0 -80
  60. data/template/emacs/robots.txt +0 -3
  61. data/template/simple/404.html +0 -157
  62. data/template/simple/CNAME +0 -1
  63. data/template/simple/README.md +0 -1
  64. data/template/simple/_disqus.mustache +0 -19
  65. data/template/simple/_footer.mustache +0 -28
  66. data/template/simple/_header.mustache +0 -38
  67. data/template/simple/apple-touch-icon-precomposed.png +0 -0
  68. data/template/simple/crossdomain.xml +0 -15
  69. data/template/simple/css/layout.css +0 -72
  70. data/template/simple/css/main.css +0 -304
  71. data/template/simple/css/normalize.css +0 -527
  72. data/template/simple/favicon.ico +0 -0
  73. data/template/simple/humans.txt +0 -15
  74. data/template/simple/img/.gitignore +0 -0
  75. data/template/simple/index.html +0 -12
  76. data/template/simple/js/main.js +0 -1
  77. data/template/simple/js/plugins.js +0 -24
  78. data/template/simple/js/vendor/jquery-1.10.2.min.js +0 -6
  79. data/template/simple/js/vendor/modernizr-2.6.2.min.js +0 -4
  80. data/template/simple/post.html +0 -9
  81. data/template/simple/robots.txt +0 -3
  82. data/theme/ghost/assets/css/screen.css +0 -911
  83. data/theme/ghost/index.html +0 -75
  84. data/theme/ghost/post.html +0 -112
  85. data/theme/html5-boilerplate/.gitattributes +0 -1
  86. data/theme/html5-boilerplate/.gitignore +0 -2
  87. data/theme/html5-boilerplate/.htaccess +0 -551
  88. data/theme/html5-boilerplate/404.html +0 -157
  89. data/theme/html5-boilerplate/CHANGELOG.md +0 -133
  90. data/theme/html5-boilerplate/CONTRIBUTING.md +0 -154
  91. data/theme/html5-boilerplate/LICENSE.md +0 -19
  92. data/theme/html5-boilerplate/README.md +0 -61
  93. data/theme/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
  94. data/theme/html5-boilerplate/crossdomain.xml +0 -15
  95. data/theme/html5-boilerplate/css/main.css +0 -297
  96. data/theme/html5-boilerplate/css/normalize.css +0 -527
  97. data/theme/html5-boilerplate/favicon.ico +0 -0
  98. data/theme/html5-boilerplate/humans.txt +0 -15
  99. data/theme/html5-boilerplate/img/.gitignore +0 -0
  100. data/theme/html5-boilerplate/index.html +0 -91
  101. data/theme/html5-boilerplate/js/main.js +0 -1
  102. data/theme/html5-boilerplate/js/plugins.js +0 -24
  103. data/theme/html5-boilerplate/js/vendor/jquery-1.10.2.min.js +0 -6
  104. data/theme/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js +0 -4
  105. data/theme/html5-boilerplate/post.html +0 -70
  106. data/theme/html5-boilerplate/robots.txt +0 -3
@@ -1,304 +0,0 @@
1
- /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
2
-
3
- /*
4
- * What follows is the result of much research on cross-browser styling.
5
- * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
6
- * Kroc Camen, and the H5BP dev community and team.
7
- */
8
-
9
- /* ==========================================================================
10
- Base styles: opinionated defaults
11
- ========================================================================== */
12
-
13
- html,
14
- button,
15
- input,
16
- select,
17
- textarea {
18
- color: #222;
19
- }
20
-
21
- html {
22
- font-size: 1em;
23
- line-height: 1.4;
24
- }
25
-
26
- /*
27
- * Remove text-shadow in selection highlight: h5bp.com/i
28
- * These selection rule sets have to be separate.
29
- * Customize the background color to match your design.
30
- */
31
-
32
- ::-moz-selection {
33
- background: #b3d4fc;
34
- text-shadow: none;
35
- }
36
-
37
- ::selection {
38
- background: #b3d4fc;
39
- text-shadow: none;
40
- }
41
-
42
- /*
43
- * A better looking default horizontal rule
44
- */
45
-
46
- hr {
47
- display: block;
48
- height: 1px;
49
- border: 0;
50
- border-top: 1px solid #ccc;
51
- margin: 1em 0;
52
- padding: 0;
53
- }
54
-
55
- /*
56
- * Remove the gap between images, videos, audio and canvas and the bottom of
57
- * their containers: h5bp.com/i/440
58
- */
59
-
60
- audio,
61
- canvas,
62
- img,
63
- video {
64
- vertical-align: middle;
65
- }
66
-
67
- /*
68
- * Remove default fieldset styles.
69
- */
70
-
71
- fieldset {
72
- border: 0;
73
- margin: 0;
74
- padding: 0;
75
- }
76
-
77
- /*
78
- * Allow only vertical resizing of textareas.
79
- */
80
-
81
- textarea {
82
- resize: vertical;
83
- }
84
-
85
- /* ==========================================================================
86
- Browse Happy prompt
87
- ========================================================================== */
88
-
89
- .browsehappy {
90
- margin: 0.2em 0;
91
- background: #ccc;
92
- color: #000;
93
- padding: 0.2em 0;
94
- }
95
-
96
- /* ==========================================================================
97
- Author's custom styles
98
- ========================================================================== */
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
- /* ==========================================================================
117
- Helper classes
118
- ========================================================================== */
119
-
120
- /*
121
- * Image replacement
122
- */
123
-
124
- .ir {
125
- background-color: transparent;
126
- border: 0;
127
- overflow: hidden;
128
- /* IE 6/7 fallback */
129
- *text-indent: -9999px;
130
- }
131
-
132
- .ir:before {
133
- content: "";
134
- display: block;
135
- width: 0;
136
- height: 150%;
137
- }
138
-
139
- /*
140
- * Hide from both screenreaders and browsers: h5bp.com/u
141
- */
142
-
143
- .hidden {
144
- display: none !important;
145
- visibility: hidden;
146
- }
147
-
148
- /*
149
- * Hide only visually, but have it available for screenreaders: h5bp.com/v
150
- */
151
-
152
- .visuallyhidden {
153
- border: 0;
154
- clip: rect(0 0 0 0);
155
- height: 1px;
156
- margin: -1px;
157
- overflow: hidden;
158
- padding: 0;
159
- position: absolute;
160
- width: 1px;
161
- }
162
-
163
- /*
164
- * Extends the .visuallyhidden class to allow the element to be focusable
165
- * when navigated to via the keyboard: h5bp.com/p
166
- */
167
-
168
- .visuallyhidden.focusable:active,
169
- .visuallyhidden.focusable:focus {
170
- clip: auto;
171
- height: auto;
172
- margin: 0;
173
- overflow: visible;
174
- position: static;
175
- width: auto;
176
- }
177
-
178
- /*
179
- * Hide visually and from screenreaders, but maintain layout
180
- */
181
-
182
- .invisible {
183
- visibility: hidden;
184
- }
185
-
186
- /*
187
- * Clearfix: contain floats
188
- *
189
- * For modern browsers
190
- * 1. The space content is one way to avoid an Opera bug when the
191
- * `contenteditable` attribute is included anywhere else in the document.
192
- * Otherwise it causes space to appear at the top and bottom of elements
193
- * that receive the `clearfix` class.
194
- * 2. The use of `table` rather than `block` is only necessary if using
195
- * `:before` to contain the top-margins of child elements.
196
- */
197
-
198
- .clearfix:before,
199
- .clearfix:after {
200
- content: " "; /* 1 */
201
- display: table; /* 2 */
202
- }
203
-
204
- .clearfix:after {
205
- clear: both;
206
- }
207
-
208
- /*
209
- * For IE 6/7 only
210
- * Include this rule to trigger hasLayout and contain floats.
211
- */
212
-
213
- .clearfix {
214
- *zoom: 1;
215
- }
216
-
217
- /* ==========================================================================
218
- EXAMPLE Media Queries for Responsive Design.
219
- These examples override the primary ('mobile first') styles.
220
- Modify as content requires.
221
- ========================================================================== */
222
-
223
- @media only screen and (min-width: 35em) {
224
- /* Style adjustments for viewports that meet the condition */
225
- }
226
-
227
- @media print,
228
- (-o-min-device-pixel-ratio: 5/4),
229
- (-webkit-min-device-pixel-ratio: 1.25),
230
- (min-resolution: 120dpi) {
231
- /* Style adjustments for high resolution devices */
232
- }
233
-
234
- /* ==========================================================================
235
- Print styles.
236
- Inlined to avoid required HTTP connection: h5bp.com/r
237
- ========================================================================== */
238
-
239
- @media print {
240
- * {
241
- background: transparent !important;
242
- color: #000 !important; /* Black prints faster: h5bp.com/s */
243
- box-shadow: none !important;
244
- text-shadow: none !important;
245
- }
246
-
247
- a,
248
- a:visited {
249
- text-decoration: underline;
250
- }
251
-
252
- a[href]:after {
253
- content: " (" attr(href) ")";
254
- }
255
-
256
- abbr[title]:after {
257
- content: " (" attr(title) ")";
258
- }
259
-
260
- /*
261
- * Don't show links for images, or javascript/internal links
262
- */
263
-
264
- .ir a:after,
265
- a[href^="javascript:"]:after,
266
- a[href^="#"]:after {
267
- content: "";
268
- }
269
-
270
- pre,
271
- blockquote {
272
- border: 1px solid #999;
273
- page-break-inside: avoid;
274
- }
275
-
276
- thead {
277
- display: table-header-group; /* h5bp.com/t */
278
- }
279
-
280
- tr,
281
- img {
282
- page-break-inside: avoid;
283
- }
284
-
285
- img {
286
- max-width: 100% !important;
287
- }
288
-
289
- @page {
290
- margin: 0.5cm;
291
- }
292
-
293
- p,
294
- h2,
295
- h3 {
296
- orphans: 3;
297
- widows: 3;
298
- }
299
-
300
- h2,
301
- h3 {
302
- page-break-after: avoid;
303
- }
304
- }