fix build dependenies
This commit is contained in:
parent
83033b0cb6
commit
91f58fd1da
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
node_modules/
|
||||
dist/
|
||||
*~
|
||||
*.bak
|
||||
|
2
.linkcheckerrc
Normal file
2
.linkcheckerrc
Normal file
@ -0,0 +1,2 @@
|
||||
[filtering]
|
||||
ignorewarnings=url-whitespace
|
3
Makefile
3
Makefile
@ -36,10 +36,11 @@ lint:
|
||||
cfn-lint deploy/cloudformation/*
|
||||
|
||||
prepare: clean resume.yaml
|
||||
mkdir -p dist/images/
|
||||
./transform.py
|
||||
./generate_qrcode.py "https://$(SITENAME)" QR
|
||||
cp -r images dist/
|
||||
rm dist/images/*~
|
||||
rm dist/images/*~ || true
|
||||
|
||||
validate: prepare
|
||||
$(hackmyresume) validate dist/resume.json
|
||||
|
7885
package-lock.json
generated
Normal file
7885
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -5,3 +5,5 @@ pylint==2.*
|
||||
qrcode==6.*
|
||||
yamllint==1.20.*
|
||||
image==1.5.28
|
||||
yq==2.*
|
||||
niet==2.4.*
|
||||
|
@ -15,9 +15,9 @@ generate:
|
||||
- darkly
|
||||
- superhero
|
||||
- cerulean
|
||||
kcv:
|
||||
- flat
|
||||
- modern
|
||||
kcv: []
|
||||
# - flat
|
||||
# - modern
|
||||
full:
|
||||
plain:
|
||||
- node_modules/fresh-theme-elegant
|
||||
@ -27,7 +27,7 @@ links:
|
||||
- name: PDF
|
||||
url: resume.pdf
|
||||
- name: markdown
|
||||
url: https://git.juancanham.com/JuanCanham/juan-canham-resume/Resume.md
|
||||
url: https://git.riotingpacifist.net/JuanCanham/juan-canham-resume/src/branch/master/Resume.md
|
||||
- name: yaml
|
||||
url: resume.yaml
|
||||
|
||||
@ -40,8 +40,8 @@ links:
|
||||
- Modern
|
||||
- superhero
|
||||
- cerulean
|
||||
- kcv-flat
|
||||
- kcv-modern
|
||||
# - kcv-flat
|
||||
# - kcv-modern
|
||||
- group: formats
|
||||
links:
|
||||
- name: json
|
||||
|
@ -10,7 +10,7 @@ import yaml
|
||||
|
||||
# pylint: disable=missing-function-docstring
|
||||
def main():
|
||||
with open("resume.yaml") as file:
|
||||
with open("resume.yaml", encoding="utf-8") as file:
|
||||
resume = yaml.load(file, Loader=yaml.BaseLoader)
|
||||
|
||||
transform_and_write("full", make_full, resume)
|
||||
@ -19,7 +19,7 @@ def main():
|
||||
|
||||
def write_file(name, data):
|
||||
filename = os.path.join("dist", name + ".json")
|
||||
with open(filename, "w") as file:
|
||||
with open(filename, "w", encoding="utf-8") as file:
|
||||
json.dump(data, file)
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ def make_fresh(data):
|
||||
|
||||
|
||||
def make_full(data):
|
||||
with open("settings.yaml") as file:
|
||||
with open("settings.yaml", encoding="utf-8") as file:
|
||||
data["settings"] = yaml.load(file, Loader=yaml.BaseLoader)
|
||||
|
||||
tags = data.get("tags", [])
|
||||
|
Loading…
Reference in New Issue
Block a user