Skip to content

Commit

Permalink
[docs] update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Dec 13, 2011
1 parent c7905d6 commit 04bc242
Show file tree
Hide file tree
Showing 13 changed files with 1,014 additions and 677 deletions.
245 changes: 245 additions & 0 deletions apply.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cli.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html> <html> <head> <title>cli.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="cli.html"> cli.js </a> <a class="source" href="compiler.html"> compiler.js </a> <a class="source" href="fullgen.html"> fullgen.js </a> <a class="source" href="sort-group.html"> sort-group.js </a> <a class="source" href="exporter.html"> exporter.js </a> <a class="source" href="state.html"> state.js </a> <a class="source" href="utils.html"> utils.js </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> cli.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">xjst</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;../xjst&#39;</span><span class="p">),</span>
<!DOCTYPE html> <html> <head> <title>cli.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="cli.html"> cli.js </a> <a class="source" href="compiler.html"> compiler.js </a> <a class="source" href="fullgen.html"> fullgen.js </a> <a class="source" href="sort-group.html"> sort-group.js </a> <a class="source" href="exporter.html"> exporter.js </a> <a class="source" href="flist.html"> flist.js </a> <a class="source" href="hlist.html"> hlist.js </a> <a class="source" href="serializer.html"> serializer.js </a> <a class="source" href="state.html"> state.js </a> <a class="source" href="apply.html"> apply.js </a> <a class="source" href="vars.html"> vars.js </a> <a class="source" href="utils.html"> utils.js </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> cli.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="kd">var</span> <span class="nx">xjst</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;../xjst&#39;</span><span class="p">),</span>
<span class="nx">q</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;q&#39;</span><span class="p">),</span>
<span class="nx">fs</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;fs&#39;</span><span class="p">);</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">&#182;</a> </div> <h3>function run (options)</h3>

Expand All @@ -19,7 +19,7 @@ <h4>@options {Object} Compiler options</h4>
<span class="nx">options</span><span class="p">.</span><span class="nx">input</span><span class="p">.</span><span class="nx">resume</span><span class="p">();</span>

<span class="kd">function</span> <span class="nx">finish</span><span class="p">(</span><span class="nx">source</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">out</span> <span class="o">=</span> <span class="nx">xjst</span><span class="p">.</span><span class="nx">generate</span><span class="p">(</span><span class="nx">xjst</span><span class="p">.</span><span class="nx">parse</span><span class="p">(</span><span class="nx">source</span><span class="p">),</span> <span class="nx">options</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">out</span> <span class="o">=</span> <span class="nx">xjst</span><span class="p">.</span><span class="nx">generate</span><span class="p">(</span><span class="nx">xjst</span><span class="p">.</span><span class="nx">parse</span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">options</span><span class="p">.</span><span class="nx">input</span><span class="p">.</span><span class="nx">path</span><span class="p">),</span> <span class="nx">options</span><span class="p">);</span>

<span class="nx">options</span><span class="p">.</span><span class="nx">output</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="nx">out</span><span class="p">);</span>

Expand Down
Loading

0 comments on commit 04bc242

Please sign in to comment.