neruda 0.1.3 → 0.2.0
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.
- checksums.yaml +4 -4
- data/bin/pablo +32 -18
- data/lib/neruda/config.rb +59 -16
- data/lib/neruda/config/lisp_config.rb +125 -79
- data/lib/neruda/config/org-config.el +5 -4
- data/lib/neruda/config/ox-neruda.el +28 -2
- data/lib/neruda/emacs.rb +44 -0
- data/lib/neruda/index.rb +44 -35
- data/lib/neruda/index/atom_generator.rb +16 -16
- data/lib/neruda/index/org_generator.rb +64 -41
- data/lib/neruda/org_file.rb +46 -13
- data/lib/neruda/org_file/class_methods.rb +36 -19
- data/lib/neruda/org_file/extracter.rb +12 -1
- data/lib/neruda/org_file/htmlizer.rb +5 -30
- data/lib/neruda/preview.rb +7 -5
- data/lib/neruda/templater.rb +3 -2
- data/lib/neruda/utils.rb +65 -31
- data/lib/neruda/version.rb +2 -1
- data/lib/tasks/org.rake +30 -15
- data/lib/tasks/site.rake +22 -12
- data/lib/tasks/tags.rake +2 -6
- data/locales/en.yml +20 -1
- data/locales/fr.yml +20 -1
- data/themes/default/css/htmlize.css +346 -0
- data/themes/default/css/style.css +115 -178
- data/themes/default/img/bottom.png +0 -0
- data/themes/default/img/tic.png +0 -0
- data/themes/default/img/top.png +0 -0
- metadata +32 -29
- data/themes/default/fonts/Yanone_Kaffeesatz_400.woff +0 -0
- data/themes/default/fonts/Yanone_Kaffeesatz_400.woff2 +0 -0
@@ -1,216 +1,153 @@
|
|
1
|
-
/**
|
2
|
-
* This theme is a copy of the one of Pelican https://getpelican.com/
|
3
|
-
* Bellow is the original notice from pelican website, about the theme
|
4
|
-
* inspired by https://www.smashingmagazine.com/2009/08/designing-a-html-5-layout-from-scratch/
|
5
|
-
* As the original is under a MIT license, the following is also
|
6
|
-
* distributed under the same license.
|
7
|
-
*/
|
8
|
-
|
9
1
|
/*
|
10
|
-
Name: Smashing HTML5
|
11
|
-
Date: July 2009
|
12
|
-
Description: Sample layout for HTML5 and CSS3 goodness.
|
13
|
-
Version: 1.0
|
14
|
-
License: MIT <http://opensource.org/licenses/MIT>
|
15
|
-
Licensed by: Smashing Media GmbH <http://www.smashingmagazine.com/>
|
16
|
-
Original author: Enrique Ramírez <http://enrique-ramirez.com/>
|
17
|
-
*/
|
18
2
|
|
3
|
+
Version 2
|
4
|
+
Dernière modification: Milouse
|
19
5
|
|
20
|
-
@font-face {
|
21
|
-
font-family: 'Yanone Kaffeesatz';
|
22
|
-
font-style: normal;
|
23
|
-
font-weight: 400;
|
24
|
-
src:
|
25
|
-
local('Yanone Kaffeesatz Regular'),
|
26
|
-
local('YanoneKaffeesatz-Regular'),
|
27
|
-
/* from https://fonts.gstatic.com/s/yanonekaffeesatz/v8/YDAoLskQQ5MOAgvHUQCcLRTHiN2BPBirwIkMLKUspj4.woff */
|
28
|
-
url('../fonts/Yanone_Kaffeesatz_400.woff') format('woff'),
|
29
|
-
/* from https://fonts.gstatic.com/s/yanonekaffeesatz/v8/YDAoLskQQ5MOAgvHUQCcLfGwxTS8d1Q9KiDNCMKLFUM.woff2 */
|
30
|
-
url('../fonts/Yanone_Kaffeesatz_400.woff2') format('woff2');
|
31
|
-
}
|
32
6
|
|
33
|
-
|
34
|
-
|
35
|
-
body {
|
36
|
-
background: #F5F4EF;
|
37
|
-
color: #000305;
|
38
|
-
font-size: 87.5%; /* Base font size: 14px */
|
39
|
-
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
40
|
-
line-height: 1.429;
|
41
|
-
margin: 0;
|
42
|
-
padding: 0;
|
43
|
-
text-align: left;
|
44
|
-
}
|
7
|
+
Umaneti.net Legacy
|
8
|
+
==================
|
45
9
|
|
46
|
-
|
47
|
-
|
48
|
-
h2 {font-size: 1.571em} /* 22px */
|
49
|
-
h3 {font-size: 1.429em} /* 20px */
|
50
|
-
h4 {font-size: 1.286em} /* 18px */
|
51
|
-
h5 {font-size: 1.143em} /* 16px */
|
52
|
-
h6 {font-size: 1em} /* 14px */
|
10
|
+
-> pour une largeur d'écran de 800 pixels
|
11
|
+
-> cette feuille est libre de droits
|
53
12
|
|
54
|
-
|
55
|
-
font-weight: 400;
|
56
|
-
line-height: 1.1;
|
57
|
-
margin-bottom: .8em;
|
58
|
-
font-family: 'Yanone Kaffeesatz', arial, serif;
|
59
|
-
}
|
13
|
+
*/
|
60
14
|
|
61
|
-
|
15
|
+
body {
|
16
|
+
font-size: 12pt;
|
17
|
+
color: #000000;
|
18
|
+
background: url('/assets/default/img/top.png') top repeat-x;
|
19
|
+
font-family: sans-serif;
|
20
|
+
margin-bottom: 0;
|
21
|
+
}
|
62
22
|
|
63
|
-
|
23
|
+
h1 {color: #ffba53;}
|
64
24
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
color: #C74350;
|
70
|
-
padding: 0 1px;
|
71
|
-
text-decoration: underline;
|
25
|
+
h2 {
|
26
|
+
color: #68a5c3;
|
27
|
+
margin-left: 1em;
|
28
|
+
margin-top: 1.5em;
|
72
29
|
}
|
73
|
-
|
74
|
-
|
75
|
-
color: #fff;
|
76
|
-
text-decoration: none;
|
77
|
-
text-shadow: 1px 1px 1px #333;
|
30
|
+
h2 code {
|
31
|
+
color: #68a5c3;
|
78
32
|
}
|
79
33
|
|
80
|
-
|
81
|
-
|
34
|
+
h3 {color:#ffba53;}
|
35
|
+
|
36
|
+
a[hreflang]:after {
|
37
|
+
content: "\00a0[" attr(hreflang) "]";
|
38
|
+
color: #cccccc;
|
39
|
+
background: transparent;
|
82
40
|
}
|
83
41
|
|
84
|
-
|
85
|
-
|
86
|
-
margin-bottom: 1em;}
|
42
|
+
a, a:visited {color: #666666;}
|
43
|
+
a:hover {text-decoration: none;}
|
87
44
|
|
88
|
-
|
89
|
-
em, i {font-style: italic;}
|
45
|
+
img {border: 0;}
|
90
46
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
47
|
+
blockquote {
|
48
|
+
font-style: italic;
|
49
|
+
border-left: 4px solid #666666;
|
50
|
+
padding-left: 1em;
|
95
51
|
}
|
96
52
|
|
97
|
-
|
98
|
-
|
99
|
-
|
53
|
+
acronym {
|
54
|
+
border-bottom:dotted 1px #666666;
|
55
|
+
cursor:help;
|
100
56
|
}
|
101
57
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
58
|
+
code {
|
59
|
+
font-family: monospace;
|
60
|
+
color: #c74350;
|
61
|
+
}
|
62
|
+
.org-src-container pre {
|
63
|
+
overflow: auto;
|
64
|
+
}
|
65
|
+
.org-src-container label.org-src-name {
|
66
|
+
display: block;
|
67
|
+
text-align: center;
|
68
|
+
font-size: .9em;
|
69
|
+
color: #666666;
|
109
70
|
}
|
110
71
|
|
111
|
-
|
112
|
-
|
113
|
-
|
72
|
+
ul {
|
73
|
+
list-style: url('/assets/default/img/tic.png');
|
74
|
+
padding-left: 2em;
|
114
75
|
}
|
115
76
|
|
116
|
-
|
117
|
-
dt {font-weight: bold;}
|
118
|
-
dd {margin-left: 1.5em;}
|
77
|
+
ol {padding-left: 2em;}
|
119
78
|
|
120
|
-
|
79
|
+
p, li {
|
80
|
+
text-align: justify;
|
81
|
+
line-height: 1.75em;
|
82
|
+
}
|
121
83
|
|
122
|
-
|
123
|
-
|
124
|
-
margin: 20px;
|
125
|
-
font-style: italic;
|
84
|
+
dt {
|
85
|
+
font-weight: bold;
|
126
86
|
}
|
127
87
|
|
128
|
-
|
129
|
-
|
88
|
+
.underline {
|
89
|
+
text-decoration: underline;
|
90
|
+
}
|
130
91
|
|
131
|
-
|
132
|
-
|
92
|
+
.org-center {
|
93
|
+
text-align: center;
|
94
|
+
}
|
133
95
|
|
134
|
-
|
135
|
-
tbody td {padding: .5em .4em;}
|
96
|
+
fieldset {border: 0;}
|
136
97
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
98
|
+
input, textarea {
|
99
|
+
border: 1px solid #cccccc;
|
100
|
+
margin: 3px 0px;
|
101
|
+
background: #ffffff;
|
141
102
|
}
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
padding: 0 0 2.5em 0;
|
149
|
-
}
|
150
|
-
|
151
|
-
/* Banner */
|
152
|
-
header h1 {font-size: 3.571em;}
|
153
|
-
|
154
|
-
/* Main Nav */
|
155
|
-
header nav {
|
156
|
-
background: #000305;
|
157
|
-
font-size: 1.143em;
|
158
|
-
height: 40px;
|
159
|
-
line-height: 30px;
|
160
|
-
margin: 0 auto 2em auto;
|
161
|
-
padding: 0;
|
162
|
-
text-align: center;
|
163
|
-
width: 800px;
|
164
|
-
border-radius: 5px;
|
165
|
-
-moz-border-radius: 5px;
|
166
|
-
-webkit-border-radius: 5px;
|
167
|
-
}
|
168
|
-
|
169
|
-
header nav ul {list-style: none; margin: 0 auto; width: 800px;}
|
170
|
-
header nav li {float: left; display: inline; margin: 0;}
|
171
|
-
|
172
|
-
header nav a:link, header nav a:visited {
|
173
|
-
color: #fff;
|
174
|
-
display: inline-block;
|
175
|
-
height: 30px;
|
176
|
-
padding: 5px 1.5em;
|
177
|
-
text-decoration: none;
|
178
|
-
}
|
179
|
-
header nav a:hover, header nav a:active,
|
180
|
-
header nav .active a:link, header nav .active a:visited {
|
181
|
-
background: #C74451;
|
182
|
-
color: #fff;
|
183
|
-
text-shadow: none !important;
|
184
|
-
}
|
185
|
-
|
186
|
-
header nav li:first-child a {
|
187
|
-
border-top-left-radius: 5px;
|
188
|
-
-moz-border-radius-topleft: 5px;
|
189
|
-
-webkit-border-top-left-radius: 5px;
|
190
|
-
border-bottom-left-radius: 5px;
|
191
|
-
-moz-border-radius-bottomleft: 5px;
|
192
|
-
-webkit-border-bottom-left-radius: 5px;
|
103
|
+
input:hover,
|
104
|
+
input:focus,
|
105
|
+
textarea:hover,
|
106
|
+
textarea:focus {
|
107
|
+
border: 1px solid #ffba53;
|
108
|
+
background: #ffffff;
|
193
109
|
}
|
194
110
|
|
195
|
-
/*
|
196
|
-
|
197
|
-
*****************/
|
198
|
-
#content, #postamble {
|
111
|
+
/* ID #TOUT pour faire que la page soit centrée de 800 de large. --------------------- */
|
112
|
+
#preamble, #content, #postamble {
|
199
113
|
width: 800px;
|
200
|
-
margin:
|
201
|
-
|
202
|
-
.outline-2 {
|
203
|
-
background: #fff;
|
204
|
-
margin-bottom: 2em;
|
205
|
-
overflow: hidden;
|
206
|
-
padding: 20px 20px;
|
207
|
-
width: 760px;
|
208
|
-
border-radius: 10px;
|
209
|
-
-moz-border-radius: 10px;
|
210
|
-
-webkit-border-radius: 10px;
|
114
|
+
margin: 1em auto;
|
115
|
+
padding: 1em;
|
211
116
|
}
|
212
|
-
|
213
|
-
|
117
|
+
|
118
|
+
/* Header */
|
119
|
+
|
120
|
+
#content header h1 {
|
121
|
+
text-align: right;
|
122
|
+
margin-bottom: 1.5em;
|
123
|
+
}
|
124
|
+
|
125
|
+
#preamble nav ul {
|
126
|
+
list-style: none;
|
127
|
+
padding-left: 0;
|
128
|
+
}
|
129
|
+
#preamble li {
|
130
|
+
display: inline;
|
131
|
+
line-height: 1em;
|
132
|
+
}
|
133
|
+
#preamble li::before {
|
134
|
+
content: " · ";
|
135
|
+
}
|
136
|
+
#preamble li:first-child::before {
|
137
|
+
content: "";
|
138
|
+
}
|
139
|
+
|
140
|
+
/* Footer */
|
141
|
+
|
142
|
+
#postamble {
|
143
|
+
background: url('/assets/default/img/bottom.png') top repeat-x;
|
144
|
+
border-top: 1px solid #cccccc;
|
145
|
+
font-size: .8em;
|
214
146
|
text-align: center;
|
215
|
-
|
147
|
+
margin-bottom: 0;
|
148
|
+
}
|
149
|
+
|
150
|
+
.post-meta {
|
151
|
+
font-size: .9em;
|
152
|
+
font-style: italic;
|
216
153
|
}
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neruda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Étienne Deparis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rainbow
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: byebug
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '11.
|
75
|
+
version: '11.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '11.
|
82
|
+
version: '11.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: org-ruby
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,70 +100,70 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.13'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
110
|
+
version: '0.13'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pry-doc
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1.
|
117
|
+
version: '1.1'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1.
|
124
|
+
version: '1.1'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.9'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.9'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
145
|
+
version: '0.90'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
152
|
+
version: '0.90'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0.
|
159
|
+
version: '0.19'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0.
|
166
|
+
version: '0.19'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,8 +179,8 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.9'
|
181
181
|
description: |
|
182
|
-
An opinionated
|
183
|
-
Write your org files, we take care of the rest.
|
182
|
+
An opinionated Org static website generator.
|
183
|
+
Write your org-mode files, we take care of the rest.
|
184
184
|
email: etienne@depar.is
|
185
185
|
executables:
|
186
186
|
- pablo
|
@@ -194,6 +194,7 @@ files:
|
|
194
194
|
- lib/neruda/config/lisp_config.rb
|
195
195
|
- lib/neruda/config/org-config.el
|
196
196
|
- lib/neruda/config/ox-neruda.el
|
197
|
+
- lib/neruda/emacs.rb
|
197
198
|
- lib/neruda/index.rb
|
198
199
|
- lib/neruda/index/atom_generator.rb
|
199
200
|
- lib/neruda/index/org_generator.rb
|
@@ -211,14 +212,16 @@ files:
|
|
211
212
|
- lib/tasks/tags.rake
|
212
213
|
- locales/en.yml
|
213
214
|
- locales/fr.yml
|
215
|
+
- themes/default/css/htmlize.css
|
214
216
|
- themes/default/css/style.css
|
215
|
-
- themes/default/
|
216
|
-
- themes/default/
|
217
|
-
|
217
|
+
- themes/default/img/bottom.png
|
218
|
+
- themes/default/img/tic.png
|
219
|
+
- themes/default/img/top.png
|
220
|
+
homepage: https://git.umaneti.net/neruda/about/
|
218
221
|
licenses:
|
219
222
|
- WTFPL
|
220
223
|
metadata: {}
|
221
|
-
post_install_message:
|
224
|
+
post_install_message:
|
222
225
|
rdoc_options:
|
223
226
|
- "-m"
|
224
227
|
- org
|
@@ -228,15 +231,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
231
|
requirements:
|
229
232
|
- - ">="
|
230
233
|
- !ruby/object:Gem::Version
|
231
|
-
version: '2.
|
234
|
+
version: '2.6'
|
232
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
236
|
requirements:
|
234
237
|
- - ">="
|
235
238
|
- !ruby/object:Gem::Version
|
236
239
|
version: '0'
|
237
240
|
requirements: []
|
238
|
-
rubygems_version: 3.1.
|
239
|
-
signing_key:
|
241
|
+
rubygems_version: 3.1.4
|
242
|
+
signing_key:
|
240
243
|
specification_version: 4
|
241
|
-
summary: A simplistic way to create an
|
244
|
+
summary: A simplistic way to create an Org static website.
|
242
245
|
test_files: []
|