diff --git a/markdown/resume.md b/markdown/resume.md index c889847..75aac5b 100644 --- a/markdown/resume.md +++ b/markdown/resume.md @@ -1,19 +1,11 @@
- - +
4150 W 111th CIR
Westminter, CO 80031
USA

Eric W Phillips

eric@ewpt3ch.dev
linkedin.com/in/ewpt3ch/
3034351478
- - -
-

Eric Phillips

-

4150 W 111th Circle, Westminster, CO 80031
- 303-435-1478 | eric@ewpt3ch.dev | linkedin.com/in/ewpt3ch/

-
@@ -26,8 +18,7 @@ Technical professional with 20+ years of business ownership and operations exper

Work Experience

- - +
@@ -35,13 +26,6 @@ Technical professional with 20+ years of business ownership and operations exper
IT, Data Analyst, Driver Trainer
Management Team
JBL Logistics INC
Broomfield, CO, USA
- -
-

IT, Data Analyst, Driver Trainer | Management Team

-

JBL Logistics INCBroomfield, CO
- September 2019 - November 2025

-
- Transportation company servicing FedEX Ground Contract Responsibilities included: diff --git a/src/main.py b/src/main.py index 8ee5de1..6d7b0de 100644 --- a/src/main.py +++ b/src/main.py @@ -21,7 +21,6 @@ def main(): # get the files if not srcdir.is_dir(): return f'Error: "{srcdir}" is not a directory or does not exist' - filelist = list(srcdir.glob("*.md")) # mk destdir if not exist @@ -30,44 +29,32 @@ def main(): # process filelist for infile in filelist: - print(f"processing '{infile}' to html") + # create filenames + outfile = destdir / infile.name + outfile = outfile.with_suffix(".html") + outfilepdf = outfile.with_suffix(".pdf") - # Read markdown once + # md -> html + print(f"processing '{infile}' to html") with infile.open(mode="r", encoding="utf-8") as f: mdsrc = f.read() rawhtml = mdtohtml(mdsrc) - base_name = infile.stem + # html -> resume.template + print("processing rawhtml through resume.template") + template = j2_env.get_template("resume.template") + pdfhtml = template.render(name=name, content=rawhtml, download="") - # pretty pdf - print("Generating web PDF...") - web_template = j2_env.get_template("resume-web.template") - web_html = web_template.render(name=name, content=rawhtml) - web_pdf_path = destdir / f"{base_name}-web.pdf" - htmltopdf(web_html, web_pdf_path) + print(f"processing html to '{outfilepdf}'") + htmltopdf(pdfhtml, outfilepdf) - # ats friendly pdf - ats_template = j2_env.get_template("resume-ats.template") - ats_html = ats_template.render(name=name, content=rawhtml) - ats_pdf_path = destdir / f"{base_name}-ats.pdf" - htmltopdf(ats_html, ats_pdf_path) - - # generate web html with download bar + print(f"processing pdfhtml to '{outfile}'") download_template = j2_env.get_template("download.template") - download_bar = download_template.render( - web_pdf=f"{base_name}-web.pdf", ats_pdf=f"{base_name}-ats.pdf" - ) - - pubhtml = web_template.render(name=name, content=rawhtml, download=download_bar) - - html_path = destdir / f"{base_name}.html" - with html_path.open(mode="w", encoding="utf-8") as f: + download_bar = download_template.render(pdffile=outfilepdf.name) + pubhtml = template.render(content=rawhtml, download=download_bar) + with outfile.open(mode="w", encoding="utf-8") as f: f.write(pubhtml) - print(f"Created: {web_pdf_path.name}") - print(f"Created: {ats_pdf_path.name}") - print(f"Created: {html_path.name}") - if __name__ == "__main__": main() diff --git a/templates/download.template b/templates/download.template index 506cb32..391e21d 100644 --- a/templates/download.template +++ b/templates/download.template @@ -1,5 +1,4 @@ diff --git a/templates/resume-ats.template b/templates/resume-ats.template deleted file mode 100644 index 421f131..0000000 --- a/templates/resume-ats.template +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - {{ content }} - - diff --git a/templates/resume-web.template b/templates/resume-web.template deleted file mode 100644 index ef006b3..0000000 --- a/templates/resume-web.template +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - {{ content }} - -