Skip to content
Permalink
Browse files

nicer tables in rst quickref

  • Loading branch information
ralsina committed Sep 4, 2015
1 parent da1527a commit 1b784d5c6116b391115c56e744e2d08c576e9a35
Showing with 43 additions and 42 deletions.
  1. +43 −42 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

@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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,
@@ -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
@@ -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>
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -809,7 +810,7 @@

<td>
<p>Simple table:</p>
<table border="1">
<table class="table" border="1">
<colgroup>
<col width="31%">
<col width="31%">
@@ -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
@@ -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
@@ -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.
@@ -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.
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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>
@@ -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
@@ -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
@@ -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 -->
@@ -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>

@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 1b784d5

Please sign in to comment.