Permalink
Browse files

updated license to 2013, serve license file with dev server, copy lic…

…ense and readme to deploy folder
  • Loading branch information...
1 parent fa3cd14 commit f5f3906e47edcb6ca5e0f3481a41bc13c68ef5e5 @mustardamus mustardamus committed Jan 7, 2013
Showing with 15 additions and 1 deletion.
  1. +1 −1 LICENSE
  2. +5 −0 app/jqapi.rb
  3. +3 −0 app/views/index.haml
  4. +6 −0 tasks/deploy.thor
View
@@ -1,4 +1,4 @@
-Copyright (c) 2010-2012 Sebastian Senf, http://jqapi.com/
+Copyright (c) 2010-2013 Sebastian Senf, http://jqapi.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
@@ -58,6 +58,11 @@ class Jqapi < Sinatra::Base
serve_file('docs/resources', "#{params[:splat][0]}.gif")
end
+ get '/LICENSE' do
+ content_type 'text'
+ serve_file('', 'LICENSE')
+ end
+
get '/' do
content_type :html
haml :index
View
@@ -5,6 +5,9 @@
%meta{:name => "content-type", :content => "text/html; charset=utf-8"}
%meta{:name => "description", :content => "Alternative jQuery Documentation Browser"}
+
+ %link{:rel => "shortcut icon", :href => "/assets/favicon.ico", :type => "image/x-icon"}
+ %link{:rel => "icon", :href => "/favicon.ico", :type => "image/x-icon"}
%link{:href => '/assets/bundle.css', :type => 'text/css', :rel => 'stylesheet'}
%script{:src => '/assets/bundle.js', :type => 'text/javascript'}
View
@@ -54,6 +54,12 @@ class Deploy < Thor
File.open("#{deploy_path}/index.html", 'w').write(index_markup)
puts "Generated index.html"
+
+ FileUtils.cp 'LICENSE', "#{deploy_path}/"
+ puts "Copied License File"
+
+ FileUtils.cp 'README.md', "#{deploy_path}/"
+ puts "Copied Readme File"
end
desc 'pack', 'creates a .zip of the standalone version, saved to public/'

0 comments on commit f5f3906

Please sign in to comment.