doc template

This commit is contained in:
airstruck
2015-12-16 22:23:20 -05:00
parent e9758df43d
commit f9924fb028
21 changed files with 834 additions and 519 deletions

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../widgets/button.html">button</a></li>
<li><a href="../widgets/check.html">check</a></li>
<li><a href="../widgets/menu.html">menu</a></li>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>sash</code></h1>
<p>A sash.</p>
<p>Dragging this widget resizes the widgets adjacent to it.
@@ -73,24 +70,22 @@ should have a specified <a href="../modules/attribute.html#width">width</a> attr
<h3>Usage:</h3>
<ul>
<pre class="example">
-- create a layout containing two widgets separated by a sash
local layout = Layout {
type = &apos;panel&apos;, flow = &apos;x&apos;,
{ text = &apos;This is the left side&apos;, wrap = true, width = 100 },
{ type = &apos;sash&apos; },
{ text = &apos;This is the right side&apos;, wrap = true },
<span class="comment">-- create a layout containing two widgets separated by a sash
</span><span class="keyword">local</span> layout = Layout {
<span class="global">type</span> = <span class="string">'panel'</span>, flow = <span class="string">'x'</span>,
{ text = <span class="string">'This is the left side'</span>, wrap = <span class="keyword">true</span>, width = <span class="number">100</span> },
{ <span class="global">type</span> = <span class="string">'sash'</span> },
{ text = <span class="string">'This is the right side'</span>, wrap = <span class="keyword">true</span> },
}
-- show the layout
layout:show()
</pre>
<span class="comment">-- show the layout
</span>layout:show()</pre>
</ul>
<br/>
<br/>
</div>
@@ -98,7 +93,7 @@ layout:show()
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2015-12-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>