Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nicer tables in rst quickref
  • Loading branch information
ralsina committed Sep 4, 2015
1 parent da1527a commit 1b784d5
Showing 1 changed file with 43 additions and 42 deletions.
85 changes: 43 additions & 42 deletions nikola/data/samplesite/stories/quickref.rst
@@ -1,9 +1,10 @@
.. title: A reStructuredText Reference
.. slug: quickref
.. date: 2012-03-30 23:00:00 UTC-03:00
.. tags:
.. link:
.. description:
.. tags:
.. link:
.. description:
.. author: docutils contributors
.. raw:: html

Expand Down Expand Up @@ -78,7 +79,7 @@
character styles (like italics and boldface) and functionality
(like hyperlinks).

<p><table border="1" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" class="table" border="1" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th>Plain text
Expand Down Expand Up @@ -212,7 +213,7 @@
themselves. To get a literal backslash, use an escaped backslash
("\\"). For example:

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Raw reStructuredText
Expand All @@ -232,7 +233,7 @@
<em>reach</em> reStructuredText.
The simplest way to do this is to use raw strings:

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Python string
Expand All @@ -255,7 +256,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#sections">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -301,7 +302,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#paragraphs">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -329,7 +330,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#bullet-lists">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -367,7 +368,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#enumerated-lists">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -405,7 +406,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#definition-lists">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -446,7 +447,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -464,7 +465,7 @@
<p><samp>:Version:&nbsp;1.0&nbsp;of&nbsp;2001/08/08</samp>
<br><samp>:Dedication:&nbsp;To&nbsp;my&nbsp;father.</samp>
<td>
<table>
<table class="table" >
<tr valign="top">
<td><strong>Authors:</strong>
<td>Tony J. (Tibs) Ibbs,
Expand All @@ -485,7 +486,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#option-lists">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -505,7 +506,7 @@
</samp>

<td>
<table border="0" width="100%">
<table class="table" border="0" width="100%">
<tbody valign="top">
<tr>
<td width="30%"><samp>-a</samp>
Expand Down Expand Up @@ -533,7 +534,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#literal-blocks">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -622,7 +623,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#line-blocks">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -664,7 +665,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#block-quotes">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -696,7 +697,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#doctest-blocks">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -736,7 +737,7 @@
tables are complete but cumbersome to create. Simple tables are
easy to create but limited (no row spans, etc.).</p>

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -760,7 +761,7 @@
<br><samp>+------------+------------+-----------+</samp></p>
<td>
<p>Grid table:</p>
<table border="1">
<table class="table" border="1">
<thead valign="bottom">
<tr>
<th>Header 1
Expand Down Expand Up @@ -809,7 +810,7 @@

<td>
<p>Simple table:</p>
<table border="1">
<table class="table" border="1">
<colgroup>
<col width="31%">
<col width="31%">
Expand Down Expand Up @@ -849,7 +850,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#transitions">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -899,7 +900,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#footnotes">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -922,7 +923,7 @@
Note that footnotes may get rearranged, e.g., to the bottom of
the "page".

<p><table>
<p><table class="table" >
<tr><td colspan="2"><hr>
<!-- <tr><td colspan="2">Footnotes: -->
<tr><td><a name="5"><strong>[5]</strong></a><td> A numerical footnote.
Expand Down Expand Up @@ -950,7 +951,7 @@
<sup><a href="#fourth">4</a></sup> and <sup><a
href="#third">3</a></sup>.

<p><table>
<p><table class="table" >
<tr><td colspan="2"><hr>
<!-- <tr><td colspan="2">Footnotes: -->
<tr><td><a name="auto1"><strong>[1]</strong></a><td> This is the first one.
Expand All @@ -971,7 +972,7 @@
possible, like this: <sup><a href="#symbol1">*</a></sup>
and <sup><a href="#symbol2">&dagger;</a></sup>.

<p><table>
<p><table class="table" >
<tr><td colspan="2"><hr>
<!-- <tr><td colspan="2">Footnotes: -->
<tr><td><a name="symbol1"><strong>[*]</strong></a><td> This is the first symbol footnote
Expand All @@ -992,7 +993,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#citations">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -1030,7 +1031,7 @@
<p>Given a citation like <a href="#this">[this]</a>, one
can also refer to it like <a href="#this">this</a>.

<p><table>
<p><table class="table" >
<tr><td colspan="2"><hr>
<!-- <tr><td colspan="2">Citations: -->
<tr><td><a name="cit2002"><strong>[CIT2002]</strong></a><td> A citation
Expand All @@ -1048,7 +1049,7 @@
<h4><a href="#contents" name="external-hyperlink-targets" class="backref"
>External Hyperlink Targets</a></h4>

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -1062,19 +1063,19 @@

<p><samp>..&nbsp;_Python:&nbsp;http://www.python.org/</samp>
<td>
<table width="100%">
<table class="table" width="100%">
<tr bgcolor="#99CCFF"><td><em>Fold-in form</em>
<tr><td>External hyperlinks, like
<a href="http://www.python.org/">Python</a>.
</table>
<tr valign="top">
<td>
<table width="100%">
<table class="table" width="100%">
<tr bgcolor="#99CCFF"><td><em>Call-out form</em>
<tr><td>External hyperlinks, like
<a href="#labPython"><i>Python</i></a>.

<p><table>
<p><table class="table" >
<tr><td colspan="2"><hr>
<tr><td><a name="labPython"><i>Python:</i></a>
<td> <a href="http://www.python.org/">http://www.python.org/</a>
Expand All @@ -1097,7 +1098,7 @@
reference may directly embed a target URI inline, within angle
brackets. The following is exactly equivalent to the example above:

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -1116,7 +1117,7 @@
<h4><a href="#contents" name="internal-hyperlink-targets" class="backref"
>Internal Hyperlink Targets</a></h4>

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -1131,7 +1132,7 @@

<p><samp>This&nbsp;is&nbsp;an&nbsp;example&nbsp;crossreference&nbsp;target.</samp>
<td>
<table width="100%">
<table class="table" width="100%">
<tr bgcolor="#99CCFF"><td><em>Fold-in form</em>
<!-- Note that some browsers may not like an "a" tag that -->
<!-- does not have any content, so we could arbitrarily -->
Expand All @@ -1143,7 +1144,7 @@
</table>
<tr valign="top">
<td>
<table width="100%">
<table class="table" width="100%">
<tr><td bgcolor="#99CCFF"><em>Call-out form</em>
<tr><td>Internal crossreferences, like <a href="#example-callout">example</a>

Expand All @@ -1158,7 +1159,7 @@

<p>(<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#indirect-hyperlink-targets">details</a>)

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -1202,7 +1203,7 @@
hyperlink targets (the title text or footnote/citation label is
used as the hyperlink name).

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead><tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
<th width="50%">Typical result
Expand Down Expand Up @@ -1232,7 +1233,7 @@
href="http://docutils.sourceforge.net/docs/ref/rst/directives.html" >reStructuredText
Directives</a>.

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand All @@ -1257,7 +1258,7 @@
<p>Substitutions are like inline directives, allowing graphics and
arbitrary constructs within text.

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down Expand Up @@ -1287,7 +1288,7 @@
<p>Any text which begins with an explicit markup start but doesn't
use the syntax of any of the constructs above, is a comment.

<p><table border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<p><table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
<thead>
<tr align="left" bgcolor="#99CCFF">
<th width="50%">Plain text
Expand Down

0 comments on commit 1b784d5

Please sign in to comment.