Skip to content

Commit 6a49a19

Browse files
committed
Add docs for figure and table
1 parent 9f1b88a commit 6a49a19

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

spec/index.html

+48
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,54 @@ <h2>Example</h2>
152152
<p><emu-xref aoid="Get"></emu-xref> is an abstract operation from ES6</p>
153153
</emu-clause>
154154

155+
<emu-clause id="emu-figure">
156+
<h1>emu-figure</h1>
157+
<p>Creates a figure that can be xrefed by ID using the `emu-xref` element.</p>
158+
<h2>Attributes</h2>
159+
<p><b>caption:</b> Optional: Caption for the example</p>
160+
<p><b>informative:</b> Optional: If present, the figure is informative. Otherwise it is normative.</p>
161+
162+
<h2>Example</h2>
163+
<pre><code class="language-html">
164+
&lt;emu-figure caption="Example figure">
165+
[[insert some awesome graphic here, maybe something like figure 2]]
166+
&lt;/emu-figure>
167+
</code></pre>
168+
<emu-figure caption="Example figure">
169+
[[insert some awesome graphic here, maybe something like figure 2]]
170+
</emu-figure>
171+
</emu-clause>
172+
173+
<emu-clause id="emu-table">
174+
<h1>emu-table</h1>
175+
<p>Creates a table that can be xrefed by ID using the `emu-xref` element.</p>
176+
<h2>Attributes</h2>
177+
<p><b>caption:</b> Optional: Caption for the example</p>
178+
<p><b>informative:</b> Optional: If present, the table is informative. Otherwise it is normative.</p>
179+
180+
<h2>Example</h2>
181+
<pre><code class="language-html">
182+
&lt;emu-table caption="Example table">
183+
&lt;table>
184+
&lt;tr>&lt;th>Column 1&lt;/th>&lt;th>Column 2&lt;/th>&lt;/tr>
185+
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
186+
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
187+
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
188+
&lt;tr>&lt;td>Value&lt;/td>&lt;td>Value 2&lt;/td>&lt;/tr>
189+
&lt;/table>
190+
&lt;/emu-table>
191+
</code></pre>
192+
<emu-table caption="Example table">
193+
<table>
194+
<tr><th>Column 1</th><th>Column 2</th></tr>
195+
<tr><td>Value</td><td>Value 2</td></tr>
196+
<tr><td>Value</td><td>Value 2</td></tr>
197+
<tr><td>Value</td><td>Value 2</td></tr>
198+
<tr><td>Value</td><td>Value 2</td></tr>
199+
</table>
200+
</emu-table>
201+
</emu-clause>
202+
155203
<emu-clause id="emu-example">
156204
<h1>emu-example</h1>
157205
<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>

0 commit comments

Comments
 (0)