openf1-jekyll-theme
openf1-jekyll-theme
is a Jekyll theme used for openf1's github pages.
Installation
Add this line to your Jekyll site's Gemfile
:
gem 'openf1-jekyll-theme'
And add this line to your Jekyll site's _config.yml
:
theme: openf1-jekyll-theme
And then execute:
$ bundle
Or install it yourself as:
$ gem install openf1-jekyll-theme
Optionally, if you would like to preview your site on your development PC, add the following to your site's Gemfile
:
gem 'github-pages', group :jekyll_plugins
Development
To set up your environment to develop this theme:
-
Clone the theme's repository:
$ git clone https://github.com/openf1/openf1-jekyll-theme.git
-
cd
into the theme's directory
-
Run script/bootstrap
to install the necessary dependencies
-
Run bundle exec jekyll serve
to start the preview server
-
Visit localhost:4000
in your browser to preview the theme
Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
To test your theme's gem directly within another Jekyll site:
-
Build your gem:
$ gem build openf1-jekyll-theme.gemspec
-
Add this line to your Jekyll's site Gemfile
:
gem 'openf1-jekyll-theme', :path => 'path/to/your/gem'
-
Add this line to your Jekyll's site _config.yml
:
theme: openf1-jekyll-theme
-
Run bundle install
to install the gem
-
Run bundle exec jekyll serve
to start preview server
-
Visit localhost:4000
in your browser to preview the theme
When your theme is released, only the files in _layouts
, _includes
, _sass
and assets
tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in openf1-jekyll-theme.gemspec
accordingly.
Running Tests
The theme contains a minimal test suite. To run the tests, simply type:
$ script/cibuild
You'll need to run script/bootstrap
once before the test script will work.
License
The theme is available as open source under the terms of the MIT License.