Skip to content
Browse files

initial commit

  • Loading branch information...
0 parents commit 7226dfac4a65157708e77f13abad156e7d001353 @inukshuk committed Jul 14, 2011
0 History.md
No changes.
0 README.md
No changes.
67 examples/rdoc.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+ <title>Documentation for ‘Array#unshift’</title>
+ <link rel="stylesheet" href="../support/style.css" type="text/css" charset="utf-8" media="screen">
+ <link rel="stylesheet" href="../gears/style.css" type="text/css" charset="utf-8" media="screen">
+</head>
+<body id="tm_webpreview_body" class="gears">
+ <div id="tm_webpreview_header">
+ <img id="gradient" src="../gears/images/header.png" alt="header" name="gradient">
+ <p class="headline">Documentation for ‘Array#unshift’</p>
+ <p class="type">RDoc</p>
+ <img id="teaser" src="../gears/images/teaser.png" alt="teaser" name="teaser">
+ <div id="theme_switcher">
+ <form action="#" onsubmit="return false;">
+ <div>
+ Theme:
+ <select onchange="selectTheme(event);" id="theme_selector">
+ <option value="bright" title="bright">
+ Bright
+ </option>
+ <option value="dark" title="dark">
+ Dark
+ </option>
+ <option value="gears" title="../gears">
+ Gears
+ </option>
+ <option value="halloween" title="/Applications/TextMate.app/Contents/SharedSupport/Support/themes/halloween">
+ Halloween
+ </option>
+ <option value="night" title="/Applications/TextMate.app/Contents/SharedSupport/Support/themes/night">
+ Night
+ </option>
+ <option value="shiny" title="/Applications/TextMate.app/Contents/SharedSupport/Support/themes/shiny">
+ Shiny
+ </option>
+ </select>
+ </div><script type="text/javascript" charset="utf-8">document.getElementById('theme_selector').value = 'bright';</script>
+ </form>
+ </div>
+ </div>
+ <div id="tm_webpreview_content" class="gears">
+ <select id="search_history" style="float: right;">
+ <option value="Array#unshift" selected="selected">
+ Array#unshift
+ </option>
+ </select>
+ <div id="actual_output" style="margin-top: 3em">
+ <h2>
+ <a href="javascript:ri('Array')">Array</a>#unshift
+ </h2>
+ <pre>
+ array.unshift(obj, ...) -&gt; array
+</pre>
+ <hr>
+ <pre>
+ Prepends objects to the front of _array_. other elements up one.
+
+ a = [ "b", "c", "d" ]
+ a.unshift("a") #=&gt; ["a", "b", "c", "d"]
+ a.unshift(1, 2) #=&gt; [ 1, 2, "a", "b", "c", "d"]
+</pre>
+ </div>
+ </div>
+</body>
+</html>
BIN gears/images/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN gears/images/teaser.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 gears/style.css
@@ -0,0 +1,113 @@
+
+body.gears {
+ font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, sans-serif;
+ color: #333;
+ background-color: #f2f2f2;
+}
+
+.gears #tm_webpreview_header {
+ position: relative;
+ padding: 56px 0 0 0;
+ margin: 0;
+ font-size: 11.9px;
+ overflow: visible;
+}
+
+.gears #tm_webpreview_header #gradient {
+ width: 80px;
+ height: 85px;
+ top: 0;
+ left: 0;
+ z-index: 1;
+}
+
+.gears #tm_webpreview_header #teaser {
+ height: 170px;
+ width: 147px;
+ right: 0;
+ top: 0;
+ z-index: 1;
+}
+
+.gears #tm_webpreview_header #theme_switcher {
+ font-size: 100%;
+ color: #333;
+ top: 54px;
+ right: 35px;
+}
+
+.gears #tm_webpreview_header .headline,
+.gears #tm_webpreview_header .type {
+ display: block;
+ position: static;
+ color: #333;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 18.45px;
+ margin: 0;
+ padding: 0;
+}
+
+.gears #tm_webpreview_header p.headline {
+ margin-left: 56px;
+}
+
+.gears #tm_webpreview_header p.type {
+ position: absolute;
+ top: 38px;
+ left: 56px;
+}
+
+
+.gears #tm_webpreview_content {
+ margin: 5px 28px 20px 28px;
+ padding: 8px;
+ min-width: 460px;
+ position: relative;
+ z-index: 2;
+ background-color: #fff;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.2);
+ border-color: #3c3c3c;
+}
+
+.gears #tm_webpreview_content #search_history {
+ margin: 4px 0 0 0;
+ font-size: 11px;
+}
+
+.gears #tm_webpreview_content #actual_output {
+ padding: 0;
+ margin: 0;
+}
+
+.gears #tm_webpreview_content #actual_output h2 {
+ color: #000;
+ font-weight: 700;
+ font-style: normal;
+ font-size: 13.6px;
+ word-spacing: -1px;
+}
+
+.gears a {
+ color: #0088cc;
+ text-decoration: none;
+}
+
+.gears a:hover {
+ text-decoration: underline;
+}
+
+.gears pre {
+ padding: 0;
+}
+
+.gears pre, .gears code {
+ font-family: "Menlo", "Monaco", monospace;
+ font-size: 10px;
+}
+
+.gears hr {
+ background-color: #333;
+ border-color: #333;
+}
211 support/style.css
@@ -0,0 +1,211 @@
+/*
+ Defines the style of HTML Output. To be used in conjunction with `../lib/webpreview.sh`.
+
+ In Flux: http://macromates.com/wiki/Suggestions/StylingHTMLOutput
+
+ I'm not sure whether all the styles should really go in here or if we leave the css in the bundles and include them dynamically. I've copied all things here to make it easier for me mostly while experimenting.
+ — Soryu
+*/
+
+/* =================== */
+/* = General Styling = */
+/* =================== */
+body {
+ margin: 0;
+ padding: 0;
+
+ color: #000000;
+ background: #FFFFFF;
+ font: 13px "Trebuchet MS", Helvetica, sans-serif;
+}
+#tm_webpreview_header {
+ position: fixed;
+ top: 0px;
+ left: 0px;
+ width: 100%;
+
+ color: #FFFFFF;
+ font-size: 200%;
+}
+#tm_webpreview_header #gradient {
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 1;
+
+ margin: 0;
+ padding: 0;
+ width: 100%;
+ height: 2.6em;
+}
+#tm_webpreview_header .headline {
+ position: relative;
+ z-index: 3;
+ margin: 0;
+
+ padding-left: 1em;
+ padding-top: 1.5ex;
+}
+#tm_webpreview_header #teaser {
+ position: absolute;
+ top: 0px;
+ right: 0px;
+ z-index: 2;
+
+ margin: 0;
+ padding: 0;
+ height: 2.4em;
+ width: 2.4em;
+}
+#tm_webpreview_header #actions {
+ position: absolute;
+ top: 2.3em;
+ right: 0.5ex;
+
+ z-index: 3;
+
+ font-size: 8pt;
+}
+#tm_webpreview_header .type {
+ position: absolute;
+ top: 3em;
+ right: 6em;
+ z-index: 2;
+
+ color: rgba(255,255,255,0.5);
+ font-size: 8pt;
+ font-weight: light;
+}
+#theme_switcher {
+ position: absolute;
+ top: 1em;
+ right: 6em;
+ z-index: 4;
+
+ font-size: 50%;
+ opacity: 0.1;
+}
+#theme_switcher:hover {
+ opacity: 1;
+}
+#tm_webpreview_footer {
+ position: fixed;
+ bottom: 0px;
+
+ width: 100%;
+ height: 1.6em;
+
+ margin: 0;
+ padding: 0.3em 2em 0 2em;
+
+ color: #777;
+ background: #292929;
+ text-shadow: #000 1px 3px 3px;
+
+ border-top: 2px solid #000;
+}
+#tm_webpreview_footer p {
+ margin: 0;
+ padding: 0;
+}
+
+#tm_webpreview_content {
+ padding: 0.5em 2em 0.5em 2em;
+ margin-top: 6em;
+}
+
+#tm_webpreview_content :first-child {
+ margin-top: 0;
+}
+
+h1 {
+/* font-family: "LucidaGrande";*/
+ font-weight: bolder;
+}
+
+h4 {
+ font-style: italic;
+ margin-top: 1ex;
+ margin-bottom: 1ex;
+}
+
+blockquote {
+/* font-family: "Palatino", "Book Antiqua", Verdana;*/
+ font-style: italic;
+/* font-size: 106%;*/
+
+ margin: 1em 25px;
+ padding-left: 1em;
+}
+
+code, pre {
+ font-size: 95%;
+ font-family: "LuxiMono", "Bitstream Vera Sans Mono", "Monaco", "Courier New", monospace;
+ word-wrap: break-word;
+ white-space: pre;
+ white-space: pre-wrap;
+ white-space: -moz-pre-wrap;
+ white-space: -o-pre-wrap;
+}
+
+pre {
+ padding: 10px 10px 10px 20px;
+}
+
+.pro_table {
+ font-size: 12px;
+}
+.pro_table th {
+ font-weight: bold;
+ padding: 4px 8px 4px 8px;
+ text-align: left;
+}
+.pro_table td {
+ padding: 8px;
+ vertical-align: top;
+}
+.pro_table p {
+ margin: 0;
+}
+.pro_table p + p {
+ margin-top: 1em;
+}
+
+li > p {
+ margin: 1ex 0 1ex 0;
+}
+
+.footnote {
+ vertical-align: top;
+ font-size: 75%;
+ font-weight: bold;
+ text-decoration: none;
+}
+.footnote:before {
+ content: "[";
+ vertical-align: top;
+ font-weight: bold;
+}
+.footnote:after {
+ content: "]";
+ vertical-align: top;
+ font-weight: bold;
+}
+
+div.footnotes {
+ padding: 1em;
+ font-size: 90%;
+}
+
+hr {
+ background: #606060;
+ color: #606060;
+ border-style: solid;
+ border-color: #606060;
+ border-width: 1px 0 0 0;
+ margin-top: 0;
+}
+
+.alternate {
+ background-color: #F0F0F0;
+}

0 comments on commit 7226dfa

Please sign in to comment.
Something went wrong with that request. Please try again.