Skip to content

triplea-game/triplea-game.github.io

Repository files navigation

Travis

This is the official TripleA website. This repository hosts the website source code. The TripleA site runs on Jekyll and GitHub Pages. Pages are written in markdown.

How-To-Contribute

Please start feature requests as issues. We may hesitate to accept pull requests without prior discussion, but it is very easy to start an issue first so that we can help you fit your idea into the project.

Making Website Change

You can edit any page individually by navigating to the page in github and using the github 'pencil icon': https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github/

For more involved changes, you'll want to preview those changes locally before creating a pull request. The TripleA website is run on Jekyll, hosted by Github Pages. Jekyll is an engine that serves markdown (md) files as HTML, once running it'll compile and host the website on your local computer (usually at http://localhost:4000).

For more detailed information, see:

1. Install Jekyll and dependencies. First thing you're going to need to do is set up Jekyll and the appropriate dependencies so you can develop locally. The easiest way to install everything is to use RubyGems and follow the instructions on the Jekyll website. In addition to the basic Jekyll installation, you also need to install a few dependency gems. After installing RubyGems on your machine, you really only need to run one basic command:

gem install jekyll

On Ubuntu, run:

sudo apt install ruby ruby-dev make gcc
sudo gem install jekyll bundler

2. Run a local version of the website. Using Git, clone the latest version of this repository to your local machine using the following command:

git clone https://github.com/triplea-game/triplea-game.github.io.git

Then start the jekyll server:

cd triplea-game.github.io/
jekyll serve`

This will get a local version of the website running on your machine, accessible on localhost:4000, or whatever the terminal tells you.

3. Make Changes

You can then make changes to the files you cloned earlier and the local server should update automatically. You can then preview any changes on your local machine with a web browser, just refresh the page localhost:4000.

** Tip:** Write any content in Markdown with the YAML front matter like the other pages. If you can, follow the instructions below to test your changes.

3. Commit and submit pull request

After verifying changes to your locally cloned repository, you'll need a git client of some sort installed (there are many of these, git for windows is an example). Follow these steps to prepare a pull-request: https://github.com/PointCloudLibrary/pcl/wiki/A-step-by-step-guide-on-preparing-and-submitting-a-pull-request