I like to keep my resume in a YAML file for portability and readability, but I'd like to export it to multiple output formats. This is an attempt to do such a thing with plain old ruby (for the most part). Right now it'll output a index.html file with the contents of my resume YAML file.
- pandoc
- pdflatex (for mac users, it's
brew install basictex)
You'd create your own resume.yml file, adhering to the YAML in the existing version for starters.
Then you would run:
ruby cv.rb > index.htmlor
./bin/html.sh > index.htmlIt should output what you wrote to the index.html file in the same directory.
For a reminder of this in the application:
ruby cv.rb -h--role: The role you're attempting to output. In this case, it corresponds to the subdirectory underneath templates to use (default is 'software_engineer')
--filename: The YAML file location to use (default is resume.yml)
--type: The type of output you'd like; current options are html (default) or md
You must have pandoc installed to use this. Once installed you can run:
./bin/pdf.sh > resume.pdfRemove them; it will not display it if the section is not listed. If you'd like your own, you'd create a new partial, and call it from the index..erb file.