Skip to content

Commit 0b804b1

Browse files
committed
Committing everything.
1 parent 20bc18a commit 0b804b1

File tree

18 files changed

+1552
-132
lines changed

18 files changed

+1552
-132
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ _site
22
.sass-cache
33
.jekyll-metadata
44
Gemfile.lock
5-
node_modules
5+
node_modules
6+
env
7+
__pycache__

.vscode/launch.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch go-print-docx",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "${workspaceFolder}/scripts/resume/go-docx/main.go",
13+
"args": [
14+
"render",
15+
"../../../_data/resume.json",
16+
"test.docx",
17+
"--license-key",
18+
"abcd"
19+
]
20+
}
21+
]
22+
}

LICENSE

+674
Large diffs are not rendered by default.

Makefile

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
current_dir = $(shell pwd)
22

3+
.phony: clean build run up print-resume print-resume-pdf print-resume-docx print-resume-json
4+
35
clean:
46
rm -f Gemfile.lock
57
rm -fr _site
@@ -11,15 +13,18 @@ run:
1113
docker run -v .:/app -p 4000:4000 --rm --name theo-web -it theo-web
1214

1315
up:
14-
docker compose up
16+
docker compose up --wait
17+
18+
down:
19+
docker compose down
1520

16-
print-resume: up print-resume-pdf print-resume-json print-resume-docx
21+
print-resume: up print-resume-pdf print-resume-json print-resume-docx down
1722

1823
print-resume-pdf:
19-
sh scripts/print-resume.sh resume.pdf
24+
sh scripts/resume/print-pdf.sh resume.pdf
2025

2126
print-resume-docx:
22-
echo "Not implemented yet"
27+
cd scripts/resume/go-print-docx && go run main.go render ../../../_data/resume.json ../../../less-stylish.docx --license-key=${LICENSE_KEY}
2328

2429
print-resume-json:
2530
cp _data/resume.json resume.json

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# theo.lol
2+
3+
my blog and website
4+
5+
## the resume builder
6+
7+
8+
### making changes
9+
```bash
10+
# make changes to _data/resume.json
11+
code _data/resume.json
12+
# NOTE: don't forget to update section-item-ordering if adding new project/volunteer items
13+
14+
# license key from https://cloud.unidoc.io/api-keys
15+
# used for generating .docx files
16+
LICENSE_KEY="<unicloud-api-key>" make -s print-resume
17+
```
18+
19+
### how it works
20+
21+
everything is generated from `_data/resume.json` (which does _**not**_ follow the [jsonresume](https://jsonresume.org/schema) schema)
22+
23+
* `resume.html` -> standard Jekyll HTML/CSS template
24+
* `resume.pdf` -> rendered using [`browserless`](https://github.com/browserless/browserless) to print `resume.html` as a PDF
25+
* `resume.docx` -> rendered using `scripts/resume/go-print-docx`, a `kong` cli leveraging [`unioffice`](https://unidoc.io/unioffice/) (for writing .docx) and [`goldmark`](https://github.com/yuin/goldmark) (with a custom inline markdown node -> docx renderer)
26+
* `resume.json` -> copy of `_data/resume.json` (not symlinked -- though symlink might be possible, `TODO: verify`)

_config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ exclude:
4040
- vendor/cache/
4141
- vendor/gems/
4242
- vendor/ruby/
43-
- assets/vendored/htdocs/node_modules
43+
- assets/vendored/htdocs/node_modules
44+
- scripts
45+
- tmp

0 commit comments

Comments
 (0)