-
Notifications
You must be signed in to change notification settings - Fork 3
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
0 parents
commit 01bc68c
Showing
18 changed files
with
6,722 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.bundle | ||
.DS_Store | ||
.rvmrc | ||
_site | ||
bin | ||
source/tmp/* | ||
_site/* | ||
.sass-cache/* | ||
*.sassc | ||
*\#* | ||
~* | ||
_source/* | ||
deploy.sh |
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,6 @@ | ||
source :rubygems | ||
|
||
gem "jekyll" | ||
gem "rdiscount" | ||
gem "haml" | ||
gem "RedCloth" |
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,34 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
RedCloth (4.2.9) | ||
albino (1.3.3) | ||
posix-spawn (>= 0.3.6) | ||
classifier (1.3.3) | ||
fast-stemmer (>= 1.0.0) | ||
directory_watcher (1.4.1) | ||
fast-stemmer (1.0.0) | ||
haml (3.1.4) | ||
jekyll (0.11.2) | ||
albino (~> 1.3) | ||
classifier (~> 1.3) | ||
directory_watcher (~> 1.1) | ||
kramdown (~> 0.13) | ||
liquid (~> 2.3) | ||
maruku (~> 0.5) | ||
kramdown (0.13.5) | ||
liquid (2.3.0) | ||
maruku (0.6.0) | ||
syntax (>= 1.0.0) | ||
posix-spawn (0.3.6) | ||
rdiscount (1.6.8) | ||
syntax (1.0.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
RedCloth | ||
haml | ||
jekyll | ||
rdiscount |
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,29 @@ | ||
# Validateur Documentation | ||
|
||
This is a documentation site for [Validateur](http://clojurevalidations.info). | ||
|
||
|
||
## Install Dependencies | ||
|
||
With Bundler: | ||
|
||
bundle install --binstubs | ||
|
||
|
||
## How to run a development server | ||
|
||
./bin/jekyll --auto --server | ||
|
||
|
||
## How to regenerate the site | ||
|
||
In order to modify contents and launch dev environment, run: | ||
|
||
./bin/jekyll | ||
|
||
|
||
## License & Copyright | ||
|
||
Copyright (C) 2011-2012 Michael S. Klishin. | ||
|
||
Distributed under the Eclipse Public License, the same as Clojure. |
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,7 @@ | ||
source: . | ||
destination: ./_site | ||
plugins: ./_plugins | ||
auto: true | ||
exclude: [bin, CNAME, Gemfile, Gemfile.lock, README.md] | ||
markdown: rdiscount | ||
permalink: /:title |
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,78 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html lang='en'> | ||
<head> | ||
<title>{{page.title}}</title> | ||
<meta content='width=device-width, initial-scale=1.0' name='viewport' /> | ||
<meta content='Validateur is a Clojure validation library inspired by Ruby's ActiveModel' name='description' /> | ||
<meta content='The ClojureWerkz Team' name='author' /> | ||
<link href='/assets/stylesheets/bootstrap.css' media='screen' rel='stylesheet' type='text/css' /> | ||
<link href='/assets/stylesheets/bootstrap-responsive.css' media='screen' rel='stylesheet' type='text/css' /> | ||
<link href='/assets/stylesheets/sass/styles.css' media='screen' rel='stylesheet' type='text/css' /> | ||
<link href='http://fonts.googleapis.com/css?family=Signika+Negative:300,400,600' rel='stylesheet' type='text/css' /> | ||
<script src='/assets/javascripts/jquery-1.7.min.js' type='text/javascript'></script> | ||
<script src='/assets/javascripts/toc.js'></script> | ||
<meta content='text/html;charset=utf-8' http-equiv='Content-Type' /> | ||
<script type="text/javascript"> | ||
if(!(window.location.hostname === "localhost")) { | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-31282324-8']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<div class='navbar navbar-fixed-top'> | ||
<div class='navbar-inner'> | ||
<div class='container-fluid'> | ||
<a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'> | ||
<span class='icon-bar'></span> | ||
<span class='icon-bar'></span> | ||
<span class='icon-bar'></span> | ||
</a> | ||
<a class='brand' href='/'>Validateur</a> | ||
<div class='nav-collapse'> | ||
<ul class='nav'> | ||
<li class=''> | ||
<a href='/'>Home</a> | ||
</li> | ||
<!-- <li> --> | ||
<!-- <a href="/articles/guides.html">All guides</a> --> | ||
<!-- </li> --> | ||
<li> | ||
<a href='/articles/community.html'>Community</a> | ||
</li> | ||
<li> | ||
<a href='https://github.com/michaelklishin/validateur'>Code on Github</a> | ||
</li> | ||
<li> | ||
<a href='http://clojurewerkz.org'>More Clojure libraries</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class='container-fluid'> | ||
<div class='row-fluid'> | ||
<div class='span3'> | ||
<div class='well sidebar-nav'></div> | ||
</div> | ||
<div class='span9'> | ||
{{ content }} | ||
</div> | ||
</div> | ||
<footer class='footer article'> | ||
<p>This website was developed by | ||
<a href='http://github.com/clojurewerkz'>ClojureWerkz team</a>.</p> | ||
<p>Follow us on Twitter: | ||
<a href='http://twitter.com/clojurewerkz'>ClojureWerkz</a>, <a href='http://twitter.com/michaelklishin'>Michael Klishin</a>, <a href='http://twitter.com/ifesdjeen'>Alex P</a></p> | ||
</footer> | ||
</div> | ||
</body> | ||
</html> |
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,72 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html lang='en' style='height: 100%'> | ||
<head> | ||
<title>{{page.title}}</title> | ||
<meta content='width=device-width, initial-scale=1.0' name='viewport' /> | ||
<meta content='Validateur is a Clojure validation library inspired by Ruby's ActiveModel' name='description' /> | ||
<meta content='The ClojureWerkz Team' name='author' /> | ||
<link href='/assets/stylesheets/bootstrap.css' media='screen' rel='stylesheet' type='text/css' /> | ||
<link href='/assets/stylesheets/bootstrap-responsive.css' media='screen' rel='stylesheet' type='text/css' /> | ||
<link href='/assets/stylesheets/sass/styles.css' media='screen' rel='stylesheet' type='text/css' /> | ||
<link href='http://fonts.googleapis.com/css?family=Signika+Negative:300,400,600' rel='stylesheet' type='text/css' /> | ||
<script src='/assets/javascripts/jquery-1.7.min.js' type='text/javascript'></script> | ||
<script src='/assets/javascripts/toc.js'></script> | ||
<script src='http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js'></script> | ||
<meta content='text/html;charset=utf-8' http-equiv='Content-Type' /> | ||
<script type="text/javascript"> | ||
if(!(window.location.hostname === "localhost")) { | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-31282324-8']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
} | ||
</script> | ||
</head> | ||
<body style='height: 100%'> | ||
<div class='navbar navbar-fixed-top'> | ||
<div class='navbar-inner'> | ||
<div class='container-fluid'> | ||
<a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'> | ||
<span class='icon-bar'></span> | ||
<span class='icon-bar'></span> | ||
<span class='icon-bar'></span> | ||
</a> | ||
<a class='brand' href='/'>Validateur</a> | ||
<div class='nav-collapse'> | ||
<ul class='nav'> | ||
<li> | ||
<a href='/'>Home</a> | ||
</li> | ||
<!-- <li> --> | ||
<!-- <a href="/articles/guides.html">All guides</a> --> | ||
<!-- </li> --> | ||
<li> | ||
<a href='/articles/community.html'>Community</a> | ||
</li> | ||
<li> | ||
<a href='https://github.com/michaelklishin/validateur'>Code on Github</a> | ||
</li> | ||
<li> | ||
<a href='http://clojurewerkz.org'>More Clojure libraries</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class='container'> | ||
{{ content }} | ||
<footer class='footer'> | ||
<p>This website was developed by the | ||
<a href='http://github.com/clojurewerkz'>ClojureWerkz Team</a>.</p> | ||
<p>Follow us on Twitter: | ||
<a href='http://twitter.com/clojurewerkz'>ClojureWerkz</a>, <a href='http://twitter.com/michaelklishin'>Michael Klishin</a>, <a href='http://twitter.com/ifesdjeen'>Alex P</a></p> | ||
</footer> | ||
</div> | ||
</body> | ||
</html> |
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,35 @@ | ||
module Jekyll | ||
|
||
# | ||
# Render gist | ||
# | ||
# Usage: | ||
# | ||
# {% gist gist_id %} => | ||
# | ||
# Raises: Liquid::SyntaxError | ||
class Gist < ::Liquid::Tag | ||
|
||
Syntax = /(#{::Liquid::Expression}+)?/ | ||
|
||
def initialize(tag_name, markup, tokens) | ||
if markup =~ Syntax | ||
@gist_id = $1 | ||
@options = {} | ||
markup.scan(::Liquid::TagAttributes) { |key, value| @options[key.to_sym] = value.gsub(/"|'/, '') } | ||
else | ||
raise ::Liquid::SyntaxError.new("Syntax Error in 'link' - Valid syntax: gist <id> <options>") | ||
end | ||
|
||
super | ||
end | ||
|
||
def render(context) | ||
%{<script src="http://gist.github.com/#{@gist_id}.js"></script>} | ||
end | ||
end | ||
|
||
end | ||
|
||
|
||
Liquid::Template.register_tag('gist', Jekyll::Gist) |
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,31 @@ | ||
--- | ||
title: "Validateur: Community" | ||
layout: article | ||
--- | ||
|
||
## News & Announcements on Twitter | ||
|
||
To subscribe for announcements of releases, important changes and so on, please follow [@ClojureWerkz](https://twitter.com/#!/clojurewerkz) on Twitter. | ||
|
||
|
||
## What is ClojureWerkz? | ||
|
||
Project Name is part of the group of libraries known as ClojureWerkz, together with | ||
[Monger](http://clojuremongodb.info), [Welle](http://clojureriak.info), [Quartzite](http://clojurequartz.info), [Neocons](https://github.com/michaelklishin/neocons), [Langohr](https://github.com/michaelklishin/langohr), [Elastisch](https://github.com/clojurewerkz/elastisch) and several others. | ||
|
||
|
||
## Reporting Issues | ||
|
||
If you find a bug, poor default, missing feature or find any part of the API inconvenient, please [file an issue](http://github.com/michaelklishin/validateur/issues) on Github. | ||
If possible, try to explain what behavior you expected and why. Bonus points for contributing failing test cases. | ||
|
||
|
||
## Contributing | ||
|
||
Validateur uses [Leiningen 2](https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md). Make sure you have it installed and then run tests against | ||
supported Clojure versions using | ||
|
||
lein2 all test | ||
|
||
Then create a branch and make your changes on it. Once you are done with your changes and all tests pass, submit a pull request | ||
on Github. |
Oops, something went wrong.