json_resume 0.3.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -3
  3. data/bin/json_resume +33 -9
  4. data/examples/prateek_cv.json +1 -1
  5. data/extras/resume_html/core-page.html +18 -0
  6. data/extras/resume_html/index.html +33 -0
  7. data/extras/resume_html/public/css/book.png +0 -0
  8. data/extras/resume_html/public/css/bookmark.png +0 -0
  9. data/extras/resume_html/public/css/bootstrap.min.css +7 -0
  10. data/extras/resume_html/public/css/briefcase.png +0 -0
  11. data/extras/resume_html/public/css/edit.png +0 -0
  12. data/extras/resume_html/public/css/envelope.png +0 -0
  13. data/extras/resume_html/public/css/file.png +0 -0
  14. data/extras/resume_html/public/css/gear.png +0 -0
  15. data/extras/resume_html/public/css/github.png +0 -0
  16. data/extras/resume_html/public/css/globe.png +0 -0
  17. data/extras/resume_html/public/css/icons.data.png.css +96 -0
  18. data/extras/resume_html/public/css/icons.data.svg.css +95 -0
  19. data/extras/resume_html/public/css/icons.fallback.css +96 -0
  20. data/extras/resume_html/public/css/institution.png +0 -0
  21. data/extras/resume_html/public/css/mobile.css +27 -0
  22. data/extras/resume_html/public/css/mortar-board.png +0 -0
  23. data/extras/resume_html/public/css/music.png +0 -0
  24. data/extras/resume_html/public/css/phone.png +0 -0
  25. data/extras/resume_html/public/css/screen.css +527 -0
  26. data/extras/resume_html/public/css/star-o.png +0 -0
  27. data/extras/resume_html/public/css/th-list.png +0 -0
  28. data/extras/resume_html/public/css/user.png +0 -0
  29. data/extras/resume_html/public/images/resume.png +0 -0
  30. data/extras/resume_html/public/js/grunticon.js +2 -0
  31. data/json_resume.gemspec +5 -4
  32. data/lib/json_resume/formatter.rb +92 -92
  33. data/lib/json_resume/formatter_html.rb +1 -1
  34. data/lib/json_resume/formatter_latex.rb +12 -1
  35. data/lib/json_resume/json_resume.rb +2 -2
  36. data/lib/json_resume/version.rb +1 -1
  37. data/locale/en.yml +45 -0
  38. data/locale/es.yml +45 -0
  39. data/locale/pt.yml +45 -0
  40. data/templates/classic_tex.mustache +209 -0
  41. data/templates/default_html.mustache +80 -48
  42. data/templates/default_md.mustache +20 -20
  43. data/templates/default_tex.mustache +20 -21
  44. metadata +70 -27
  45. data/extras/resume_html.tar.gz +0 -0
@@ -0,0 +1,209 @@
1
+ {{=<% %>=}}
2
+ \documentclass[letterpaper,11pt]{article}
3
+
4
+ <%#bio_data%>
5
+ %-----------------------------------------------------------
6
+ \usepackage[empty]{fullpage}
7
+ \usepackage{color}
8
+ \definecolor{mygrey}{gray}{0.80}
9
+ \raggedbottom
10
+ \raggedright
11
+ \setlength{\tabcolsep}{0in}
12
+
13
+ % Adjust margins to 0.5in on all sides
14
+ \addtolength{\oddsidemargin}{-0.5in}
15
+ \addtolength{\evensidemargin}{-0.5in}
16
+ \addtolength{\textwidth}{1.0in}
17
+ \addtolength{\topmargin}{-0.5in}
18
+ \addtolength{\textheight}{1.0in}
19
+ \usepackage{multicol}
20
+ \usepackage{hyperref}
21
+ %-----------------------------------------------------------
22
+ %Custom commands
23
+ \newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
24
+ \newcommand{\resheading}[1]{{\large \colorbox{mygrey}{\begin{minipage}{\textwidth}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
25
+ \newcommand{\ressubheading}[4]{
26
+ \begin{tabular*}{7.0in}{l@{\extracolsep{\fill}}r}
27
+ \textbf{#1} & #2 \\
28
+ \textit{#3} & \textit{#4} \\
29
+ \end{tabular*}\vspace{-6pt}}
30
+ %-----------------------------------------------------------
31
+
32
+ % command and color used in this document, independently from moderncv
33
+ \definecolor{see}{rgb}{0.5,0.5,0.5}% for web links
34
+
35
+ \begin{document}
36
+
37
+ \begin{tabular*}{7.5in}{l@{\extracolsep{\fill}}r}
38
+ \textbf{\large <%&firstname%> <%&familyname%>} & <%#phone%><%.%> (phone)<%/phone%>\\
39
+ <%#stars%><%#items%><%name%><%^last%> $\star$ <%/last%><%/items%><%/stars%> & <%#email%><%.%><%/email%>\\
40
+ <%#website%> & <%& .%><%/website%>\\
41
+ \end{tabular*}
42
+ \\
43
+
44
+ \vspace{0.1in}
45
+
46
+ <%#summary%>
47
+ \resheading{##summary##}
48
+ \begin{itemize}
49
+ <%#points%>
50
+ \resitem{<%& .%>}
51
+ <%/points%>
52
+ \end{itemize}
53
+ <%/summary%>
54
+
55
+
56
+ <%#github_projects%>
57
+ \resheading{##github_projects##}
58
+ \begin{itemize}
59
+ <%#details%>
60
+ \item
61
+ \ressubheading{\href{http://github.com/<%project_name%>}{<%project_name%>}}{}{<%#tagline%> - <%& .%><%/tagline%>}{}
62
+ \begin{itemize}
63
+ <%#description%>
64
+ \resitem{<%& .%>}
65
+ <%/description%>
66
+ \end{itemize}
67
+ <%/details%>
68
+ \end{itemize}
69
+ <%/github_projects%>
70
+
71
+ <%#skills%>
72
+ \resheading{##skills##}
73
+ \begin{description}
74
+ <%#details%>
75
+ \item[<%type%>:] <%#items%><%name%><%^last%>, <%/last%><%/items%>
76
+ <%/details%>
77
+ \end{description}
78
+ <%/skills%>
79
+
80
+ <%#education%>
81
+ \resheading{##education##}
82
+ \begin{itemize}
83
+ <%#schools%>
84
+ \item
85
+ \ressubheading{<%institution%>}{<%graduation_year%>}{<%degree%><%#major%>, <%major%><%/major%>}{<%#show_gpa%>##gpa##: <%gpa%><%/show_gpa%>}
86
+ <%/schools%>
87
+ \end{itemize}
88
+ <%/education%>
89
+
90
+ <%#acad_achievements%>
91
+ \resheading{##acad_achievements##}
92
+ \begin{itemize}
93
+ <%#items%>
94
+ \item{<%& .%>}
95
+ <%/items%>
96
+ \end{itemize}
97
+ <%/acad_achievements%>
98
+
99
+ <%#experience%>
100
+ \resheading{##experience##}
101
+ \begin{itemize}
102
+ <%#items%>
103
+ \item
104
+ \ressubheading{<%organisation%>}{<%location%>}{<%title%>}{<%from%> – <%to%>}
105
+ \begin{itemize}
106
+ <%#details%>\resitem{<%& .%>}<%/details%>
107
+ <%#technology_used%>
108
+ \resitem{##technology_used##: <%#tools%><%name%><%^last%>, <%/last%><%/tools%>}
109
+ <%/technology_used%>
110
+ \end{itemize}
111
+ <%/items%>
112
+
113
+ \end{itemize}
114
+ <%/experience%>
115
+
116
+ <%#other_projects%>
117
+ \resheading{##other_projects##}
118
+ \begin{itemize}
119
+ <%#items%>
120
+ \resitem{<%& headline%>}
121
+ \begin{itemize}
122
+ <%#points%>\resitem{<%& .%>}<%/points%>
123
+ <%#technology_used%>
124
+ \resitem{##technology_used##: <%#tools%><%name%><%^last%>, <%/last%><%/tools%>}
125
+ <%/technology_used%>
126
+ \end{itemize}
127
+ <%/items%>
128
+ \end{itemize}
129
+ <%/other_projects%>
130
+
131
+ <%#grad_courses%>
132
+ \resheading{##grad_courses##}
133
+ \begin{multicols}{2}
134
+ \begin{itemize}
135
+ <%#rows%>
136
+ <%#columns%>
137
+ \item[] <%#name%>\href{<%& url%>}{<%name%>}<%/name%>
138
+ <%/columns%>
139
+ <%/rows%>
140
+ \end{itemize}
141
+ \end{multicols}
142
+ <%/grad_courses%>
143
+
144
+ <%#undergrad_courses%>
145
+ \resheading{##undergrad_courses##}
146
+ \begin{multicols}{2}
147
+ \begin{itemize}
148
+ <%#rows%>
149
+ <%#columns%>
150
+ \item[] <%#name%>\href{<%& url%>}{<%name%>}<%/name%>
151
+ <%/columns%>
152
+ <%/rows%>
153
+ \end{itemize}
154
+ \end{multicols}
155
+ <%/undergrad_courses%>
156
+
157
+ <%#research_experience%>
158
+ \resheading{##research_experience##}
159
+ \begin{itemize}
160
+ <%#items%>
161
+ \resitem{<%title%>, <%organisation%> <%location%> (<%from%> – <%to%>)}
162
+ \begin{itemize}
163
+ <%#points%>\resitem{<%& .%>}<%/points%>
164
+ \end{itemize}
165
+ <%/items%>
166
+ \end{itemize}
167
+ <%/research_experience%>
168
+
169
+
170
+ <%#patents%>
171
+ \resheading{##patents##}
172
+ <%#items%>
173
+ \begin{itemize}
174
+ \resitem{<%patent_id%> - \textit{\href{<%url%>}{<%title%>}}<%#issuance_date%>, ##issuance## <%issuance_date%><%/issuance_date%>.}
175
+ \end{itemize}
176
+ <%/items%>
177
+ <%/patents%>
178
+
179
+ <%#papers%>
180
+ \resheading{##papers##}
181
+ \begin{description}
182
+ <%#items%>
183
+ \item["\href{<%url%>}{<%title%>}"]
184
+ <%authors%>, \emph{<%&misc%>}.
185
+ <%/items%>
186
+ \end{description}
187
+ <%/papers%>
188
+
189
+ <%#memberships%>
190
+ \resheading{##memberships##}
191
+ \begin{itemize}
192
+ <%#committees%>
193
+ \resitem{<%& .%>}
194
+ <%/committees%>
195
+ \end{itemize}
196
+ <%/memberships%>
197
+
198
+ <%#extra_curricular%>
199
+ \resheading{##extra_curricular##}
200
+ \begin{itemize}
201
+ <%#items%>
202
+ \resitem{<%& .%>}
203
+ <%/items%>
204
+ \end{itemize}
205
+ <%/extra_curricular%>
206
+
207
+ <%/bio_data%>
208
+ \end{document}
209
+ %% end of file `page.tex'.
@@ -1,38 +1,34 @@
1
- {{#settings}}
2
- {{#glyphicons}}
3
- <link rel="stylesheet" type="text/css" href="public/css/bootstrap.min.css" />
4
- <script>document.getElementById('github-png').innerHTML = '<img src="public/images/github.png" style="width:22px"></img> ';
5
- </script>
6
- {{/glyphicons}}
7
- {{/settings}}
1
+ <link rel="stylesheet" type="text/css" href="public/css/bootstrap.min.css" />
8
2
  <link rel="stylesheet" type="text/css" href="public/css/screen.css" />
3
+ <link rel="stylesheet" type="text/css" href="public/css/mobile.css" />
9
4
  <div id="page">
10
5
  {{#bio_data}}
11
- <div class="contact-details">
12
- {{#email}}
13
- <span class="glyphicon glyphicon-envelope"></span> {{email}}<br/>
14
- {{/email}}
15
- {{#phone}}
16
- <span class="glyphicon glyphicon-earphone"></span> {{phone}}<br/>
17
- {{/phone}}
18
- {{#website}}
19
- <span class="glyphicon glyphicon-globe"></span>
20
- <a href="{{website}}"> {{website}}</a>
21
- {{/website}}
6
+ <div id="top-contact">
7
+ <div class="contact-details">
8
+ {{#email}}
9
+ <div class="icon-envelope icon-square"></div> {{email}}<br />
10
+ {{/email}}
11
+ {{#phone}}
12
+ <div class="icon-phone icon-square"></div> {{phone}}<br />
13
+ {{/phone}}
14
+ {{#website}}
15
+ <div class="icon-globe icon-square"></div><a href="{{website}}"> {{website}}</a>
16
+ {{/website}}
17
+ </div>
22
18
  </div>
23
19
 
24
20
  <h1 class="emphnext">{{firstname}} {{familyname}}</h1><br/>
25
21
  {{#stars}}
26
22
  <span class="stars">
27
23
  {{#items}}
28
- {{name}} {{^last}}<span class="glyphicon glyphicon-star-empty"></span>{{/last}}
24
+ {{name}} {{^last}}<div class="icon-star-o icon-star"></div>{{/last}}
29
25
  {{/items}}
30
26
  </span>
31
27
  {{/stars}}
32
28
  <br/>
33
29
 
34
30
  {{#summary}}
35
- <h2><span class="glyphicon glyphicon-compressed"></span> Qualification Summary</h2>
31
+ <h2><div class="icon-user icon-square"></div> ##summary##</h2>
36
32
  <ul>
37
33
  {{#points}}
38
34
  <li>{{{.}}}</li>
@@ -41,7 +37,7 @@
41
37
  {{/summary}}
42
38
 
43
39
  {{#github_projects}}
44
- <h2><span id="github-png"></span>GitHub Projects</h2>
40
+ <h2><div class="icon-github icon-square"></div> ##github_projects##</h2>
45
41
  <ul>
46
42
  {{#details}}
47
43
  <li><a href="https://github.com/{{project_name}}">{{project_name}}</a>
@@ -57,7 +53,7 @@
57
53
  {{/github_projects}}
58
54
 
59
55
  {{#skills}}
60
- <h2><span class="glyphicon glyphicon-th-list"></span> Technical skills</h2>
56
+ <h2><div class="icon-th-list icon-square"></div> ##skills##</h2>
61
57
  <ul class="languages">
62
58
  {{#details}}
63
59
  <li>{{type}}:
@@ -70,21 +66,37 @@
70
66
  {{/skills}}
71
67
 
72
68
  {{#education}}
73
- <h2><span class="glyphicon glyphicon-book"></span> Education</h2>
74
- <table class="table education">
75
- <tr>
76
- <th>Degree</th><th>Major</th><th>Institution</th><th nowrap>Graduation Year</th>{{#show_gpa}}<th>GPA</th>{{/show_gpa}}
77
- </tr>
78
- {{#schools}}
79
- <tr>
80
- <td>{{degree}}</td><td>{{major}}</td><td>{{institution}}</td><td align="center">{{graduation_year}}</td>{{#show_gpa}}<td>{{gpa}}</td>{{/show_gpa}}
81
- </tr>
82
- {{/schools}}
83
- </table>
69
+ <h2><div class="icon-mortar-board icon-rect"></div> ##education##</h2>
70
+ <div id="mobile-table">
71
+ <div class="table-responsive">
72
+ <table class="table education">
73
+ <tr>
74
+ <th>##degree##</th><th>##major##</th><th>##institution##</th><th nowrap>##graduation_year##</th>{{#show_gpa}}<th>##gpa##</th>{{/show_gpa}}
75
+ </tr>
76
+ {{#schools}}
77
+ <tr>
78
+ <td>{{degree}}</td><td>{{major}}</td><td>{{institution}}</td><td align="center">{{graduation_year}}</td>{{#show_gpa}}<td>{{gpa}}</td>{{/show_gpa}}
79
+ </tr>
80
+ {{/schools}}
81
+ </table>
82
+ </div>
83
+ </div>
84
+ <div id="desktop-table">
85
+ <table class="table education">
86
+ <tr>
87
+ <th>##degree##</th><th>##major##</th><th>##institution##</th><th nowrap>##graduation_year##</th>{{#show_gpa}}<th>##gpa##</th>{{/show_gpa}}
88
+ </tr>
89
+ {{#schools}}
90
+ <tr>
91
+ <td>{{degree}}</td><td>{{major}}</td><td>{{institution}}</td><td align="center">{{graduation_year}}</td>{{#show_gpa}}<td>{{gpa}}</td>{{/show_gpa}}
92
+ </tr>
93
+ {{/schools}}
94
+ </table>
95
+ </div>
84
96
  {{/education}}
85
97
 
86
98
  {{#acad_achievements}}
87
- <h2><span class="glyphicon glyphicon-tower"></span> Academic Achievements</h2>
99
+ <h2><div class="icon-bookmark icon-rect"></div> ##acad_achievements##</h2>
88
100
  <ul>
89
101
  {{#items}}
90
102
  <li>{{{.}}}</li>
@@ -93,17 +105,17 @@
93
105
  {{/acad_achievements}}
94
106
 
95
107
  {{#experience}}
96
- <h2><span class="glyphicon glyphicon-briefcase"></span> Professional Experience</h2>
108
+ <h2><div class="icon-briefcase icon-square"></div> ##experience##</h2>
97
109
  <ul>
98
110
  {{#items}}
99
- <li>{{title}} at {{{organisation}}}{{#location}}, {{{location}}}{{/location}}
111
+ <li>{{title}}, {{{organisation}}}{{#location}}, {{{location}}}{{/location}}
100
112
  <span class="right">({{from}} – {{to}})</span>
101
113
  <ul>
102
114
  {{#details}}
103
115
  <li>{{{.}}}</li>
104
116
  {{/details}}
105
117
  {{#technology_used}}
106
- <li>Technologies got to work on:
118
+ <li>##technology_used##:
107
119
  {{#tools}}
108
120
  <span class="label label-default">{{name}}</span>
109
121
  {{/tools}}
@@ -116,7 +128,7 @@
116
128
  {{/experience}}
117
129
 
118
130
  {{#other_projects}}
119
- <h2><span class="glyphicon glyphicon-cog"></span> Other Personal Projects</h2>
131
+ <h2><div class="icon-gear icon-square"></div> ##other_projects##</h2>
120
132
  <ul>
121
133
  {{#items}}
122
134
  <li>
@@ -126,7 +138,7 @@
126
138
  <li>{{{.}}}</li>
127
139
  {{/points}}
128
140
  {{#technology_used}}
129
- <li>Technologies got to work on:
141
+ <li>##technology_used##:
130
142
  {{#tools}}
131
143
  <span class="label label-default">{{name}}</span>
132
144
  {{/tools}}
@@ -139,7 +151,7 @@
139
151
  {{/other_projects}}
140
152
 
141
153
  {{#grad_courses}}
142
- <h2><span class="glyphicon glyphicon-bookmark"></span> Graduate Courses Taken</h2>
154
+ <h2><div class="icon-institution icon-square"></div> ##grad_courses##</h2>
143
155
  <table class="table education">
144
156
  {{#rows}}
145
157
  <tr>
@@ -152,7 +164,7 @@
152
164
  {{/grad_courses}}
153
165
 
154
166
  {{#undergrad_courses}}
155
- <h2><span class="glyphicon glyphicon-bookmark"></span> Undergraduate Courses Taken</h2>
167
+ <h2><div class="icon-bookmark icon-square"></div> ##undergrad_courses##</h2>
156
168
  <table class="table education">
157
169
  {{#rows}}
158
170
  <tr>
@@ -165,11 +177,11 @@
165
177
  {{/undergrad_courses}}
166
178
 
167
179
  {{#research_experience}}
168
- <h2><span class="glyphicon glyphicon-pencil"></span> Research Experience</h2>
180
+ <h2><div class="icon-edit icon-square"></div> ##research_experience##</h2>
169
181
  <ul>
170
182
  {{#items}}
171
183
  <li>
172
- {{title}} at {{{organisation}}}
184
+ {{title}}, {{{organisation}}}
173
185
  <span class="right">({{from}} – {{to}})</span>
174
186
  <ul>
175
187
  {{#points}}
@@ -182,19 +194,19 @@
182
194
  {{/research_experience}}
183
195
 
184
196
  {{#patents}}
185
- <h2><span class="glyphicon glyphicon-file"></span> Patents</h2>
197
+ <h2><div class="icon-file icon-square"></div> ##patents##</h2>
186
198
  <ul>
187
199
  {{#items}}
188
200
  <li>{{patent_id}}
189
201
  <a href="{{url}}">{{title}}</a>
190
- {{#issuance_date}}, issued {{issuance_date}}{{/issuance_date}}.
202
+ {{#issuance_date}}, ##issuance## {{issuance_date}}{{/issuance_date}}.
191
203
  </li>
192
204
  {{/items}}
193
205
  </ul>
194
206
  {{/patents}}
195
207
 
196
208
  {{#papers}}
197
- <h2><span class="glyphicon glyphicon-edit"></span> Publications</h2>
209
+ <h2><div class="icon-edit icon-square"></div> ##papers##</h2>
198
210
  <ul>
199
211
  {{#items}}
200
212
  <li>{{authors}}
@@ -206,7 +218,7 @@
206
218
  {{/papers}}
207
219
 
208
220
  {{#memberships}}
209
- <h2><span class="glyphicon glyphicon-globe"></span> Memberships</h2>
221
+ <h2><div class="icon-globe icon-square"></div> ##memberships##</h2>
210
222
  <ul>
211
223
  {{#committees}}
212
224
  <li>{{{.}}}</li>
@@ -215,7 +227,7 @@
215
227
  {{/memberships}}
216
228
 
217
229
  {{#extra_curricular}}
218
- <h2><span class="glyphicon glyphicon-music"></span> Extra Curricular Awards</h2>
230
+ <h2><div class="icon-music icon-square"></div> ##extra_curricular##</h2>
219
231
  <ul>
220
232
  {{#items}}
221
233
  <li>{{{.}}}</li>
@@ -223,5 +235,25 @@
223
235
  </ul>
224
236
  {{/extra_curricular}}
225
237
 
238
+ <br />
239
+ <div id="bottom-contact" text-size="80%">
240
+ {{#email}}
241
+ <div class="icon-envelope icon-square"></div> {{email}}<br />
242
+ {{/email}}
243
+ {{#phone}}
244
+ <div class="icon-phone icon-square"></div> {{phone}}<br />
245
+ {{/phone}}
246
+ {{#website}}
247
+ <div class="icon-globe icon-square"></div><a href="{{website}}"> {{website}}</a>
248
+ {{/website}}
249
+ </div>
250
+ </div>
251
+
226
252
  {{/bio_data}}
253
+
254
+ {{#settings}}
255
+ {{#icons}}
256
+ <script src="public/js/grunticon.js"></script>
257
+ {{/icons}}
258
+ {{/settings}}
227
259
  </div><!-- End Page -->