write_down 0.0.3 → 0.0.5

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