This script ingests a JSON Resume compatible resume.json and renders it using a custom template with Jinja2
It then deploys the generated index.html to the /pages branch, which can be configured to serve the page
Jinja2(3.0.1)
- Fork this repo
- Clone it locally
- Replace
resume.jsonwith your own CV following the JSON Resume Schema - Ensure you have a
profilesobject insidebasicswith thenetworkkey asGitHuband theusernamekey as your own github username. This allows Jinja to find your raw JSON CV to link it. - If you are using the GitHub Pages automation:
- Enable the Action on your fork
- Push to GitHub (required for automation to trigger)
- Enable GitHub Pages on the
/pagesbranch
- Otherwise:
- Run
script.py - It will output
index.html
- Run
The Deploy Action does the following steps on the push trigger:
- Checkout an orphaned
pagesbranch - Generate
index.html - Commits only
index.htmlto origin
Yes, I know that using Jinja Macros is awful and I could do this way better, but I do not care.
Yes, I know that using git reset and empty branches isn't the best, but I wanted the /pages branch to only contain index.html.