Git Product home page Git Product logo

www.ccadb.org's Introduction

Prerequisites

*Note: This website is now on the current version of Ruby 3.1.4 (as of Aug 26, 2023). The prior version, 2.x, was deprecated and no longer receiving important updates and security patches.

Using rbenv (https://github.com/rbenv/rbenv) is an easy way to set up your environment for testing with Ruby, as it allows you to set which version of Ruby you are using.

Installation

Once you've installed rbenv, please be sure to set your environment to use the current version of Ruby 3.1.4, by running:

$ rbenv install 3.1.4
$ rbenv global 3.1.4

Running and testing locally

*Note: Nokogiri strongly recommends using their "native gems," which are precompiled binaries for the specific architecture you'll be running it on. This means you may need to add your architecture to the lockfile if you get errors with Nokogiri. Please see the section below for adding additional platform architectures.

The vendor directory has been removed to comply with best practices, so please run:

$ gem install bundler
$ bundle install
$ bundle exec jekyll serve

This will serve up the website, which you can now visit at: http://127.0.0.1:4000/

Updating in the future

If you need to update github-pages in the future, please follow this guide, or possibly do the following:

$ bundle update github-pages

Adding additional platform architecture support

Currently, the three most common platforms, x86_64-darwin, arm64-darwin, and x86_64-linux are supported. If you'd like to add another architecture, such as aarch64-linux for example, please run the following commands (please reference the link above for your exact platform architecture) and commit the updated lockfile:

$ bundle lock --add-platform aarch64-linux
$ bundle install    # resolve dependencies for platform-specific gems

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.