vocco 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/docs/README.html +159 -0
- data/docs/lib-vocco-cli.rb.html +97 -0
- data/docs/lib-vocco-generator-css.rb.html +117 -0
- data/docs/lib-vocco-generator-source_file-html_template.rb.html +99 -0
- data/docs/lib-vocco-generator-source_file.rb.html +160 -0
- data/docs/lib-vocco-generator.rb.html +189 -0
- data/docs/lib-vocco.rb.html +173 -0
- data/lib/vocco.rb +3 -2
- data/vocco.gemspec +9 -2
- metadata +24 -3
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.1 | 
| 1 | 
            +
            0.2.1
         | 
    
        data/docs/README.html
    ADDED
    
    | @@ -0,0 +1,159 @@ | |
| 1 | 
            +
            <?xml version="1.0" encoding="utf8"?>
         | 
| 2 | 
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         | 
| 3 | 
            +
            <html xmlns="http://www.w3.org/1999/xhtml">
         | 
| 4 | 
            +
            <head>
         | 
| 5 | 
            +
            <title>Vocco : README</title>
         | 
| 6 | 
            +
            <meta name="Generator" content="Vim/7.2" />
         | 
| 7 | 
            +
            <meta content="text/html; charset=utf8" http-equiv="content-type" />
         | 
| 8 | 
            +
            <style type="text/css">
         | 
| 9 | 
            +
            <!--
         | 
| 10 | 
            +
            body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
         | 
| 11 | 
            +
            -->
         | 
| 12 | 
            +
            </style><style type="text/css">body {
         | 
| 13 | 
            +
              font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
         | 
| 14 | 
            +
              font-size: 15px; }
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            html, body {
         | 
| 17 | 
            +
              height: 100%; }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            body {
         | 
| 20 | 
            +
              padding: 1em; }
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            .code {
         | 
| 23 | 
            +
              font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
         | 
| 24 | 
            +
              font-size: 16px;
         | 
| 25 | 
            +
              padding: 1em;
         | 
| 26 | 
            +
              width: 50%; }
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            .nav {
         | 
| 29 | 
            +
              width: 40%;
         | 
| 30 | 
            +
              position: fixed;
         | 
| 31 | 
            +
              top: 0;
         | 
| 32 | 
            +
              left: 55%;
         | 
| 33 | 
            +
              height: 100%;
         | 
| 34 | 
            +
              font-size: 15px;
         | 
| 35 | 
            +
              line-height: 22px;
         | 
| 36 | 
            +
              color: #252519; }
         | 
| 37 | 
            +
              .nav .wrapper {
         | 
| 38 | 
            +
                color: black;
         | 
| 39 | 
            +
                height: 100%; }
         | 
| 40 | 
            +
                .nav .wrapper .area {
         | 
| 41 | 
            +
                  background-color: #cccccc;
         | 
| 42 | 
            +
                  padding: 1em 1em 1em 1em;
         | 
| 43 | 
            +
                  border-bottom: 1px dashed #bbbbbb;
         | 
| 44 | 
            +
                  border-top: 1px dashed #666666; }
         | 
| 45 | 
            +
                  .nav .wrapper .area .autohide {
         | 
| 46 | 
            +
                    opacity: 0;
         | 
| 47 | 
            +
                    height: 0px;
         | 
| 48 | 
            +
                    -webkit-transition: all 0.2s linear;
         | 
| 49 | 
            +
                    overflow: auto; }
         | 
| 50 | 
            +
                  .nav .wrapper .area:hover .autohide {
         | 
| 51 | 
            +
                    height: 150px;
         | 
| 52 | 
            +
                    opacity: 1; }
         | 
| 53 | 
            +
                .nav .wrapper .notes {
         | 
| 54 | 
            +
                  max-height: 40%;
         | 
| 55 | 
            +
                  overflow: auto; }
         | 
| 56 | 
            +
             | 
| 57 | 
            +
            table th {
         | 
| 58 | 
            +
              text-align: right; }
         | 
| 59 | 
            +
             | 
| 60 | 
            +
            </style>
         | 
| 61 | 
            +
            </head>
         | 
| 62 | 
            +
            <body><div class="code">
         | 
| 63 | 
            +
            <br />
         | 
| 64 | 
            +
                    ,---.                                        <br />
         | 
| 65 | 
            +
                   /__./|   ,---.                        ,---.   <br />
         | 
| 66 | 
            +
              ,---.;  ; |  '   ,'\                      '   ,'\<br />
         | 
| 67 | 
            +
             /___/ \  | | /   /   |   ,---.     ,---.  /   /   | <br />
         | 
| 68 | 
            +
             \   ;  \ ' |.   ; ,. :  /     \   /     \.   ; ,. : <br />
         | 
| 69 | 
            +
              \   \  \: |'   | |: : /    / '  /    / ''   | |: : <br />
         | 
| 70 | 
            +
               ;   \  ' .'   | .; :.    ' /  .    ' / '   | .; : <br />
         | 
| 71 | 
            +
                \   \   '|   :    |'   ; :__ '   ; :__|   :    | <br />
         | 
| 72 | 
            +
                 \   `  ; \   \  / '   | '.'|'   | '.'|\   \  /  <br />
         | 
| 73 | 
            +
                  :   \ |  `----'  |   :    :|   :    : `----'   <br />
         | 
| 74 | 
            +
                   '---"            \   \  /  \   \  /           <br />
         | 
| 75 | 
            +
                                     `----'    `----'            <br />
         | 
| 76 | 
            +
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
         | 
| 77 | 
            +
                    Quick and dirty documentation using Vim       <br />
         | 
| 78 | 
            +
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
         | 
| 79 | 
            +
            <br />
         | 
| 80 | 
            +
            <br />
         | 
| 81 | 
            +
            Vocco is a super patchy literate programming-style<br />
         | 
| 82 | 
            +
            documentation generator using Vim's :TOhtml feature.<br />
         | 
| 83 | 
            +
            It renders groups of files as syntax highlighted HTML,<br />
         | 
| 84 | 
            +
            using your everyday Vim settings.<br />
         | 
| 85 | 
            +
            <br />
         | 
| 86 | 
            +
                   <<a href="http://jbe.github.com/vocco/README.html">http://jbe.github.com/vocco/README.html</a>><br />
         | 
| 87 | 
            +
            <br />
         | 
| 88 | 
            +
            Make sure you have gvim or macvim and a nice default<br />
         | 
| 89 | 
            +
            color scheme installed for optimum roi.<br />
         | 
| 90 | 
            +
            <br />
         | 
| 91 | 
            +
            <br />
         | 
| 92 | 
            +
                   USAGE  vocco [options]<br />
         | 
| 93 | 
            +
                        <br />
         | 
| 94 | 
            +
                          writes html to the directory<br />
         | 
| 95 | 
            +
                          given by --out, for all files<br />
         | 
| 96 | 
            +
                          matching the --file globs.<br />
         | 
| 97 | 
            +
            <br />
         | 
| 98 | 
            +
                 OPTIONS  --files '**/*.rb' README LICENCE<br />
         | 
| 99 | 
            +
                     and<br />
         | 
| 100 | 
            +
                defaults  --out   ./docs<br />
         | 
| 101 | 
            +
            <br />
         | 
| 102 | 
            +
                          --notes ./notes<br />
         | 
| 103 | 
            +
            <br />
         | 
| 104 | 
            +
                          --name  from gemspec, or use<br />
         | 
| 105 | 
            +
                                  current directory name.<br />
         | 
| 106 | 
            +
            <br />
         | 
| 107 | 
            +
                          --site  from gemspec, or none<br />
         | 
| 108 | 
            +
            <br />
         | 
| 109 | 
            +
                          --vim   macvim gvim vim<br />
         | 
| 110 | 
            +
            <br />
         | 
| 111 | 
            +
            <br />
         | 
| 112 | 
            +
                 RUBYGEM  $ gem install vocco<br />
         | 
| 113 | 
            +
            <br />
         | 
| 114 | 
            +
                          Vocco.run :out => './website'<br />
         | 
| 115 | 
            +
            <br />
         | 
| 116 | 
            +
            <br />
         | 
| 117 | 
            +
                   NOTES  Vocco can include notes for<br />
         | 
| 118 | 
            +
                          each file.<br />
         | 
| 119 | 
            +
            <br />
         | 
| 120 | 
            +
                          Given<br />
         | 
| 121 | 
            +
                            -- files 'tra/la/**/*.rb'<br />
         | 
| 122 | 
            +
                            and that there is a file at<br />
         | 
| 123 | 
            +
                            'tra/la/bup/fum.rb',<br />
         | 
| 124 | 
            +
                            and that<br />
         | 
| 125 | 
            +
                            -- notes='./notes'<br />
         | 
| 126 | 
            +
            <br />
         | 
| 127 | 
            +
                          Then you can put notes at<br />
         | 
| 128 | 
            +
                            'notes/bup/fum.rb.md', or<br />
         | 
| 129 | 
            +
                            'tra/la/bup/fum.md'<br />
         | 
| 130 | 
            +
                            <br />
         | 
| 131 | 
            +
                          Instead of .md (markdown), you<br />
         | 
| 132 | 
            +
                          can also use .textile and<br />
         | 
| 133 | 
            +
                          .rdoc.<br />
         | 
| 134 | 
            +
            <br />
         | 
| 135 | 
            +
                          Bonus points for noticing that<br />
         | 
| 136 | 
            +
                          the static part of the globs<br />
         | 
| 137 | 
            +
                          are automagically trimmed off<br />
         | 
| 138 | 
            +
                          the paths.<br />
         | 
| 139 | 
            +
            <br />
         | 
| 140 | 
            +
            <br />
         | 
| 141 | 
            +
                  GREETS  Docco:  <<a href="http://jashkenas.github.com/docco/">http://jashkenas.github.com/docco/</a>><br />
         | 
| 142 | 
            +
                          Rocco:  <<a href="http://rtomayko.github.com/rocco/">http://rtomayko.github.com/rocco/</a>><br />
         | 
| 143 | 
            +
                          Shocco: <<a href="http://rtomayko.github.com/shocco/">http://rtomayko.github.com/shocco/</a>><br />
         | 
| 144 | 
            +
            <br />
         | 
| 145 | 
            +
            <br />
         | 
| 146 | 
            +
                 COPYING  Copyright (c) 2011 Jostein Berre<br />
         | 
| 147 | 
            +
                          Eliassen. Released under an MIT<br />
         | 
| 148 | 
            +
                          license. See LICENSE.txt for info.<br />
         | 
| 149 | 
            +
            </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>README</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="notes area"><p>This webpage was generated by running Vocco on its own source code.</p>
         | 
| 150 | 
            +
             | 
| 151 | 
            +
            <p>These paragraphs are actually "notes" attached to the README -- they were automatically generated and included from <code>./notes/README.md</code>. Notes can also be kept in the same directory as the source files, as long as their names correspond; like <code>app.rb.md</code> or <code>config.yml.textile</code>.</p>
         | 
| 152 | 
            +
             | 
| 153 | 
            +
            <p>The supported note format extensions are: md, mkd, markdown, textile and rdoc.</p>
         | 
| 154 | 
            +
             | 
| 155 | 
            +
            <p>Browse around the source code if you like -- mouse over the header just above this text to see a file list.</p>
         | 
| 156 | 
            +
             | 
| 157 | 
            +
            <p>♥</p>
         | 
| 158 | 
            +
            </div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
         | 
| 159 | 
            +
            </html>
         | 
| @@ -0,0 +1,97 @@ | |
| 1 | 
            +
            <?xml version="1.0" encoding="utf8"?>
         | 
| 2 | 
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         | 
| 3 | 
            +
            <html xmlns="http://www.w3.org/1999/xhtml">
         | 
| 4 | 
            +
            <head>
         | 
| 5 | 
            +
            <title>Vocco : cli.rb</title>
         | 
| 6 | 
            +
            <meta name="Generator" content="Vim/7.2" />
         | 
| 7 | 
            +
            <meta content="text/html; charset=utf8" http-equiv="content-type" />
         | 
| 8 | 
            +
            <style type="text/css">
         | 
| 9 | 
            +
            <!--
         | 
| 10 | 
            +
            .rubyIdentifier { color: #c6b6fe; }
         | 
| 11 | 
            +
            .rubySymbol { color: #7697d6; }
         | 
| 12 | 
            +
            .Special { color: #799d6a; }
         | 
| 13 | 
            +
            .Constant { color: #cf6a4c; }
         | 
| 14 | 
            +
            .PreProc { color: #8fbfdc; }
         | 
| 15 | 
            +
            .Function { color: #fad07a; }
         | 
| 16 | 
            +
            .StringDelimiter { color: #556633; }
         | 
| 17 | 
            +
            .String { color: #99ad6a; }
         | 
| 18 | 
            +
            .rubyControl { color: #7597c6; }
         | 
| 19 | 
            +
            .Type { color: #ffb964; }
         | 
| 20 | 
            +
            body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
         | 
| 21 | 
            +
            .rubyClass { color: #447799; }
         | 
| 22 | 
            +
            -->
         | 
| 23 | 
            +
            </style><style type="text/css">body {
         | 
| 24 | 
            +
              font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
         | 
| 25 | 
            +
              font-size: 15px; }
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            html, body {
         | 
| 28 | 
            +
              height: 100%; }
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            body {
         | 
| 31 | 
            +
              padding: 1em; }
         | 
| 32 | 
            +
             | 
| 33 | 
            +
            .code {
         | 
| 34 | 
            +
              font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
         | 
| 35 | 
            +
              font-size: 16px;
         | 
| 36 | 
            +
              padding: 1em;
         | 
| 37 | 
            +
              width: 50%; }
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            .nav {
         | 
| 40 | 
            +
              width: 40%;
         | 
| 41 | 
            +
              position: fixed;
         | 
| 42 | 
            +
              top: 0;
         | 
| 43 | 
            +
              left: 55%;
         | 
| 44 | 
            +
              height: 100%;
         | 
| 45 | 
            +
              font-size: 15px;
         | 
| 46 | 
            +
              line-height: 22px;
         | 
| 47 | 
            +
              color: #252519; }
         | 
| 48 | 
            +
              .nav .wrapper {
         | 
| 49 | 
            +
                color: black;
         | 
| 50 | 
            +
                height: 100%; }
         | 
| 51 | 
            +
                .nav .wrapper .area {
         | 
| 52 | 
            +
                  background-color: #cccccc;
         | 
| 53 | 
            +
                  padding: 1em 1em 1em 1em;
         | 
| 54 | 
            +
                  border-bottom: 1px dashed #bbbbbb;
         | 
| 55 | 
            +
                  border-top: 1px dashed #666666; }
         | 
| 56 | 
            +
                  .nav .wrapper .area .autohide {
         | 
| 57 | 
            +
                    opacity: 0;
         | 
| 58 | 
            +
                    height: 0px;
         | 
| 59 | 
            +
                    -webkit-transition: all 0.2s linear;
         | 
| 60 | 
            +
                    overflow: auto; }
         | 
| 61 | 
            +
                  .nav .wrapper .area:hover .autohide {
         | 
| 62 | 
            +
                    height: 150px;
         | 
| 63 | 
            +
                    opacity: 1; }
         | 
| 64 | 
            +
                .nav .wrapper .notes {
         | 
| 65 | 
            +
                  max-height: 40%;
         | 
| 66 | 
            +
                  overflow: auto; }
         | 
| 67 | 
            +
             | 
| 68 | 
            +
            table th {
         | 
| 69 | 
            +
              text-align: right; }
         | 
| 70 | 
            +
             | 
| 71 | 
            +
            </style>
         | 
| 72 | 
            +
            </head>
         | 
| 73 | 
            +
            <body><div class="code">
         | 
| 74 | 
            +
            <br />
         | 
| 75 | 
            +
            <br />
         | 
| 76 | 
            +
            <span class="rubyClass">module</span> <span class="Type">Vocco</span>::<span class="Type">CLI</span><br />
         | 
| 77 | 
            +
            <br />
         | 
| 78 | 
            +
              <span class="rubyClass">class</span> << <span class="Constant">self</span><br />
         | 
| 79 | 
            +
                <span class="PreProc">def</span> <span class="Function">start</span><br />
         | 
| 80 | 
            +
                  <span class="PreProc">require</span> <span class="StringDelimiter">'</span><span class="String">trollop</span><span class="StringDelimiter">'</span><br />
         | 
| 81 | 
            +
                  opts = <span class="Type">Trollop</span>::options <span class="rubyControl">do</span><br />
         | 
| 82 | 
            +
            <br />
         | 
| 83 | 
            +
                    banner <span class="StringDelimiter">"</span><span class="String">Usage: vocco [options]</span><span class="Special">\n\n</span><span class="String">Options:</span><span class="StringDelimiter">"</span><br />
         | 
| 84 | 
            +
                    <br />
         | 
| 85 | 
            +
                    ::<span class="Type">Vocco</span>::<span class="Type">OPTIONS</span>.each <span class="rubyControl">do</span> |<span class="rubyIdentifier">name</span>, <span class="rubyIdentifier">desc</span>, <span class="rubyIdentifier">default</span>|<br />
         | 
| 86 | 
            +
                      opt name, desc, <span class="rubySymbol">:default</span> => default<br />
         | 
| 87 | 
            +
                    <span class="rubyControl">end</span><br />
         | 
| 88 | 
            +
                  <span class="rubyControl">end</span><br />
         | 
| 89 | 
            +
            <br />
         | 
| 90 | 
            +
                  ::<span class="Type">Vocco</span>::<span class="Type">Generator</span>.new(opts).run<br />
         | 
| 91 | 
            +
                <span class="PreProc">end</span><br />
         | 
| 92 | 
            +
              <span class="rubyClass">end</span><br />
         | 
| 93 | 
            +
            <span class="rubyClass">end</span><br />
         | 
| 94 | 
            +
            <br />
         | 
| 95 | 
            +
            <br />
         | 
| 96 | 
            +
            </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>cli.rb</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
         | 
| 97 | 
            +
            </html>
         | 
| @@ -0,0 +1,117 @@ | |
| 1 | 
            +
            <?xml version="1.0" encoding="utf8"?>
         | 
| 2 | 
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         | 
| 3 | 
            +
            <html xmlns="http://www.w3.org/1999/xhtml">
         | 
| 4 | 
            +
            <head>
         | 
| 5 | 
            +
            <title>Vocco : css.rb</title>
         | 
| 6 | 
            +
            <meta name="Generator" content="Vim/7.2" />
         | 
| 7 | 
            +
            <meta content="text/html; charset=utf8" http-equiv="content-type" />
         | 
| 8 | 
            +
            <style type="text/css">
         | 
| 9 | 
            +
            <!--
         | 
| 10 | 
            +
            .StringDelimiter { color: #556633; }
         | 
| 11 | 
            +
            .String { color: #99ad6a; }
         | 
| 12 | 
            +
            body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
         | 
| 13 | 
            +
            .Type { color: #ffb964; }
         | 
| 14 | 
            +
            -->
         | 
| 15 | 
            +
            </style><style type="text/css">body {
         | 
| 16 | 
            +
              font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
         | 
| 17 | 
            +
              font-size: 15px; }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            html, body {
         | 
| 20 | 
            +
              height: 100%; }
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            body {
         | 
| 23 | 
            +
              padding: 1em; }
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            .code {
         | 
| 26 | 
            +
              font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
         | 
| 27 | 
            +
              font-size: 16px;
         | 
| 28 | 
            +
              padding: 1em;
         | 
| 29 | 
            +
              width: 50%; }
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            .nav {
         | 
| 32 | 
            +
              width: 40%;
         | 
| 33 | 
            +
              position: fixed;
         | 
| 34 | 
            +
              top: 0;
         | 
| 35 | 
            +
              left: 55%;
         | 
| 36 | 
            +
              height: 100%;
         | 
| 37 | 
            +
              font-size: 15px;
         | 
| 38 | 
            +
              line-height: 22px;
         | 
| 39 | 
            +
              color: #252519; }
         | 
| 40 | 
            +
              .nav .wrapper {
         | 
| 41 | 
            +
                color: black;
         | 
| 42 | 
            +
                height: 100%; }
         | 
| 43 | 
            +
                .nav .wrapper .area {
         | 
| 44 | 
            +
                  background-color: #cccccc;
         | 
| 45 | 
            +
                  padding: 1em 1em 1em 1em;
         | 
| 46 | 
            +
                  border-bottom: 1px dashed #bbbbbb;
         | 
| 47 | 
            +
                  border-top: 1px dashed #666666; }
         | 
| 48 | 
            +
                  .nav .wrapper .area .autohide {
         | 
| 49 | 
            +
                    opacity: 0;
         | 
| 50 | 
            +
                    height: 0px;
         | 
| 51 | 
            +
                    -webkit-transition: all 0.2s linear;
         | 
| 52 | 
            +
                    overflow: auto; }
         | 
| 53 | 
            +
                  .nav .wrapper .area:hover .autohide {
         | 
| 54 | 
            +
                    height: 150px;
         | 
| 55 | 
            +
                    opacity: 1; }
         | 
| 56 | 
            +
                .nav .wrapper .notes {
         | 
| 57 | 
            +
                  max-height: 40%;
         | 
| 58 | 
            +
                  overflow: auto; }
         | 
| 59 | 
            +
             | 
| 60 | 
            +
            table th {
         | 
| 61 | 
            +
              text-align: right; }
         | 
| 62 | 
            +
             | 
| 63 | 
            +
            </style>
         | 
| 64 | 
            +
            </head>
         | 
| 65 | 
            +
            <body><div class="code">
         | 
| 66 | 
            +
            <span class="Type">Vocco</span>::<span class="Type">Generator</span>::<span class="Type">CSS</span> = <<-<span class="StringDelimiter">'__YOU_ARE_SPECIAL__'</span><br />
         | 
| 67 | 
            +
            <span class="String">body {</span><br />
         | 
| 68 | 
            +
            <span class="String">  font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;</span><br />
         | 
| 69 | 
            +
            <span class="String">  font-size: 15px; }</span><br />
         | 
| 70 | 
            +
            <br />
         | 
| 71 | 
            +
            <span class="String">html, body {</span><br />
         | 
| 72 | 
            +
            <span class="String">  height: 100%; }</span><br />
         | 
| 73 | 
            +
            <br />
         | 
| 74 | 
            +
            <span class="String">body {</span><br />
         | 
| 75 | 
            +
            <span class="String">  padding: 1em; }</span><br />
         | 
| 76 | 
            +
            <br />
         | 
| 77 | 
            +
            <span class="String">.code {</span><br />
         | 
| 78 | 
            +
            <span class="String">  font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;</span><br />
         | 
| 79 | 
            +
            <span class="String">  font-size: 16px;</span><br />
         | 
| 80 | 
            +
            <span class="String">  padding: 1em;</span><br />
         | 
| 81 | 
            +
            <span class="String">  width: 50%; }</span><br />
         | 
| 82 | 
            +
            <br />
         | 
| 83 | 
            +
            <span class="String">.nav {</span><br />
         | 
| 84 | 
            +
            <span class="String">  width: 40%;</span><br />
         | 
| 85 | 
            +
            <span class="String">  position: fixed;</span><br />
         | 
| 86 | 
            +
            <span class="String">  top: 0;</span><br />
         | 
| 87 | 
            +
            <span class="String">  left: 55%;</span><br />
         | 
| 88 | 
            +
            <span class="String">  height: 100%;</span><br />
         | 
| 89 | 
            +
            <span class="String">  font-size: 15px;</span><br />
         | 
| 90 | 
            +
            <span class="String">  line-height: 22px;</span><br />
         | 
| 91 | 
            +
            <span class="String">  color: #252519; }</span><br />
         | 
| 92 | 
            +
            <span class="String">  .nav .wrapper {</span><br />
         | 
| 93 | 
            +
            <span class="String">    color: black;</span><br />
         | 
| 94 | 
            +
            <span class="String">    height: 100%; }</span><br />
         | 
| 95 | 
            +
            <span class="String">    .nav .wrapper .area {</span><br />
         | 
| 96 | 
            +
            <span class="String">      background-color: #cccccc;</span><br />
         | 
| 97 | 
            +
            <span class="String">      padding: 1em 1em 1em 1em;</span><br />
         | 
| 98 | 
            +
            <span class="String">      border-bottom: 1px dashed #bbbbbb;</span><br />
         | 
| 99 | 
            +
            <span class="String">      border-top: 1px dashed #666666; }</span><br />
         | 
| 100 | 
            +
            <span class="String">      .nav .wrapper .area .autohide {</span><br />
         | 
| 101 | 
            +
            <span class="String">        opacity: 0;</span><br />
         | 
| 102 | 
            +
            <span class="String">        height: 0px;</span><br />
         | 
| 103 | 
            +
            <span class="String">        -webkit-transition: all 0.2s linear;</span><br />
         | 
| 104 | 
            +
            <span class="String">        overflow: auto; }</span><br />
         | 
| 105 | 
            +
            <span class="String">      .nav .wrapper .area:hover .autohide {</span><br />
         | 
| 106 | 
            +
            <span class="String">        height: 150px;</span><br />
         | 
| 107 | 
            +
            <span class="String">        opacity: 1; }</span><br />
         | 
| 108 | 
            +
            <span class="String">    .nav .wrapper .notes {</span><br />
         | 
| 109 | 
            +
            <span class="String">      max-height: 40%;</span><br />
         | 
| 110 | 
            +
            <span class="String">      overflow: auto; }</span><br />
         | 
| 111 | 
            +
            <br />
         | 
| 112 | 
            +
            <span class="String">table th {</span><br />
         | 
| 113 | 
            +
            <span class="String">  text-align: right; }</span><br />
         | 
| 114 | 
            +
            <br />
         | 
| 115 | 
            +
            <span class="StringDelimiter">__YOU_ARE_SPECIAL__</span><br />
         | 
| 116 | 
            +
            </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>css.rb</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
         | 
| 117 | 
            +
            </html>
         | 
| @@ -0,0 +1,99 @@ | |
| 1 | 
            +
            <?xml version="1.0" encoding="utf8"?>
         | 
| 2 | 
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         | 
| 3 | 
            +
            <html xmlns="http://www.w3.org/1999/xhtml">
         | 
| 4 | 
            +
            <head>
         | 
| 5 | 
            +
            <title>Vocco : html_template.rb</title>
         | 
| 6 | 
            +
            <meta name="Generator" content="Vim/7.2" />
         | 
| 7 | 
            +
            <meta content="text/html; charset=utf8" http-equiv="content-type" />
         | 
| 8 | 
            +
            <style type="text/css">
         | 
| 9 | 
            +
            <!--
         | 
| 10 | 
            +
            .StringDelimiter { color: #556633; }
         | 
| 11 | 
            +
            .String { color: #99ad6a; }
         | 
| 12 | 
            +
            body { color: #e8e8d3; background-color: #151515; font-family: monospace; }
         | 
| 13 | 
            +
            .Type { color: #ffb964; }
         | 
| 14 | 
            +
            -->
         | 
| 15 | 
            +
            </style><style type="text/css">body {
         | 
| 16 | 
            +
              font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
         | 
| 17 | 
            +
              font-size: 15px; }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            html, body {
         | 
| 20 | 
            +
              height: 100%; }
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            body {
         | 
| 23 | 
            +
              padding: 1em; }
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            .code {
         | 
| 26 | 
            +
              font-family: Menlo, Monaco, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace;
         | 
| 27 | 
            +
              font-size: 16px;
         | 
| 28 | 
            +
              padding: 1em;
         | 
| 29 | 
            +
              width: 50%; }
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            .nav {
         | 
| 32 | 
            +
              width: 40%;
         | 
| 33 | 
            +
              position: fixed;
         | 
| 34 | 
            +
              top: 0;
         | 
| 35 | 
            +
              left: 55%;
         | 
| 36 | 
            +
              height: 100%;
         | 
| 37 | 
            +
              font-size: 15px;
         | 
| 38 | 
            +
              line-height: 22px;
         | 
| 39 | 
            +
              color: #252519; }
         | 
| 40 | 
            +
              .nav .wrapper {
         | 
| 41 | 
            +
                color: black;
         | 
| 42 | 
            +
                height: 100%; }
         | 
| 43 | 
            +
                .nav .wrapper .area {
         | 
| 44 | 
            +
                  background-color: #cccccc;
         | 
| 45 | 
            +
                  padding: 1em 1em 1em 1em;
         | 
| 46 | 
            +
                  border-bottom: 1px dashed #bbbbbb;
         | 
| 47 | 
            +
                  border-top: 1px dashed #666666; }
         | 
| 48 | 
            +
                  .nav .wrapper .area .autohide {
         | 
| 49 | 
            +
                    opacity: 0;
         | 
| 50 | 
            +
                    height: 0px;
         | 
| 51 | 
            +
                    -webkit-transition: all 0.2s linear;
         | 
| 52 | 
            +
                    overflow: auto; }
         | 
| 53 | 
            +
                  .nav .wrapper .area:hover .autohide {
         | 
| 54 | 
            +
                    height: 150px;
         | 
| 55 | 
            +
                    opacity: 1; }
         | 
| 56 | 
            +
                .nav .wrapper .notes {
         | 
| 57 | 
            +
                  max-height: 40%;
         | 
| 58 | 
            +
                  overflow: auto; }
         | 
| 59 | 
            +
             | 
| 60 | 
            +
            table th {
         | 
| 61 | 
            +
              text-align: right; }
         | 
| 62 | 
            +
             | 
| 63 | 
            +
            </style>
         | 
| 64 | 
            +
            </head>
         | 
| 65 | 
            +
            <body><div class="code">
         | 
| 66 | 
            +
            <span class="Type">Vocco</span>::<span class="Type">Generator</span>::<span class="Type">SourceFile</span>::<span class="Type">HTML_TEMPLATE</span> = <<-<span class="StringDelimiter">'__YOU_ARE_SPECIAL__'</span><br />
         | 
| 67 | 
            +
            <span class="String">_buf = [] ; _temple_pre_tags = /<pre|<textarea/ ; _buf << ("<div class=\"nav\"><div class=\"wrapper\"><div class=\"area\"><h3><strong>") ; </span><br />
         | 
| 68 | 
            +
            <span class="String"> ; </span><br />
         | 
| 69 | 
            +
            <span class="String"> ; </span><br />
         | 
| 70 | 
            +
            <span class="String"> ; </span><br />
         | 
| 71 | 
            +
            <span class="String"> ; </span><br />
         | 
| 72 | 
            +
            <span class="String"> ; if @gen.site ; </span><br />
         | 
| 73 | 
            +
            <span class="String"> ; _buf << ("<a href=\"#{@gen.site}\">#{@gen.name}"\</span><br />
         | 
| 74 | 
            +
            <span class="String">"</a>") ; else ; </span><br />
         | 
| 75 | 
            +
            <span class="String"> ; _buf << (@gen.name) ; </span><br />
         | 
| 76 | 
            +
            <span class="String"> ; end ; _buf << ("</strong><span>#{' : '}"\</span><br />
         | 
| 77 | 
            +
            <span class="String">"</span><span>#{basename}"\</span><br />
         | 
| 78 | 
            +
            <span class="String">""\</span><br />
         | 
| 79 | 
            +
            <span class="String">"</span></h3>") ; if @gen.files.size > 1 ; </span><br />
         | 
| 80 | 
            +
            <span class="String"> ; _buf << ("<p class=\"autohide\">") ; </span><br />
         | 
| 81 | 
            +
            <span class="String"> ; @gen.files.each do |file| ; </span><br />
         | 
| 82 | 
            +
            <span class="String"> ; _buf << ("#{file.short_dirname == '.' ? '' : file.short_dirname + '/'}"\</span><br />
         | 
| 83 | 
            +
            <span class="String">"<a href=\"#{file.doc_link}\">#{file.basename}"\</span><br />
         | 
| 84 | 
            +
            <span class="String">"</a><br>"\</span><br />
         | 
| 85 | 
            +
            <span class="String">""\</span><br />
         | 
| 86 | 
            +
            <span class="String">"") ; end ; _buf << ("</p>") ; end ; _buf << ("</div>") ; if notes.any? ; </span><br />
         | 
| 87 | 
            +
            <span class="String"> ; _buf << ("<div class=\"notes area\">") ; </span><br />
         | 
| 88 | 
            +
            <span class="String"> ; notes.each do |note| ; </span><br />
         | 
| 89 | 
            +
            <span class="String"> ; _buf << (note) ; </span><br />
         | 
| 90 | 
            +
            <span class="String"> ; </span><br />
         | 
| 91 | 
            +
            <span class="String"> ; end ; _buf << ("</div>") ; end ; _buf << ("<div class=\"area\"><table><tr><th>Generated:</th><td>"\</span><br />
         | 
| 92 | 
            +
            <span class="String">""\</span><br />
         | 
| 93 | 
            +
            <span class="String">""\</span><br />
         | 
| 94 | 
            +
            <span class="String">""\</span><br />
         | 
| 95 | 
            +
            <span class="String">"#{Time.now.to_s}"\</span><br />
         | 
| 96 | 
            +
            <span class="String">"</td></tr></table></div></div></div>") ; _buf = _buf.join</span><br />
         | 
| 97 | 
            +
            <span class="StringDelimiter">__YOU_ARE_SPECIAL__</span><br />
         | 
| 98 | 
            +
            </div><div class="nav"><div class="wrapper"><div class="area"><h3><strong><a href="http://github.com/jbe/vocco">Vocco</a></strong><span> : </span><span>html_template.rb</span></h3><p class="autohide">lib/vocco/<a href="./lib-vocco-generator.rb.html">generator.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-css.rb.html">css.rb</a><br />lib/vocco/generator/source_file/<a href="./lib-vocco-generator-source_file-html_template.rb.html">html_template.rb</a><br />lib/vocco/generator/<a href="./lib-vocco-generator-source_file.rb.html">source_file.rb</a><br />lib/vocco/<a href="./lib-vocco-cli.rb.html">cli.rb</a><br />lib/<a href="./lib-vocco.rb.html">vocco.rb</a><br /><a href="./README.html">README</a><br /></p></div><div class="area"><table><tr><th>Generated:</th><td>Mon Mar 14 01:26:25 +0100 2011</td></tr></table></div></div></div></body>
         | 
| 99 | 
            +
            </html>
         |