Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #55 from Shopify/gh-pages-gem
Browse files Browse the repository at this point in the history
[Docs] Switch from Jekyll to github-pages gem
  • Loading branch information
cshold authored Nov 29, 2016
2 parents 666fa11 + 2d2d7f1 commit 78849e5
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

# Jekyll docs
gem 'jekyll'
gem 'github-pages', group: :jekyll_plugins

# CI tests
gem 'nokogiri'
Expand Down
127 changes: 110 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,48 +1,127 @@
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
activesupport (5.0.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.4.0)
blankslate (2.1.2.4)
classifier-reborn (2.0.4)
fast-stemmer (~> 1.0)
coderay (1.1.1)
colorator (1.1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
colorator (0.1)
concurrent-ruby (1.0.2)
diff-lcs (1.2.5)
ethon (0.9.1)
ffi (>= 1.3.0)
execjs (2.7.0)
faraday (0.10.0)
multipart-post (>= 1.2, < 3)
fast-stemmer (1.0.2)
ffi (1.9.14)
forwardable-extended (2.6.0)
gemoji (2.1.0)
github-pages (39)
RedCloth (= 4.2.9)
github-pages-health-check (~> 0.2)
jekyll (= 2.4.0)
jekyll-coffeescript (= 1.0.1)
jekyll-feed (= 0.3.1)
jekyll-mentions (= 0.2.1)
jekyll-redirect-from (= 0.8.0)
jekyll-sass-converter (= 1.3.0)
jekyll-sitemap (= 0.8.1)
jemoji (= 0.5.0)
kramdown (= 1.5.0)
liquid (= 2.6.2)
maruku (= 0.7.0)
mercenary (~> 0.3)
pygments.rb (= 0.6.3)
rdiscount (= 2.1.7)
redcarpet (= 3.3.2)
terminal-table (~> 1.4)
github-pages-health-check (0.3.2)
net-dns (~> 0.6)
public_suffix (~> 1.4)
typhoeus (~> 0.7)
html-pipeline (1.9.0)
activesupport (>= 2)
nokogiri (~> 1.4)
htmlentities (4.3.4)
jekyll (3.3.0)
addressable (~> 2.4)
colorator (~> 1.0)
i18n (0.7.0)
jekyll (2.4.0)
classifier-reborn (~> 2.0)
colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
liquid (~> 2.6.1)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 1.7)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
safe_yaml (~> 1.0)
jekyll-sass-converter (1.4.0)
sass (~> 3.4)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-feed (0.3.1)
jekyll-gist (1.4.0)
octokit (~> 4.2)
jekyll-mentions (0.2.1)
html-pipeline (~> 1.9.0)
jekyll (~> 2.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.8.0)
jekyll (>= 2.0)
jekyll-sass-converter (1.3.0)
sass (~> 3.2)
jekyll-sitemap (0.8.1)
jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1)
kramdown (1.12.0)
liquid (3.0.6)
jemoji (0.5.0)
gemoji (~> 2.0)
html-pipeline (~> 1.9)
jekyll (>= 2.0)
kramdown (1.5.0)
liquid (2.6.2)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
maruku (0.7.0)
mercenary (0.3.6)
method_source (0.8.2)
mini_portile2 (2.1.0)
minitest (5.9.1)
multipart-post (2.0.0)
net-dns (0.8.0)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
pathutil (0.14.0)
forwardable-extended (~> 2.6)
octokit (4.6.2)
sawyer (~> 0.8.0, >= 0.5.3)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.12)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
public_suffix (1.5.3)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
rouge (1.11.1)
rdiscount (2.1.7)
redcarpet (3.3.2)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
Expand All @@ -58,17 +137,31 @@ GEM
rspec-support (3.5.0)
safe_yaml (1.0.4)
sass (3.4.22)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
slop (3.6.0)
terminal-table (1.7.3)
unicode-display_width (~> 1.1.1)
thread_safe (0.3.5)
toml (0.1.2)
parslet (~> 1.5.0)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unicode-display_width (1.1.1)
yajl-ruby (1.2.1)

PLATFORMS
ruby

DEPENDENCIES
github-pages
htmlentities
jekyll
nokogiri
pry
rspec

BUNDLED WITH
1.13.5
1.13.6
3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ sass:

# Build settings
markdown: kramdown
kramdown:
input: GFM
highlighter: rouge
12 changes: 6 additions & 6 deletions docs/_includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="docs-title heading--1"><a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a></div>
<ul class="docs-nav">
<li>
<a class="docs-nav__link {% if page.url == '/' %}active{% endif %}" href="{{ '/' | prepend: site.baseurl }}">Getting started</a>
<a class="docs-nav__link {% if page.url == '/index.html' %}active{% endif %}" href="{{ '/' | prepend: site.baseurl }}">Getting started</a>
</li>
<li>
<a class="docs-nav__link {% if page.url == '/theme/' %}active{% endif %}" href="{{ '/theme' | prepend: site.baseurl }}">What's included</a>
<a class="docs-nav__link {% if page.url == '/theme/index.html' %}active{% endif %}" href="{{ '/theme' | prepend: site.baseurl }}">What's included</a>
</li>
<li>
<a class="docs-nav__link {% if page.url == '/commands/' %}active{% endif %}" href="{{ '/commands' | prepend: site.baseurl }}">Commands</a>
<a class="docs-nav__link {% if page.url == '/commands/index.html' %}active{% endif %}" href="{{ '/commands' | prepend: site.baseurl }}">Commands</a>
<ul class="docs-sub-nav">
<li>
<a href="{{ '/commands/#global-commands' | prepend: site.baseurl }}" class="docs-sub-nav__link">Global commands</a>
Expand All @@ -21,7 +21,7 @@
</ul>
</li>
<li>
<a class="docs-nav__link {% if page.url == '/theme-scaffold/' %}active{% endif %}" href="{{ '/theme-scaffold' | prepend: site.baseurl }}">Theme scaffold</a>
<a class="docs-nav__link {% if page.url == '/theme-scaffold/index.html' %}active{% endif %}" href="{{ '/theme-scaffold' | prepend: site.baseurl }}">Theme scaffold</a>
<ul class="docs-sub-nav">
<li>
<a href="{{ '/theme-scaffold/#templates-and-configuration' | prepend: site.baseurl }}" class="docs-sub-nav__link">Templates and configuration</a>
Expand All @@ -41,7 +41,7 @@
</ul>
</li>
<li>
<a class="docs-nav__link {% if page.url == '/css-examples/' %}active{% endif %}" href="{{ '/css-examples' | prepend: site.baseurl }}">CSS examples</a>
<a class="docs-nav__link {% if page.url == '/css-examples/index.html' %}active{% endif %}" href="{{ '/css-examples' | prepend: site.baseurl }}">CSS examples</a>
<ul class="docs-sub-nav">
<li>
<a href="{{ '/css-examples/#breakpoints' | prepend: site.baseurl }}" class="docs-sub-nav__link">Breakpoints and media queries</a>
Expand All @@ -64,7 +64,7 @@
</ul>
</li>
<li>
<a class="docs-nav__link {% if page.url == '/js-examples/' %}active{% endif %}" href="{{ '/js-examples' | prepend: site.baseurl }}">JS examples</a>
<a class="docs-nav__link {% if page.url == '/js-examples/index.html' %}active{% endif %}" href="{{ '/js-examples' | prepend: site.baseurl }}">JS examples</a>
<ul class="docs-sub-nav">
<li>
<a href="{{ '/js-examples/#trap-focus' | prepend: site.baseurl }}" class="docs-sub-nav__link">Trap focus</a>
Expand Down

0 comments on commit 78849e5

Please sign in to comment.