Giter Site home page Giter Site logo

jmkoch / revbayes-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revbayes/revbayes.github.io

0.0 2.0 0.0 37.21 MB

Home Page: https://revbayes.github.io/revbayes-site/

Ruby 4.63% Python 1.53% TeX 65.86% HTML 4.82% CSS 3.97% JavaScript 4.16% Shell 0.75% R 0.33% PostScript 13.96%

revbayes-site's Introduction

revbayes.github.io

This is the repository for the RevBayes website.

Setting up this repo locally

Clone the repository using the following command:

git clone --recursive [email protected]:revbayes/revbayes-site.git

The static version of this site is stored as a submodule on branch master in the _site directory. The source files are stored on the default branch source.

In order to build the site you will need jekyll, see instructions below to install.

Making changes to the site

When making changes to the site, you should always work on the source branch. After committing your changes to source, simply run the deploy.sh script. This script will take care of the steps involved to push both the source and master branches to github.

./deploy.sh

Setting up jekyll

In order to build the site you will need to install jekyll.

To install jekyll and bundler (or update them):

gem install jekyll bundler

If you get a permission error, you can install the jekyll and bundler gems in your home folder using:

export GEM_HOME=~/.gem
gem install jekyll bundler

NOTE: You may get errors here that you need to update ruby to install these gems.

Next, move into the revbayes-site repo directory, and install required gems via:

bundle install

Now, you should be able to build and serve the static HTML with:

bundle exec jekyll serve

The previous command will cause a full rebuild of the site each time a file is modified. This can sometimes take a long time. You can selectively regenerate only modified files using the --incremental option

bundle exec jekyll serve --incremental

This will reduce regeneration times substantially. However, keep in mind that if you add new files, or modify _config.yml or any plugins, you will need to do a non-incremental rebuild.

If you get the error "invalid byte sequence in US-ASCII", this seems to fix it:

export LC_CTYPE="en_US.UTF-8"
export LANG="en_US.UTF-8"

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.