项目作者: gmantaos

项目描述 :
Static CV generator from a YAML file, in HTML or PDF format.
高级语言: Ruby
项目地址: git://github.com/gmantaos/yaml-cv.git
创建时间: 2019-02-19T12:40:04Z
项目社区:https://github.com/gmantaos/yaml-cv

开源协议:MIT License

下载


yaml-cv


Static CV generator from a YAML file, in HTML or PDF format.

Demo



Installation

  1. $ gem install yaml-cv

Disclaimer: On versions 0.1 PDF generation will be a little rough, since I implemented the release system before getting around to that.

Usage

The CV can be drawn-out in a yaml file, similar to the one shown below.

  1. details:
  2. first_name: John
  3. last_name: Doe
  4. title: Placeholder Engineer
  5. profile: Personal description.
  6. contact:
  7. - text: johndoe@example.com
  8. url: mailto:johndoe@example.com
  9. icon: email
  10. technical:
  11. - category: Languages
  12. items: C, C++, C#, HTML
  13. - category: Frameworks
  14. items: Node.js, React.js, Bootstrap

For more, there is the examples folder.

By default, the output will be printed to stdout in HTML format.

  1. $ yaml-cv my_cv.yml
  2. <html>
  3. <head>
  4. <title> Doe John - Public Figure </title>
  5. <style>
  6. ...

To save to a file, use one or both of the --html and --pdf arguments, while specifying the output file to write to.

  1. $ yaml-cv my_cv.yml --html my_cv.html
  1. $ yaml-cv my_cv.yml --pdf my_cv.pdf

For PDF generation on Windows, wkhtmltopdf.exe needs to be in the PATH.

The --watch option can also be used to watch the input file for changes and automatically regenerate the output.

  1. $ yaml-cv my_cv.yml --html my_cv.html --watch