Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rgieseke committed Apr 27, 2014
1 parent b840e69 commit 728a1c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/index.html
Expand Up @@ -212,8 +212,8 @@ <h3>Main Documentation Generation Functions</h3>
f:write(h)
<span class="k">for</span> i=1, #sections <span class="k">do</span>
<span class="k">local</span> t = template.table_entry:gsub(<span class="s">'&#37;&#37;index&#37;&#37;'</span>, i..<span class="s">''</span>)
t = t:gsub(<span class="s">'&#37;&#37;docs_html&#37;&#37;'</span>, sections[i][<span class="s">'docs_html'</span>])
t = t:gsub(<span class="s">'&#37;&#37;code_html&#37;&#37;'</span>, sections[i][<span class="s">'code_html'</span>])
t = t:gsub(<span class="s">'&#37;&#37;docs_html&#37;&#37;'</span>, replace_percent(sections[i][<span class="s">'docs_html'</span>]))
t = t:gsub(<span class="s">'&#37;&#37;code_html&#37;&#37;'</span>, replace_percent(sections[i][<span class="s">'code_html'</span>]))
f:write(t)
<span class="k">end</span>
f:write(template.footer)
Expand Down Expand Up @@ -336,6 +336,11 @@ <h3>Helpers &amp; Setup</h3>
s = s:gsub(<span class="s">'&#37;&#37;'</span>, <span class="s">'&#37;'</span>)
<span class="k">return</span> s
<span class="k">end</span>

<span class="k">function</span> <span class="nf">replace_percent</span>(s)
s = s:gsub(<span class="s">'&#37;&#37;'</span>, <span class="s">'&#37;&#37;&#37;&#37;'</span>)
<span class="k">return</span> s
<span class="k">end</span>
</pre></div>
</td>
</tr><tr id="section-14">
Expand Down

0 comments on commit 728a1c2

Please sign in to comment.