In this repo, you'll find a HTML/CSS template for a resume, along with a JS script to generate a PDF from it.
It is sharable as is, and responsive. Also uses Custom Elements. Which is wow.
The PDF is generated using Headless Chrome through Puppeteer, then shrunk using Alfred Klomp's shrinkpdf script.
First, install the dependencies, with NPM or whatever your prefered package manager is:
npm i
Then, run the build script:
npm run build
You'll find the PDF file at the root of your project. If you have your own version of this repository on your github account, you can directly create a GitHub Pages website to have it hosted.