Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.
/ OpenRAWeb Public archive

The former source for the official OpenRA website.

Notifications You must be signed in to change notification settings

OpenRA/OpenRAWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7d23a91 · Mar 20, 2021
Mar 20, 2021
Jan 19, 2019
Jan 30, 2021
Apr 14, 2019
Apr 1, 2017
Apr 14, 2019
Jan 11, 2021
May 20, 2018
Mar 29, 2020
Feb 10, 2019
Jan 19, 2015
Jan 22, 2015

Repository files navigation

OpenRA Web

Uses the Nanoc static website generator. Build Status

Installation

Installing Ruby

Nanoc requires Ruby to run. Nanoc supports the official Ruby interpreter from version 2.3 up.

Ruby may already be installed on your system. To check, open a terminal window and type ruby -v. To install Ruby, follow the installation instructions on the Ruby website.

Installing Bundler

You need to run Nanoc with Bundler. To avoid permission errors1 it is recommended to use the --user install option when installing gems.

To install bundler, type gem install bundler --user install in a terminal to install Bundler to a directory inside your home directory. To use Bundler or any other gem installed to your ~/.gem directory, you need to add ~/.gem/ruby/version/bin to your PATH environment variable. If you use bash, add the following lines to your ~/.bashrc2:

# Ruby user installed gems
if which ruby >/dev/null && which gem >/dev/null; then
    PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi

Installing nanoc

Open the repository directory and type bundle install --path vendor/bundle to install the local dependencies.

Development

Use bundle exec nanoc compile and bundle exec nanoc view to generate and host a static preview at localhost:3000. Changes will be automatically deployed to openra.github.io when a pull request is merged.

Stats