Coder Social home page Coder Social logo

bradparks / json_resume Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prat0318/json_resume

0.0 2.0 0.0 2.06 MB

Generates pretty HTML, LaTeX, markdown, with biodata feeded as input in JSON

Home Page: http://prat0318.github.io/json_resume

License: MIT License

json_resume's Introduction

JsonResume

JsonResume creates pretty versions of resume from a single JSON input file. Output formats are specifically customized to modern resume templates. Also, there are a ton of customizations to the templates possible, to make your own version of resume created easily and super quickly.

Installation

$ gem install json_resume

Usage

Create a sample JSON input file to start

$ json_resume sample

A sample prateek_cv.json is generated in the current working directory(cwd).

Modify it as per the needs, and remove or keep rest of the fields empty.

Conversion

  • Syntax
    json_resume convert [--template=/path/to/custom/template] [--out=html|html_pdf|tex|tex_pdf|md] <json_input>

    <json_input> can be /path/to/json OR "{'json':'string'}" OR http://raw.json
  • Default (HTML) version
    $ json_resume convert prateek_cv.json

A directory resume/ will be generated in cwd, which can be put hosted on /var/www or on github pages. (Sample)

  • HTML* version

html version without glyphicons can be generated by giving glyphicons as false : (Sample)

     "settings": {
         "glyphicons" : false
    },
  • PDF version from HTML (Sample)
    $ json_resume convert --out=html_pdf prateek_cv.json
    $ json_resume convert --out=tex prateek_cv.json
  • PDF version from LaTeX (Sample)
    $ json_resume convert --out=tex_pdf prateek_cv.json
    $ json_resume convert --out=md prateek_cv.json

Markup Language

JSON is parsed as per the markdown standards. This implies all this works-

FAQs

  • I get the following error during convert :
Error:
Generating the html type...
/Users/myMac/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `encode': "\xE2" on US-ASCII (Encoding::InvalidByteSequenceError)
        from /Users/abhiramk/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `initialize'
        from /Users/abhiramk/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `new'

Looks like locale problem. Add the following to the environment : export LC_CTYPE=en_US.UTF-8 ( Thanks to @viswamitra )

Customization

Output is creating using mustache templates. They are located in templates/. These can be modified and given as --template=/path/to/template to convert. For example, the tex template was customized to produced this new format.

Contributing

Many awesome formats can be created by writing new mustache templates. We ❤️ Pull Requests.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

json_resume's People

Contributors

prat0318 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.