Skip to content

Commit

Permalink
start writing documentation, add pygments
Browse files Browse the repository at this point in the history
  • Loading branch information
tasuki committed Aug 12, 2012
1 parent 0cde44e commit fa3c839
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 3 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
name: jQuery Masonry Ordered
permalink: /:title
pygments: true
3 changes: 2 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<title>{% if page.category != 'home' %}{{ page.title }} &ndash; {% endif %}{{ site.name }}</title>
<link rel="icon" type="image/ico" href="{{ path }}img/favicon.ico"/>
<link rel="stylesheet" href="{{ path }}css/style.css" />
<link rel="stylesheet" href="{{ path }}css/pygments.css" />
<link rel="stylesheet" href="{{ path }}css/jquery-ui.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
Expand All @@ -24,7 +25,7 @@ <h1><a href="{{ path }}index.html">Masonry Ordered</a></h1>
</ul>
</div>

<div id="content">
<div id="content" class="{{ page.class }}">
{{ content }}
</div>
</body>
Expand Down
32 changes: 31 additions & 1 deletion _posts/1970-01-01-introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
---
layout: default
class: docs
---

#Introduction

[TODO]
In case you haven't, you should start by reading the [introduction to jQuery Masonry](http://masonry.desandro.com/docs/intro.html). The usage of jQuery Masonry Ordered is almost same, this page highlights the few differences.

## Getting started -- markup

The only difference is that after including jQuery and Masonry, you need to include Masonry Sorted:

{% highlight html %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="/path/to/jquery.masonry.min.js"></script>
<script src="/path/to/jquery.masonry.ordered.js"></script>
{% endhighlight %}

## Repository / development

The repository of jQuery Masonry Sorted is at [github.com/tasuk/masonry-ordered](http://github.com/tasuk/masonry-ordered). There you can find the newest version, submit bug reports, or help with development.

## Thanks to:
- [David DeSandro](http://desandro.com/) for the amazing [jQuery Masonry](http://masonry.desandro.com/)
- [John Resig](http://ejohn.org/) for creating [jQuery](http://jquery.com/)

## License
JQuery Masonry Sorted is provided under the MIT license:

> Copyright &copy; 2012 Vit 'tasuki' Brunner
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
59 changes: 59 additions & 0 deletions css/pygments.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.hll { background-color: #49483e }
.c { color: #75715e } /* Comment */
.err { color: #960050; background-color: #1e0010 } /* Error */
.k { color: #66d9ef } /* Keyword */
.l { color: #ae81ff } /* Literal */
.n { color: #f8f8f2 } /* Name */
.o { color: #f92672 } /* Operator */
.p { color: #f8f8f2 } /* Punctuation */
.cm { color: #75715e } /* Comment.Multiline */
.cp { color: #75715e } /* Comment.Preproc */
.c1 { color: #75715e } /* Comment.Single */
.cs { color: #75715e } /* Comment.Special */
.ge { font-style: italic } /* Generic.Emph */
.gs { font-weight: bold } /* Generic.Strong */
.kc { color: #66d9ef } /* Keyword.Constant */
.kd { color: #66d9ef } /* Keyword.Declaration */
.kn { color: #f92672 } /* Keyword.Namespace */
.kp { color: #66d9ef } /* Keyword.Pseudo */
.kr { color: #66d9ef } /* Keyword.Reserved */
.kt { color: #66d9ef } /* Keyword.Type */
.ld { color: #e6db74 } /* Literal.Date */
.m { color: #ae81ff } /* Literal.Number */
.s { color: #e6db74 } /* Literal.String */
.na { color: #a6e22e } /* Name.Attribute */
.nb { color: #f8f8f2 } /* Name.Builtin */
.nc { color: #a6e22e } /* Name.Class */
.no { color: #66d9ef } /* Name.Constant */
.nd { color: #a6e22e } /* Name.Decorator */
.ni { color: #f8f8f2 } /* Name.Entity */
.ne { color: #a6e22e } /* Name.Exception */
.nf { color: #a6e22e } /* Name.Function */
.nl { color: #f8f8f2 } /* Name.Label */
.nn { color: #f8f8f2 } /* Name.Namespace */
.nx { color: #a6e22e } /* Name.Other */
.py { color: #f8f8f2 } /* Name.Property */
.nt { color: #f92672 } /* Name.Tag */
.nv { color: #f8f8f2 } /* Name.Variable */
.ow { color: #f92672 } /* Operator.Word */
.w { color: #f8f8f2 } /* Text.Whitespace */
.mf { color: #ae81ff } /* Literal.Number.Float */
.mh { color: #ae81ff } /* Literal.Number.Hex */
.mi { color: #ae81ff } /* Literal.Number.Integer */
.mo { color: #ae81ff } /* Literal.Number.Oct */
.sb { color: #e6db74 } /* Literal.String.Backtick */
.sc { color: #e6db74 } /* Literal.String.Char */
.sd { color: #e6db74 } /* Literal.String.Doc */
.s2 { color: #e6db74 } /* Literal.String.Double */
.se { color: #ae81ff } /* Literal.String.Escape */
.sh { color: #e6db74 } /* Literal.String.Heredoc */
.si { color: #e6db74 } /* Literal.String.Interpol */
.sx { color: #e6db74 } /* Literal.String.Other */
.sr { color: #e6db74 } /* Literal.String.Regex */
.s1 { color: #e6db74 } /* Literal.String.Single */
.ss { color: #e6db74 } /* Literal.String.Symbol */
.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.vc { color: #f8f8f2 } /* Name.Variable.Class */
.vg { color: #f8f8f2 } /* Name.Variable.Global */
.vi { color: #f8f8f2 } /* Name.Variable.Instance */
.il { color: #ae81ff } /* Literal.Number.Integer.Long */
13 changes: 12 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@
.clear { clear: both; }

body { background: #553; color: #FFD; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 16px; padding: 10px; }
a { color: #D17; }
a:hover { text-decoration: none; }

h1 { color: #199; font-size: 20px; margin-bottom: 5px; }
h1, #content.docs h2, #content.docs h3 { color: #199; margin-bottom: 10px; }
blockquote { border-left: 2px solid #553; font-size: 10px; padding: 0px 5px; }
p { margin: 5px 0px; }
.left { float: left; }
.right { float: right; }
.padmore { padding: 10px; }

#navigation { position: absolute; width: 180px; }
#navigation h1 { font-size: 20px; margin-top: 25px; }
#navigation li { list-style-type: none; margin-top: 5px; }
#navigation a { color: #FFD; text-decoration: none; }
#navigation a:hover { text-decoration: underline; }

#content { background: #FFD; border-radius: 5px; color: #553; padding: 10px; margin-left: 200px; }
#content.docs { max-width: 800px; padding: 20px; }
#content.docs h1 { font-size: 30px; letter-spacing: -1px; }
#content.docs h2 { font-size: 20px; margin: 15px 0px 5px 0px; }
#content.docs li { list-style-type: none; }
.item { background: #199; color: #FFD; float: left; font-size: 20px; margin: 10px; padding: 10px; width: 200px; border-radius: 5px; }
.item a { color: #FFD; }
.item a:hover { text-decoration: none; }
Expand All @@ -34,3 +43,5 @@ h1 { color: #199; font-size: 20px; margin-bottom: 5px; }
#slider-explanation { margin-right: 330px; }
#slider-wrap { float: right; margin: 10px; width: 300px; }
#slider { font-size: 13px; }

.highlight { background: #553; border-radius: 5px; color: #FFD; margin: 10px 0px; padding: 10px; }

0 comments on commit fa3c839

Please sign in to comment.