s |
focus search bar ( enter to select, ▲ / ▼ to change selection) |
g e |
go to examples |
g g |
go to guides |
g l |
go to layout_api |
h |
toggle this help ( esc also exits) |
programming pages is a theme for Jekyll. It is a collection of files designed to be dropped into your project’s documentation folder.
As a shortcut, you can have GitHub manage the installation of theme files by using the remote_theme key in your site config file.
To use programming pages with GitHub pages, the simplest method is to require it as a remote theme in your _config.yml
file (remove any other theme:
or remote_theme:
entries).
remote_theme: pixeldroid/programming-pages
See Other installation methods for additional options.
Then use the theme to:
Setting up locally for testing a GitHub pages target is best done via Bundler:
Ensure your Gemfile
includes the following (these may be the only lines you need):
source 'https://rubygems.org'
gem 'github-pages'
Retrieve dependencies into a local bundle:
$ bundle install
Build and serve the site:
$ bundle exec jekyll serve --source ./docs --layouts ./docs/_layouts
There are three ways to install the theme for your site:
Ensure the jekyll-remote-theme gem is part of the dependency chain of your Gemfile
(it will be if you are requiring github-pages >= 171
):
source 'https://rubygems.org'
gem 'github-pages'
$ bundle exec gem dependency | grep 'Gem jekyll-remote-theme'
Gem jekyll-remote-theme-0.3.1
Specify the remote theme gem in your _config.yml
:
remote_theme: pixeldroid/programming-pages
Retrieve dependencies into a local bundle:
$ bundle install
Build and serve the site:
$ bundle exec jekyll serve --source ./docs --layouts ./docs/_layouts
Require the programming-pages theme gem in your Gemfile
(replace the github-pages dependency):
- gem 'github-pages'
+ gem 'programming-pages'
Specify the theme in your _config.yml
:
theme: 'programming-pages'
Retrieve dependencies into a local bundle:
$ bundle install
Build and serve the site:
$ bundle exec jekyll serve --source ./docs --layouts ./docs/_layouts
Download a zipfile of a programming pages release from GitHub:
$ API='https://api.github.com/repos/pixeldroid/programming-pages/releases/latest'; \
ZIP="$(curl -sL $API | jq -r '.assets[].browser_download_url')"; \
curl -LO $ZIP && unzip "$(basename $ZIP)"
Unzip it into your project’s documentation folder:
$ mkdir -p docs && mv programming-pages/* docs/ && rmdir programming-pages
Build and serve the site:
$ bundle exec jekyll serve --source ./docs --layouts ./docs/_layouts
programming pages
2020 pixeldroid
https://github.com/pixeldroid/programming-pages |
programming pages theme v0.5.22 (https://github.com/pixeldroid/programming-pages) |
s |
focus search bar ( enter to select, ▲ / ▼ to change selection) |
g e |
go to examples |
g g |
go to guides |
g l |
go to layout_api |
h |
toggle this help ( esc also exits) |