Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.18 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.18 KB

Palantir's website

No trace about code??? Take a look in gh-pages branch.

How to contribute

  1. Clone the Git repo and switch to gh-pages branch

    $ git clone https://github.com/torsec/palantir-h2020.git
    $ cd palantir-h2020
    $ git checkout -b gh-pages --track origin/gh-pages
    
  2. Make your changes (e.g. create a news)

    $ cd palantir-h2020/_news
    $ vim 2017-01-01-happy-new-year.md
    ... edit your news ...
    
  3. Commit and push (if allowed...) your changes

    $ cd palantir-h2020
    $ git add .
    $ git commit -m "Added news"
    $ git push origin gh-pages:gh-pages
    
  4. That's all folks!

How to locally build the website

  1. Install ruby:

    $ sudo apt install ruby-full
    
  2. Write into your shell rc file (eg. ~/.bashrc) the following lines:

     # Install Ruby Gems to ~/gems
     export GEM_HOME="$HOME/gems"
     export PATH="$HOME/gems/bin:$PATH"
    
  3. Reload your rc file:

    $ source ~/.bashrc
    
  4. Install the required gems:

    $ gem install jekyll bundler
    
  5. If your ruby version is >= 3.0.0 run:

    $ bundle add webrick
    
  6. Build the website:

    $ bundle exec jekyll serve