fix build dependenies

This commit is contained in:
Juan Canham 2021-09-20 15:59:08 +01:00
parent 83033b0cb6
commit 91f58fd1da
8 changed files with 7902 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/
dist/
*~
*.bak

2
.linkcheckerrc Normal file
View File

@ -0,0 +1,2 @@
[filtering]
ignorewarnings=url-whitespace

View File

@ -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

View File

@ -6,7 +6,7 @@ from qrcode import QRCode
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.add_data(site)
qrcode.make()

7885
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,3 +5,5 @@ pylint==2.*
qrcode==6.*
yamllint==1.20.*
image==1.5.28
yq==2.*
niet==2.4.*

View File

@ -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

View File

@ -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", [])