write_down 0.0.3 → 0.0.5

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.
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,154 @@
1
+ # Contributing to HTML5 Boilerplate
2
+
3
+ ♥ [HTML5 Boilerplate](http://html5boilerplate.com) and want to get involved?
4
+ Thanks! There are plenty of ways you can help!
5
+
6
+ Please take a moment to review this document in order to make the contribution
7
+ process easy and effective for everyone involved.
8
+
9
+ Following these guidelines helps to communicate that you respect the time of
10
+ the developers managing and developing this open source project. In return,
11
+ they should reciprocate that respect in addressing your issue or assessing
12
+ patches and features.
13
+
14
+
15
+ ## Using the issue tracker
16
+
17
+ The [issue tracker](https://github.com/h5bp/html5-boilerplate/issues) is
18
+ the preferred channel for [bug reports](#bugs), [features requests](#features)
19
+ and [submitting pull requests](#pull-requests), but please respect the following
20
+ restrictions:
21
+
22
+ * Please **do not** use the issue tracker for personal support requests (use
23
+ [Stack Overflow](http://stackoverflow.com/questions/tagged/html5boilerplate)
24
+ or IRC).
25
+
26
+ * Please **do not** derail or troll issues. Keep the discussion on topic and
27
+ respect the opinions of others.
28
+
29
+ * Please **do not** open issues or pull requests regarding the code in
30
+ [`.htaccess`](https://github.com/h5bp/server-configs-apache),
31
+ [`jQuery`](https://github.com/jquery/jquery/),
32
+ [`Modernizr`](https://github.com/Modernizr/Modernizr) or
33
+ [`Normalize.css`](https://github.com/necolas/normalize.css) (open them in
34
+ their respective repositories).
35
+
36
+
37
+ <a name="bugs"></a>
38
+ ## Bug reports
39
+
40
+ A bug is a _demonstrable problem_ that is caused by the code in the repository.
41
+ Good bug reports are extremely helpful - thank you!
42
+
43
+ Guidelines for bug reports:
44
+
45
+ 1. **Use the GitHub issue search** &mdash; check if the issue has already been
46
+ reported.
47
+
48
+ 2. **Check if the issue has been fixed** &mdash; try to reproduce it using the
49
+ latest `master` or development branch in the repository.
50
+
51
+ 3. **Isolate the problem** &mdash; ideally create a [reduced test
52
+ case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.
53
+
54
+ A good bug report shouldn't leave others needing to chase you up for more
55
+ information. Please try to be as detailed as possible in your report. What is
56
+ your environment? What steps will reproduce the issue? What browser(s) and OS
57
+ experience the problem? What would you expect to be the outcome? All these
58
+ details will help people to fix any potential bugs.
59
+
60
+ Example:
61
+
62
+ > Short and descriptive example bug report title
63
+ >
64
+ > A summary of the issue and the browser/OS environment in which it occurs. If
65
+ > suitable, include the steps required to reproduce the bug.
66
+ >
67
+ > 1. This is the first step
68
+ > 2. This is the second step
69
+ > 3. Further steps, etc.
70
+ >
71
+ > `<url>` - a link to the reduced test case
72
+ >
73
+ > Any other information you want to share that is relevant to the issue being
74
+ > reported. This might include the lines of code that you have identified as
75
+ > causing the bug, and potential solutions (and your opinions on their
76
+ > merits).
77
+
78
+
79
+ <a name="features"></a>
80
+ ## Feature requests
81
+
82
+ Feature requests are welcome. But take a moment to find out whether your idea
83
+ fits with the scope and aims of the project. It's up to *you* to make a strong
84
+ case to convince the project's developers of the merits of this feature. Please
85
+ provide as much detail and context as possible.
86
+
87
+
88
+ <a name="pull-requests"></a>
89
+ ## Pull requests
90
+
91
+ Good pull requests - patches, improvements, new features - are a fantastic
92
+ help. They should remain focused in scope and avoid containing unrelated
93
+ commits.
94
+
95
+ **Please ask first** before embarking on any significant pull request (e.g.
96
+ implementing features, refactoring code, porting to a different language),
97
+ otherwise you risk spending a lot of time working on something that the
98
+ project's developers might not want to merge into the project.
99
+
100
+ Please adhere to the coding conventions used throughout a project (indentation,
101
+ accurate comments, etc.) and any other requirements (such as test coverage).
102
+
103
+ Adhering to the following this process is the best way to get your work
104
+ included in the project:
105
+
106
+ 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
107
+ and configure the remotes:
108
+
109
+ ```bash
110
+ # Clone your fork of the repo into the current directory
111
+ git clone https://github.com/<your-username>/html5-boilerplate.git
112
+ # Navigate to the newly cloned directory
113
+ cd html5-boilerplate
114
+ # Assign the original repo to a remote called "upstream"
115
+ git remote add upstream https://github.com/h5bp/html5-boilerplate.git
116
+ ```
117
+
118
+ 2. If you cloned a while ago, get the latest changes from upstream:
119
+
120
+ ```bash
121
+ git checkout master
122
+ git pull upstream master
123
+ ```
124
+
125
+ 3. Create a new topic branch (off the main project development branch) to
126
+ contain your feature, change, or fix:
127
+
128
+ ```bash
129
+ git checkout -b <topic-branch-name>
130
+ ```
131
+
132
+ 4. Commit your changes in logical chunks. Please adhere to these [git commit
133
+ message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
134
+ or your code is unlikely be merged into the main project. Use Git's
135
+ [interactive rebase](https://help.github.com/articles/interactive-rebase)
136
+ feature to tidy up your commits before making them public.
137
+
138
+ 5. Locally merge (or rebase) the upstream development branch into your topic branch:
139
+
140
+ ```bash
141
+ git pull [--rebase] upstream master
142
+ ```
143
+
144
+ 6. Push your topic branch up to your fork:
145
+
146
+ ```bash
147
+ git push origin <topic-branch-name>
148
+ ```
149
+
150
+ 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
151
+ with a clear title and description.
152
+
153
+ **IMPORTANT**: By submitting a patch, you agree to allow the project owners to
154
+ license your work under the the terms of the [MIT License](LICENSE.md).
@@ -0,0 +1,19 @@
1
+ Copyright (c) HTML5 Boilerplate
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ How to learn emacs 中文版
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3
+ <cross-domain-policy>
4
+ <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
5
+
6
+ <!-- Most restrictive policy: -->
7
+ <site-control permitted-cross-domain-policies="none"/>
8
+
9
+ <!-- Least restrictive policy: -->
10
+ <!--
11
+ <site-control permitted-cross-domain-policies="all"/>
12
+ <allow-access-from domain="*" to-ports="*" secure="false"/>
13
+ <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
14
+ -->
15
+ </cross-domain-policy>
@@ -0,0 +1,18 @@
1
+ header,
2
+ footer,
3
+ main {
4
+ margin: 0 auto;
5
+ width: 90%;
6
+ overflow: hidden;
7
+ }
8
+
9
+ nav {
10
+ float: left;
11
+ width: 30%;
12
+ }
13
+
14
+ article {
15
+ /*background: red; */
16
+ float: right;
17
+ width: 70%;
18
+ }
@@ -0,0 +1,304 @@
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
+ }