Permalink
Browse files

Moar dokumentashuns

  • Loading branch information...
actsasbuffoon committed Aug 27, 2011
1 parent 130abed commit 2f4c5195d022f998e25541ebbc58ac5a967a90a9
View
@@ -18,6 +18,7 @@ gem "sass"
gem "rdiscount"
gem "coffee-script"
gem "git"
+gem "pygments.rb"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
View
@@ -10,6 +10,7 @@ GEM
async_sinatra (0.5.0)
rack (>= 1.2.1)
sinatra (>= 1.0)
+ blankslate (2.1.2.4)
bson (1.3.1)
builder (2.1.2)
coffee-script (2.2.0)
@@ -23,6 +24,7 @@ GEM
eventmachine (0.12.10)
execjs (1.2.4)
multi_json (~> 1.0)
+ ffi (1.0.9)
git (1.2.5)
haml (3.1.2)
i18n (0.5.0)
@@ -42,6 +44,8 @@ GEM
mustache (0.99.4)
nokogiri (1.5.0)
pygmentize (0.0.3)
+ pygments.rb (0.1.3)
+ rubypython (>= 0.5.1)
rack (1.3.2)
rake (0.9.2)
rcov (0.9.10)
@@ -50,6 +54,9 @@ GEM
rocco (0.8.1)
mustache
redcarpet
+ rubypython (0.5.1)
+ blankslate (>= 2.1.2.3)
+ ffi (~> 1.0.7)
sass (3.1.7)
shoulda (2.11.3)
sinatra (1.2.6)
@@ -80,6 +87,7 @@ DEPENDENCIES
mongoid (>= 2.1.7)
nokogiri (>= 1.4.4)
pygmentize
+ pygments.rb
rcov
rdiscount
rocco
View
@@ -96,6 +96,8 @@ namespace :docs do
puts "Compiling markdown"
require 'haml'
require 'rdiscount'
+ require 'pygments'
+ require File.expand_path('utils.rb')
Haml::Engine.instance_variable_set "@options".to_sym, {format: :html5}
args = {
rb_files: Dir["doc_files/output/rocco_rb/**/*.html"],
@@ -105,7 +107,9 @@ namespace :docs do
Dir["doc_files/pages/*.markdown"].each do |file|
File.open("doc_files/output/#{file.split("/").last.sub(/\.markdown$/, ".html")}", "w") do |f|
f.write Haml::Engine.new(File.read "doc_files/layout.haml").render(Object.new, args.merge(current_file: file)) do
- Markdown.new(File.read file).to_html
+ markdown = File.read file
+ markdown = pygmentize_markdown(markdown)
+ Markdown.new(markdown).to_html
end
end
end
@@ -126,7 +130,7 @@ namespace :docs do
desc "Copy static files for docs"
task :copy_static do
puts "Copying images"
- FileUtils.cp_r "doc_files/images", "doc_files/output/images"
+ FileUtils.cp_r "doc_files/images", "doc_files/output/"
end
desc "Move docs to gh-pages branch"
@@ -3,8 +3,8 @@ position_clouds = () ->
el = $(e)
el.offset({
left: Math.floor( Math.random() * (960 - el.width()) ),
- top: Math.floor( Math.random() * ($(window).height() - 400) )
+ top: Math.floor( Math.random() * ($(document).height() - el.height() - 200) )
})
-$(document).ready () ->
+$(window).load () ->
position_clouds()
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -42,5 +42,6 @@
%img.cloud#cloud5{src: "images/cloud5.png"}
%img.cloud#cloud6{src: "images/cloud6.png"}
%img.cloud#cloud7{src: "images/cloud7.png"}
- #footer
- %p Rocket.io and all associated content are licensed under the MIT license.
+ #push
+ #footer
+ %p Rocket.io and all associated content are licensed under the MIT license.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -22,6 +22,9 @@ <h3>Pages</h3>
<li>
<a href='index.html'>index</a>
</li>
+ <li>
+ <a href='Introduction.html'>Introduction</a>
+ </li>
<li>
<a href='ORM_Notes.html'>ORM Notes</a>
</li>
@@ -87,9 +90,10 @@ <h2 id='content_header'>ORM_Notes.markdown</h2>
<img class='cloud' id='cloud5' src='images/cloud5.png' />
<img class='cloud' id='cloud6' src='images/cloud6.png' />
<img class='cloud' id='cloud7' src='images/cloud7.png' />
- <div id='footer'>
- <p>Rocket.io and all associated content are licensed under the MIT license.</p>
- </div>
+ <div id='push'></div>
+ </div>
+ <div id='footer'>
+ <p>Rocket.io and all associated content are licensed under the MIT license.</p>
</div>
</body>
</html>
@@ -1,19 +1,8 @@
html, body {
background: #aaaadd;
margin: 0px;
- padding: 0px; }
-
-#footer {
- background-image: url("../images/ground.png");
- height: 64px;
- position: absolute;
- bottom: 0px;
- left: 0px;
- width: 100%;
- z-index: 10; }
- #footer p {
- padding: 10px 40px;
- color: #bbffbb; }
+ padding: 0px;
+ height: 100%; }
#topbar {
margin-bottom: 15px; }
@@ -23,7 +12,8 @@ html, body {
left: 120px; }
.row {
- display: table-row; }
+ display: table-row;
+ width: 960px; }
#container {
width: 960px;
@@ -42,19 +32,218 @@ html, body {
z-index: 50;
position: relative;
border-radius: 0px 10px 10px 0px;
- width: 100%; }
+ width: 760px; }
#container #navigation {
background: rgba(200, 200, 255, 0.4);
display: table-cell;
padding: 10px;
z-index: 50;
position: relative;
- border-radius: 10px 0px 0px 10px; }
+ border-radius: 10px 0px 0px 10px;
+ width: 200px; }
#container #navigation ul {
list-style: none;
padding: 0px;
margin: 0px; }
+#wrapper {
+ min-height: 100%;
+ margin-bottom: -80px; }
+
+#push {
+ height: 80px; }
+
+#footer {
+ background-image: url("../images/ground.png");
+ height: 64px;
+ width: 100%; }
+ #footer p {
+ padding: 10px 40px;
+ color: #bbffbb; }
+
.cloud {
position: absolute;
z-index: 5; }
+
+.code_example {
+ overflow: auto;
+ background: #002b36;
+ width: 720px;
+ padding: 10px; }
+
+pre {
+ margin: 0px; }
+
+.code_example {
+ color: #93a1a1 !important;
+ font-style: normal !important;
+ font-weight: normal !important; }
+
+.code_example .c {
+ color: #586e75 !important;
+ font-style: italic !important; }
+
+.code_example .cm {
+ color: #586e75 !important;
+ font-style: italic !important; }
+
+.code_example .cp {
+ color: #586e75 !important;
+ font-style: italic !important; }
+
+.code_example .c1 {
+ color: #586e75 !important;
+ font-style: italic !important; }
+
+.code_example .cs {
+ color: #586e75 !important;
+ font-weight: bold !important;
+ font-style: italic !important; }
+
+.code_example .err {
+ color: #dc322f !important;
+ background: none !important; }
+
+.code_example .k {
+ color: #cb4b16 !important; }
+
+.code_example .o {
+ color: #93a1a1 !important;
+ font-weight: bold !important; }
+
+.code_example .p {
+ color: #93a1a1 !important; }
+
+.code_example .ow {
+ color: #2aa198 !important;
+ font-weight: bold !important; }
+
+.code_example .gd {
+ color: #93a1a1 !important;
+ background-color: #372c34 !important;
+ display: inline-block; }
+
+.code_example .gd .x {
+ color: #93a1a1 !important;
+ background-color: #4d2d33 !important;
+ display: inline-block; }
+
+.code_example .ge {
+ color: #93a1a1 !important;
+ font-style: italic !important; }
+
+.code_example .gh {
+ color: #586e75 !important; }
+
+.code_example .gi {
+ color: #93a1a1 !important;
+ background-color: #1a412b !important;
+ display: inline-block; }
+
+.code_example .gi .x {
+ color: #93a1a1 !important;
+ background-color: #355720 !important;
+ display: inline-block; }
+
+.code_example .gs {
+ color: #93a1a1 !important;
+ font-weight: bold !important; }
+
+.code_example .gu {
+ color: #6c71c4 !important; }
+
+.code_example .kc {
+ color: #859900 !important;
+ font-weight: bold !important; }
+
+.code_example .kd {
+ color: #268bd2 !important; }
+
+.code_example .kp {
+ color: #cb4b16 !important;
+ font-weight: bold !important; }
+
+.code_example .kr {
+ color: #d33682 !important;
+ font-weight: bold !important; }
+
+.code_example .kt {
+ color: #2aa198 !important; }
+
+.code_example .n {
+ color: #268bd2 !important; }
+
+.code_example .na {
+ color: #268bd2 !important; }
+
+.code_example .nb {
+ color: #859900 !important; }
+
+.code_example .nc {
+ color: #d33682 !important; }
+
+.code_example .no {
+ color: #b58900 !important; }
+
+.code_example .nl {
+ color: #859900 !important; }
+
+.code_example .ne {
+ color: #268bd2 !important;
+ font-weight: bold !important; }
+
+.code_example .nf {
+ color: #268bd2 !important;
+ font-weight: bold !important; }
+
+.code_example .nn {
+ color: #b58900 !important; }
+
+.code_example .nt {
+ color: #268bd2 !important;
+ font-weight: bold !important; }
+
+.code_example .nx {
+ color: #b58900 !important; }
+
+.code_example .vg {
+ color: #268bd2 !important; }
+
+.code_example .vi {
+ color: #268bd2 !important; }
+
+.code_example .nv {
+ color: #268bd2 !important; }
+
+.code_example .mf {
+ color: #2aa198 !important; }
+
+.code_example .m {
+ color: #2aa198 !important; }
+
+.code_example .mh {
+ color: #2aa198 !important; }
+
+.code_example .mi {
+ color: #2aa198 !important; }
+
+.code_example .s {
+ color: #2aa198 !important; }
+
+.code_example .sd {
+ color: #2aa198 !important; }
+
+.code_example .s2 {
+ color: #2aa198 !important; }
+
+.code_example .se {
+ color: #dc322f !important; }
+
+.code_example .si {
+ color: #268bd2 !important; }
+
+.code_example .sr {
+ color: #2aa198 !important; }
+
+.code_example .s1 {
+ color: #2aa198 !important; }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 2f4c519

Please sign in to comment.