-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
3,091 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
# If you have OpenSSL installed, we recommend updating | ||
# the following line to use "https" | ||
source 'http://rubygems.org' | ||
source 'https://rubygems.org' | ||
|
||
gem "middleman", "~>3.1.0" | ||
gem 'rake', '~> 10.1' | ||
gem 'middleman', '~> 3.1' | ||
gem 'middleman-livereload', '~> 3.1' | ||
gem 'middleman-syntax' | ||
|
||
# Live-reloading plugin | ||
gem "middleman-livereload", "~> 3.1.0" | ||
gem 'slim', '~> 2.0' | ||
gem 'redcarpet', '2.1.1' | ||
|
||
# For faster file watcher updates: | ||
# gem "wdm", "~> 0.1.0") # Windows | ||
|
||
# Cross-templating language block fix for Ruby 1.8 | ||
platforms :mri_18 do | ||
gem "ruby18_source_location" | ||
end | ||
# monkey-patched | ||
gem 'tilt', '1.3.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
desc 'Start development server' | ||
task :server do | ||
system 'bundle exec middleman server' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module LayoutHelper | ||
|
||
def page_title | ||
current_page.data.title | ||
end | ||
|
||
def page_name | ||
page_classes.split(' ').first | ||
end | ||
|
||
def page_version | ||
current_page.data.version | ||
end | ||
|
||
def page_order | ||
current_page.data.order | ||
end | ||
|
||
def show_sibling_navigation? | ||
!!page_order | ||
end | ||
|
||
def prev_page | ||
find_sibling(page_order - 1) | ||
end | ||
|
||
def next_page | ||
find_sibling(page_order + 1) | ||
end | ||
|
||
def link_to_page(page) | ||
link_to(page.data.title, page.url) if page | ||
end | ||
|
||
def find_sibling(order) | ||
current_page.siblings.find { |page| page.data.order == order } | ||
end | ||
|
||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: Welcome | ||
--- | ||
|
||
markdown: | ||
Savon is a [SOAP](http://en.wikipedia.org/wiki/SOAP) client | ||
for the [Ruby programming language](http://www.ruby-lang.org/). | ||
|
||
ul.list-of-icons | ||
li | ||
i.icon-github | ||
= link_to 'Source code', 'https://github.com/savonrb/savon' | ||
| is hosted on GitHub | ||
li | ||
i.icon-cloud-download | ||
= link_to 'Releases', 'http://rubygems.org/gems/savon' | ||
| are available via RubyGems.org | ||
li | ||
i.icon-comments | ||
| Ask questions through the | ||
= link_to 'mailing list', 'https://groups.google.com/forum/#!forum/savonrb' | ||
| or on | ||
= link_to 'StackOverflow', 'http://stackoverflow.com/questions/tagged/savon' | ||
li | ||
i.icon-twitter | ||
| And | ||
= link_to 'receive updates', 'https://twitter.com/savonrb' | ||
| via Twitter | ||
|
||
|
||
h2 Documentation by version | ||
|
||
ol.list-of-icons | ||
li | ||
i.icon-thumbs-down | ||
= link_to 'Version 1', '/version1/index.html' | ||
| (deprecated) | ||
li | ||
i.icon-thumbs-up | ||
= link_to 'Version 2', '/version2/index.html' | ||
| (stable) | ||
li | ||
i.icon-warning-sign | ||
= link_to 'Version 3', '/version3/index.html' | ||
| (unstable) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
$ -> | ||
|
||
# syntax highlighting | ||
hljs.initHighlightingOnLoad() | ||
|
||
# delayed code block icons, because highlight.js | ||
# can be a little slow and doesn't provide a callback. | ||
setTimeout -> | ||
console.log 'bla' | ||
$('pre code').each -> | ||
classes = $(this).attr('class') | ||
$(this).parent().addClass(classes) | ||
, 200 | ||
|
||
# mobile navigation | ||
$('#nav') | ||
.clone() | ||
.removeAttr('id') | ||
.addClass('nav-copy') | ||
.prependTo($('#mobile-nav')) | ||
|
||
$('#mobile-nav .trigger').on 'click', (event) -> | ||
event.preventDefault() | ||
$(this).parent().toggleClass('on') | ||
|
||
# floating link-list | ||
$('#floating-link-list a') | ||
.on('mouseenter', (e) -> $(this).parent().addClass('on')) | ||
.on('mouseleave', (e) -> $(this).parent().removeClass('on')) | ||
|
||
# highlight navigation | ||
classes = $('body').attr('class').split(' ') | ||
if classes.length == 2 | ||
version = classes[0] | ||
pageName = classes[1].split('_')[1] | ||
|
||
$('#mobile-nav li a, #nav li a').each -> | ||
$this = $(this) | ||
|
||
if $this.attr('href').match(pageName) | ||
$this.parent().addClass('on') |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.