The Upstream Community Theme is a ready-to-use Jekyll theme to help you create a basic static site for your project. It was designed with the Red Hat Upstream Community in mind, but can be used by anyone looking to create a simple, lightweight site.
These instructions will get you a copy of the project up and running on your local machine for development purposes. See deployment for notes on how to deploy the project on GitHub Pages.
ruby -v
to check your current Ruby version.gem -v
to check if you have RubyGems installed.gcc -v
,g++ -v
and make -v
to see if your system already has them installed.git clone [email protected]:YOUR_USER_NAME/community-theme.git
cd community-theme
bundle exec jekyll serve
bundle exec jekyll build
If you encounter any unexpected errors during the above, please refer to the troubleshooting page or the requirements page, as you might be missing development headers or other prerequisites.
For more information regarding the use of Jekyll, please refer to the Jekyll Step by Step Tutorial.
Alternatively you can use Docker to test your changes locally.
To run it, simply execute the following Docker command from the project root directory:
docker run --rm --volume="$PWD:/srv/jekyll" -it -p 4000:4000 jekyll/jekyll:3 jekyll serve
To preview your site, browse to http://localhost:4000
To deploy your site using GitHub Pages you will need to add the github-pages gem.
Note that GitHub Pages runs in
safe
mode and only allows a set of whitelisted plugins.
To use the github-pages gem, you'll need to add the following on your Gemfile
:
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
And then run bundle update
.
To deploy a project page that is kept in the same repository as the project they are for, please refer to the Project Pages section in Deploying Jekyll to GitHub Pages.
Please read CONTRIBUTING.md for details on the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details.