Skip to content

Commit

Permalink
Add docs for figure and table
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Aug 21, 2015
1 parent 9f1b88a commit 6a49a19
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,54 @@ <h2>Example</h2>
<p><emu-xref aoid="Get"></emu-xref> is an abstract operation from ES6</p>
</emu-clause>

<emu-clause id="emu-figure">
<h1>emu-figure</h1>
<p>Creates a figure that can be xrefed by ID using the `emu-xref` element.</p>
<h2>Attributes</h2>
<p><b>caption:</b> Optional: Caption for the example</p>
<p><b>informative:</b> Optional: If present, the figure is informative. Otherwise it is normative.</p>

<h2>Example</h2>
<pre><code class="language-html">
&lt;emu-figure caption="Example figure">
[[insert some awesome graphic here, maybe something like figure 2]]
&lt;/emu-figure>
</code></pre>
<emu-figure caption="Example figure">
[[insert some awesome graphic here, maybe something like figure 2]]
</emu-figure>
</emu-clause>

<emu-clause id="emu-table">
<h1>emu-table</h1>
<p>Creates a table that can be xrefed by ID using the `emu-xref` element.</p>
<h2>Attributes</h2>
<p><b>caption:</b> Optional: Caption for the example</p>
<p><b>informative:</b> Optional: If present, the table is informative. Otherwise it is normative.</p>

<h2>Example</h2>
<pre><code class="language-html">
&lt;emu-table caption="Example table">
&lt;table>
&lt;tr>&lt;th>Column 1&lt;/th>&lt;th>Column 2&lt;/th>&lt;/tr>
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
&lt;/table>
&lt;/emu-table>
</code></pre>
<emu-table caption="Example table">
<table>
<tr><th>Column 1</th><th>Column 2</th></tr>
<tr><td>Value</td><td>Value 2</td></tr>
<tr><td>Value</td><td>Value 2</td></tr>
<tr><td>Value</td><td>Value 2</td></tr>
<tr><td>Value</td><td>Value 2</td></tr>
</table>
</emu-table>
</emu-clause>

<emu-clause id="emu-example">
<h1>emu-example</h1>
<p>Creates an informative example. Examples are numbered based on how many are present in the example's containing clause. Can be xrefed by ID using `emu-xref`.</p>
Expand Down

0 comments on commit 6a49a19

Please sign in to comment.