Permalink
Browse files

initial version

  • Loading branch information...
1 parent f0aeb60 commit e94f881a64c990a05e46d191fab74d6ef757f002 @rubiii rubiii committed Jun 29, 2013
Showing with 3,091 additions and 484 deletions.
  1. +9 −13 Gemfile
  2. +24 −10 Gemfile.lock
  3. +4 −0 Rakefile
  4. +29 −1 config.rb
  5. +39 −0 helpers/layout_helper.rb
  6. BIN source/images/background.jpg
  7. BIN source/images/background.png
  8. BIN source/images/middleman.png
  9. +0 −10 source/index.html.erb
  10. +45 −0 source/index.html.slim
  11. +0 −1 source/javascripts/all.js
  12. +41 −0 source/javascripts/main.js.coffee
  13. +0 −19 source/layouts/layout.erb
  14. +72 −0 source/layouts/layout.slim
  15. +3 −0 source/partials/_nav_index.html.slim
  16. +10 −0 source/partials/_nav_version1.html.slim
  17. +12 −0 source/partials/_nav_version2.html.slim
  18. +6 −0 source/partials/_nav_version3.html.slim
  19. +46 −0 source/stylesheets/_code.css.sass
  20. +5 −0 source/stylesheets/_content.css.sass
  21. +28 −0 source/stylesheets/_header.css.sass
  22. +73 −0 source/stylesheets/_nav.css.sass
  23. +3 −0 source/stylesheets/_reset.css.sass
  24. +68 −0 source/stylesheets/_responsive.css.sass
  25. +11 −0 source/stylesheets/_variables.css.sass
  26. +0 −55 source/stylesheets/all.css
  27. +34 −0 source/stylesheets/components/_floating-link-list.css.sass
  28. +7 −0 source/stylesheets/components/_icon.css.sass
  29. +21 −0 source/stylesheets/components/_list-of-icons.css.sass
  30. +24 −0 source/stylesheets/components/_prev-next.css.sass
  31. +39 −0 source/stylesheets/components/_status.css.sass
  32. +0 −375 source/stylesheets/normalize.css
  33. +69 −0 source/stylesheets/screen.css.sass
  34. +38 −0 source/version1/additional-resources.html.slim
  35. +10 −0 source/version1/alternatives.html.slim
  36. +49 −0 source/version1/code-hooks.html.slim
  37. +68 −0 source/version1/configuration.html.slim
  38. +115 −0 source/version1/creating-model-objects.html.slim
  39. +253 −0 source/version1/executing-soap-requests.html.slim
  40. +178 −0 source/version1/getting-started.html.slim
  41. +75 −0 source/version1/handling-the-response.html.slim
  42. +22 −0 source/version1/index.html.slim
  43. +17 −0 source/version1/troubleshooting.html.slim
  44. +66 −0 source/version2/changes.html.slim
  45. +95 −0 source/version2/client.html.slim
  46. +68 −0 source/version2/errors.html.slim
  47. +10 −0 source/version2/examples.html.slim
  48. +450 −0 source/version2/globals.html.slim
  49. +20 −0 source/version2/index.html.slim
  50. +147 −0 source/version2/locals.html.slim
  51. +83 −0 source/version2/model.html.slim
  52. +50 −0 source/version2/observers.html.slim
  53. +27 −0 source/version2/requests.html.slim
  54. +98 −0 source/version2/response.html.slim
  55. +119 −0 source/version2/testing.html.slim
  56. +187 −0 source/version3/getting-started.html.slim
  57. +29 −0 source/version3/http-configuration.html.slim
  58. +46 −0 source/version3/index.html.slim
  59. +21 −0 source/version3/logging.html.slim
  60. +10 −0 source/version3/soap-response.slim
  61. +18 −0 source/version3/testing.html.slim
View
@@ -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'
View
@@ -1,5 +1,5 @@
GEM
- remote: http://rubygems.org/
+ remote: https://rubygems.org/
specs:
activesupport (3.2.12)
i18n (~> 0.6)
@@ -31,18 +31,18 @@ GEM
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
- middleman (3.1.0)
+ middleman (3.1.1)
coffee-script (~> 2.2.0)
compass (>= 0.12.2)
execjs (~> 1.4.0)
haml (>= 3.1.6)
kramdown (~> 1.0.0)
- middleman-core (= 3.1.0)
- middleman-more (= 3.1.0)
+ middleman-core (= 3.1.1)
+ middleman-more (= 3.1.1)
middleman-sprockets (>= 3.1.2)
sass (>= 3.1.20)
uglifier (~> 2.1.0)
- middleman-core (3.1.0)
+ middleman-core (3.1.1)
activesupport (~> 3.2.6)
bundler (~> 1.1)
i18n (~> 0.6.1)
@@ -56,26 +56,35 @@ GEM
middleman-core (>= 3.0.2)
multi_json (~> 1.0)
rack-livereload
- middleman-more (3.1.0)
+ middleman-more (3.1.1)
middleman-sprockets (3.1.2)
middleman-core (>= 3.0.14)
middleman-more (>= 3.0.14)
sprockets (~> 2.1)
sprockets-helpers (~> 1.0.0)
sprockets-sass (~> 1.0.0)
+ middleman-syntax (1.2.1)
+ middleman-core (~> 3.0)
+ rouge (~> 0.3.0)
multi_json (1.7.7)
rack (1.5.2)
rack-livereload (0.3.15)
rack
rack-test (0.6.2)
rack (>= 1.0)
+ rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.0)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
ffi (>= 0.5.0)
- ruby18_source_location (0.2)
+ redcarpet (2.1.1)
+ rouge (0.3.7)
+ thor
sass (3.2.9)
+ slim (2.0.0)
+ temple (~> 0.6.5)
+ tilt (~> 1.3, >= 1.3.3)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
@@ -86,6 +95,7 @@ GEM
sprockets-sass (1.0.1)
sprockets (~> 2.0)
tilt (~> 1.1)
+ temple (0.6.5)
thor (0.18.1)
tilt (1.3.7)
uglifier (2.1.1)
@@ -96,6 +106,10 @@ PLATFORMS
ruby
DEPENDENCIES
- middleman (~> 3.1.0)
- middleman-livereload (~> 3.1.0)
- ruby18_source_location
+ middleman (~> 3.1)
+ middleman-livereload (~> 3.1)
+ middleman-syntax
+ rake (~> 10.1)
+ redcarpet (= 2.1.1)
+ slim (~> 2.0)
+ tilt (= 1.3.7)
View
@@ -0,0 +1,4 @@
+desc 'Start development server'
+task :server do
+ system 'bundle exec middleman server'
+end
View
@@ -36,7 +36,7 @@
# activate :automatic_image_sizes
# Reload the browser automatically whenever files change
-# activate :livereload
+activate :livereload
# Methods defined in the helpers block are available in templates
# helpers do
@@ -51,6 +51,34 @@
set :images_dir, 'images'
+set :markdown_engine, :redcarpet
+
+# XXX: Does not seem to work.
+#set :markdown, options
+
+# XXX: Find out how to properly pass markdown options
+# to Tilt for an embedded Slim engine.
+class Tilt::RedcarpetTemplate::Redcarpet2
+
+ alias_method :original_prepare, :prepare
+
+ def prepare
+ options.merge!(
+ autolink: true,
+ fenced_code_blocks: true,
+ no_intra_emphasis: true,
+ tables: true,
+ strikethrough: true,
+ disable_indented_code_blocks: true,
+ space_after_headers: true,
+ superscript: true
+ )
+
+ original_prepare
+ end
+
+end
+
# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
@@ -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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Deleted file not rendered
View
@@ -1,10 +0,0 @@
----
-title: Welcome to Middleman
----
-
-<div class="welcome">
- <h1>Middleman is Watching</h1>
- <p class="doc">
- <%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
- </p><!-- .doc -->
-</div><!-- .welcome -->
@@ -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)
@@ -1 +0,0 @@
-//= require_tree .
@@ -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')
@@ -1,19 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <meta charset="utf-8">
-
- <!-- Always force latest IE rendering engine or request Chrome Frame -->
- <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
-
- <!-- Use title if it's in the page YAML frontmatter -->
- <title><%= current_page.data.title || "The Middleman" %></title>
-
- <%= stylesheet_link_tag "normalize", "all" %>
- <%= javascript_include_tag "all" %>
- </head>
-
- <body class="<%= page_classes %>">
- <%= yield %>
- </body>
-</html>
Oops, something went wrong. Retry.

0 comments on commit e94f881

Please sign in to comment.