Skip to content

Commit e843c36

Browse files
committed
Script to print resume.
1 parent af552fe commit e843c36

10 files changed

+69
-745
lines changed

Makefile

+13-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ build:
1010
run:
1111
docker run -v .:/app -p 4000:4000 --rm --name theo-web -it theo-web
1212

13-
# print-resume:
14-
# docker run --rm -p 3000:3000 browserless/chrome
15-
# # go to PDF tab
16-
# # just navigate to https://theo.lol/resume
17-
# # return page.pdf()
13+
up:
14+
docker compose up
15+
16+
print-resume: up print-resume-pdf print-resume-json print-resume-docx
17+
18+
print-resume-pdf:
19+
sh scripts/print-resume.sh resume.pdf
20+
21+
print-resume-docx:
22+
echo "Not implemented yet"
23+
24+
print-resume-json:
25+
cp _data/resume.json resume.json

_data/resume.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@
433433
},
434434
{
435435
"label": "Builds appreciation culture",
436-
"icon": "🪙",
436+
"icon": "🤝🏻",
437437
"text": "Built an internal Slack application for co-workers to show each other appreciation through coin emojis, dubbed 'Earnin Coin', which went viral internally. Regularly reached *100s of weekly transactions*. Included a real economy, a weekly leaderboard to celebrate high coin earners, and was consistently touted as making employees feel better about giving and receiving help."
438438
}
439439
]

_layouts/resume.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -110,23 +110,23 @@
110110
</div>
111111
{% elsif key == "work" %}
112112
<div class="work-experience-container">
113-
{% for job in site.data.resume[key] %}
113+
{%- for job in site.data.resume[key] -%}
114114
<div class="work-experience-entry floating-block">
115115
<div class="work-experience-header">
116-
<span class="green">{{ job.position }}</span>
117-
<span class="white">,&nbsp;</span>
118-
<span><a href="{{ job.url }}" class="gold">{{ job.organization }}</a>&nbsp</span>
119-
<span class="comment-grey">// {{ job.start | date: "%b %Y" }} - {% if job.end %} {{ job.end |
116+
<span class="green">{{- job.position -}}</span><span class="white">,&nbsp;</span><span><a
117+
href="{{ job.url }}" class="gold">{{- job.organization -}}</a>&nbsp;</span><span
118+
class="comment-grey">// {{ job.start | date: "%b %Y" }} - {% if job.end %} {{ job.end
119+
|
120120
date: "%b, %Y" }} {% else %} present {% endif %}</span>
121121
</div>
122122
<div class="work-experience-body">
123-
{% for highlight in job.highlights %}
123+
{%- for highlight in job.highlights -%}
124124
<p class="gold">{{ highlight.icon | append: " " | append: highlight.label }}</p>
125125
{{ highlight.text | markdownify }}
126-
{% endfor %}
126+
{%- endfor -%}
127127
</div>
128128
</div>
129-
{% endfor %}
129+
{%- endfor -%}
130130
</div>
131131
{% elsif key == "volunteer" %}
132132
<div class="column-container">

_sass/resume.scss

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$breakpoint-mobile: 74ch;
1+
$breakpoint-mobile: 640px;
22
$breakpoint-combine-header: 640px;
33

44
@media (max-width: $breakpoint-combine-header) {
@@ -125,7 +125,7 @@ pre {
125125

126126
.resume-container {
127127
max-width: 100%;
128-
width: 74ch;
128+
width: 640px;
129129
display: block;
130130
}
131131

@@ -280,9 +280,7 @@ div.section {
280280
display: flex;
281281
}
282282

283-
.work-experience-header {
284-
font-size: 0;
285-
}
283+
.work-experience-header {}
286284

287285
.work-experience-header>span {
288286
font-size: 1rem;
@@ -296,6 +294,10 @@ div.section {
296294
margin-bottom: 2rem;
297295
}
298296

297+
.work-experience-body>p:nth-child(2n+1) {
298+
margin-top: 2rem;
299+
}
300+
299301
.work-experience-body>p>a {
300302
color: #e0ab3b;
301303
}
@@ -334,11 +336,10 @@ div.section {
334336
}
335337

336338
.projects-header {
337-
font-size: 0;
339+
margin-bottom: 1rem;
338340
}
339341

340342
.projects-header>span {
341-
font-size: 1rem;
342343
word-break: break-word;
343344
}
344345

@@ -352,11 +353,10 @@ div.section {
352353
}
353354

354355
.open-source-header {
355-
font-size: 0;
356+
margin-bottom: 1rem;
356357
}
357358

358359
.open-source-header>span {
359-
font-size: 1rem;
360360
word-break: break-word;
361361
}
362362

docker-compose.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
services:
2+
web:
3+
build: .
4+
ports:
5+
- 4000:4000
6+
volumes:
7+
- .:/app
8+
browserless:
9+
image: ghcr.io/browserless/chromium
10+
ports:
11+
- 3000:3000
12+
restart: always
13+
environment:
14+
- MAX_CONCURRENT_SESSIONS=10
15+
- MAX_QUEUE_LENGTH=10
16+
- PREBOOT_CHROME=true
17+
- CHROME_REFRESH_TIME=60000
18+
- TIMEOUT=60000
19+
- TOKEN=who-cares-token
20+
- PORT=3000
21+
- ALLOW_GET=true
22+
- WORKSPACE_DELETE_EXPIRED=true
23+
- DOWNLOAD_DIR=/downloads

docker/latex/Dockerfile

-24
This file was deleted.

0 commit comments

Comments
 (0)