diff --git a/docs/_docs/github-pages.md b/docs/_docs/github-pages.md index 2d519f68..5e03201c 100644 --- a/docs/_docs/github-pages.md +++ b/docs/_docs/github-pages.md @@ -4,103 +4,82 @@ permalink: /docs/github-pages/ --- [GitHub Pages](https://pages.github.com) are public web pages for users, -organizations, and repositories, that are freely hosted on GitHub's -`github.io` domain or on a custom domain name of your choice. GitHub Pages are -powered by Jekyll behind the scenes, so in addition to supporting regular HTML -content, they’re also a great way to host your Jekyll-powered website for free. +organizations, and repositories, that are freely hosted on GitHub's `github.io` +domain or on a custom domain name of your choice. GitHub Pages are powered by +Jekyll behind the scenes, so they're a great way to host your Jekyll-powered +website for free. + +Your site is automatically generated by GitHub Pages when you push your source +files. Note that GitHub Pages works equally well for regular HTML content, +simply because Jekyll treats files without YAML front matter as static assets. +So if you only need to push generated HTML, you're good to go without any +further setup. Never built a website with GitHub Pages before? [See this marvelous guide by -Jonathan McGlone to get you up and running](http://jmcglone.com/guides/github-pages/). -This guide will teach you what you need to know about Git, GitHub, and Jekyll to create your very own website on GitHub Pages. +Jonathan McGlone](http://jmcglone.com/guides/github-pages/) to get you up and +running. This guide will teach you what you need to know about Git, GitHub, and +Jekyll to create your very own website on GitHub Pages. + +## The github-pages gem + +Our friends at GitHub have provided the +[github-pages](https://github.com/github/pages-gem) gem which is used to manage +[Jekyll and its dependencies on GitHub Pages](https://pages.github.com/versions/). +Using it in your projects means that when you deploy your site to GitHub Pages, +you will not be caught by unexpected differences between various versions of the +gems. + +Note that GitHub Pages runs in `safe` mode and only allows [a set of whitelisted +plugins](https://help.github.com/articles/configuring-jekyll-plugins/#default-plugins). + +To use the currently-deployed version of the gem in your project, add the +following to your `Gemfile`: + +```ruby +source "https://rubygems.org" + +gem "github-pages", group: :jekyll_plugins +``` + +Be sure to run `bundle update` often. + +
+ For more information about what you can do with GitHub Pages, as well as for + troubleshooting guides, you should check out + GitHub’s Pages Help section. + If all else fails, you should contact GitHub Support. +
+github-pages
gem on Windows
- While Windows is not officially supported, it is possible
- to install github-pages
gem on Windows.
- Special instructions can be found on our
- Windows-specific docs page.
-
GitHub Pages overrides the “Site Source” @@ -149,12 +128,13 @@ to see more detailed examples.
github-pages
gem on Windows
- For more information about what you can do with GitHub Pages, as well as for
- troubleshooting guides, you should check out
- GitHub’s Pages Help section.
- If all else fails, you should contact GitHub Support.
+ While Windows is not officially supported, it is possible
+ to install the github-pages
gem on Windows.
+ Special instructions can be found on our
+ Windows-specific docs page.