fix build dependenies
This commit is contained in:
parent
83033b0cb6
commit
91f58fd1da
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
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/*
|
cfn-lint deploy/cloudformation/*
|
||||||
|
|
||||||
prepare: clean resume.yaml
|
prepare: clean resume.yaml
|
||||||
|
mkdir -p dist/images/
|
||||||
./transform.py
|
./transform.py
|
||||||
./generate_qrcode.py "https://$(SITENAME)" QR
|
./generate_qrcode.py "https://$(SITENAME)" QR
|
||||||
cp -r images dist/
|
cp -r images dist/
|
||||||
rm dist/images/*~
|
rm dist/images/*~ || true
|
||||||
|
|
||||||
validate: prepare
|
validate: prepare
|
||||||
$(hackmyresume) validate dist/resume.json
|
$(hackmyresume) validate dist/resume.json
|
||||||
|
@ -6,7 +6,7 @@ from qrcode import QRCode
|
|||||||
|
|
||||||
|
|
||||||
def generate_qrcode(site, filename):
|
def generate_qrcode(site, filename):
|
||||||
""" Function to generate QR code wth boarder of 1 """
|
"""Function to generate QR code wth boarder of 1"""
|
||||||
qrcode = QRCode(border=1)
|
qrcode = QRCode(border=1)
|
||||||
qrcode.add_data(site)
|
qrcode.add_data(site)
|
||||||
qrcode.make()
|
qrcode.make()
|
||||||
|
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.*
|
qrcode==6.*
|
||||||
yamllint==1.20.*
|
yamllint==1.20.*
|
||||||
image==1.5.28
|
image==1.5.28
|
||||||
|
yq==2.*
|
||||||
|
niet==2.4.*
|
||||||
|
@ -15,9 +15,9 @@ generate:
|
|||||||
- darkly
|
- darkly
|
||||||
- superhero
|
- superhero
|
||||||
- cerulean
|
- cerulean
|
||||||
kcv:
|
kcv: []
|
||||||
- flat
|
# - flat
|
||||||
- modern
|
# - modern
|
||||||
full:
|
full:
|
||||||
plain:
|
plain:
|
||||||
- node_modules/fresh-theme-elegant
|
- node_modules/fresh-theme-elegant
|
||||||
@ -27,7 +27,7 @@ links:
|
|||||||
- name: PDF
|
- name: PDF
|
||||||
url: resume.pdf
|
url: resume.pdf
|
||||||
- name: markdown
|
- 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
|
- name: yaml
|
||||||
url: resume.yaml
|
url: resume.yaml
|
||||||
|
|
||||||
@ -40,8 +40,8 @@ links:
|
|||||||
- Modern
|
- Modern
|
||||||
- superhero
|
- superhero
|
||||||
- cerulean
|
- cerulean
|
||||||
- kcv-flat
|
# - kcv-flat
|
||||||
- kcv-modern
|
# - kcv-modern
|
||||||
- group: formats
|
- group: formats
|
||||||
links:
|
links:
|
||||||
- name: json
|
- name: json
|
||||||
|
@ -10,7 +10,7 @@ import yaml
|
|||||||
|
|
||||||
# pylint: disable=missing-function-docstring
|
# pylint: disable=missing-function-docstring
|
||||||
def main():
|
def main():
|
||||||
with open("resume.yaml") as file:
|
with open("resume.yaml", encoding="utf-8") as file:
|
||||||
resume = yaml.load(file, Loader=yaml.BaseLoader)
|
resume = yaml.load(file, Loader=yaml.BaseLoader)
|
||||||
|
|
||||||
transform_and_write("full", make_full, resume)
|
transform_and_write("full", make_full, resume)
|
||||||
@ -19,7 +19,7 @@ def main():
|
|||||||
|
|
||||||
def write_file(name, data):
|
def write_file(name, data):
|
||||||
filename = os.path.join("dist", name + ".json")
|
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)
|
json.dump(data, file)
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ def make_fresh(data):
|
|||||||
|
|
||||||
|
|
||||||
def make_full(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)
|
data["settings"] = yaml.load(file, Loader=yaml.BaseLoader)
|
||||||
|
|
||||||
tags = data.get("tags", [])
|
tags = data.get("tags", [])
|
||||||
|
Loading…
Reference in New Issue
Block a user