Commits

Takafumi Arakaki  committed 22e634e

rstspreadsheet-doc/eeb1c4f9f849

  • Participants
  • Parent commits fd04251

Comments (0)

Files changed (4)

File rstspreadsheet-doc/_sources/sample.txt

    == ==
    0
    == ==
+
+
+Advanced
+--------
+
+twitter
+^^^^^^^
+
+::
+
+  .. spreadsheet:: pipy's latest tweets
+     :eq: {1} = tweets[i]['name']
+          {2} = tweets[i]['version']
+          {3} = tweets[i]['desc']
+     :setup: import twitter
+             def parse(s):
+                 remain = s.text
+                 (name, remain) = remain.split(' ', 1)
+                 (version, remain) = remain.split(':', 1)
+                 (desc, remain) = remain.split('http://', 1)
+                 return dict(name=name, version=version, desc=desc)
+             api = twitter.Api()
+             statuses = api.GetUserTimeline('pypi')
+             tweets = map(parse, statuses)
+
+     === ======== ======== ==============================================
+     #   Name     Version  Description
+     === ======== ======== ==============================================
+     1
+     2
+     3
+     4
+     5
+     6
+     7
+     8
+     9
+     10
+     === ======== ======== ==============================================
+
+.. spreadsheet:: pipy's latest tweets
+   :eq: {1} = tweets[i]['name']
+        {2} = tweets[i]['version']
+        {3} = tweets[i]['desc']
+   :setup: import twitter
+           def parse(s):
+               remain = s.text
+               (name, remain) = remain.split(' ', 1)
+               (version, remain) = remain.split(':', 1)
+               (desc, remain) = remain.split('http://', 1)
+               return dict(name=name, version=version, desc=desc)
+           api = twitter.Api()
+           statuses = api.GetUserTimeline('pypi')
+           tweets = map(parse, statuses)
+
+   === ======== ======== ==============================================
+   #   Name     Version  Description
+   === ======== ======== ==============================================
+   1
+   2
+   3
+   4
+   5
+   6
+   7
+   8
+   9
+   10
+   === ======== ======== ==============================================

File rstspreadsheet-doc/objects.inv

Binary file modified.

File rstspreadsheet-doc/sample.html

 </div>
 </div>
 </div>
+<div class="section" id="advanced">
+<h2>Advanced<a class="headerlink" href="#advanced" title="Permalink to this headline">¶</a></h2>
+<div class="section" id="twitter">
+<h3>twitter<a class="headerlink" href="#twitter" title="Permalink to this headline">¶</a></h3>
+<div class="highlight-rst"><div class="highlight"><pre><span class="p">..</span> <span class="ow">spreadsheet</span><span class="p">::</span> pipy&#39;s latest tweets
+   <span class="nc">:eq:</span> <span class="nf">{1} = tweets[i][&#39;name&#39;]</span>
+        {2} = tweets[i][&#39;version&#39;]
+        {3} = tweets[i][&#39;desc&#39;]
+   <span class="nc">:setup:</span> <span class="nf">import twitter</span>
+           def parse(s):
+               remain = s.text
+               (name, remain) = remain.split(&#39; &#39;, 1)
+               (version, remain) = remain.split(&#39;:&#39;, 1)
+               (desc, remain) = remain.split(&#39;http://&#39;, 1)
+               return dict(name=name, version=version, desc=desc)
+           api = twitter.Api()
+           statuses = api.GetUserTimeline(&#39;pypi&#39;)
+           tweets = map(parse, statuses)
+
+   === ======== ======== ==============================================
+   #   Name     Version  Description
+   === ======== ======== ==============================================
+   1
+   2
+   3
+   4
+   5
+   6
+   7
+   8
+   9
+   10
+   === ======== ======== ==============================================
+</pre></div>
+</div>
+<table border="1" class="docutils">
+<caption>pipy&#8217;s latest tweets</caption>
+<colgroup>
+<col width="5%" />
+<col width="12%" />
+<col width="12%" />
+<col width="71%" />
+</colgroup>
+<thead valign="bottom">
+<tr><th class="head">#</th>
+<th class="head">Name</th>
+<th class="head">Version</th>
+<th class="head">Description</th>
+</tr>
+</thead>
+<tbody valign="top">
+<tr><td>1</td>
+<td>rstspreadsheet</td>
+<td>0.1.2</td>
+<td> Add the `spreadsheet` directive to reStructuredText for Docutils and Sphinx </td>
+</tr>
+<tr><td>2</td>
+<td>medialog.foldersubskins</td>
+<td>0.3</td>
+<td> Makes it possible to have different layout on different parts of a plone site. </td>
+</tr>
+<tr><td>3</td>
+<td>Products.Gloworm</td>
+<td>1.1</td>
+<td> A Firebug-like inspection tool for Plone </td>
+</tr>
+<tr><td>4</td>
+<td>TaskCoach</td>
+<td>1.2.20</td>
+<td> Your friendly task manager </td>
+</tr>
+<tr><td>5</td>
+<td>ostrich</td>
+<td>0.3.6</td>
+<td> Python port of the Scala Ostrich library </td>
+</tr>
+<tr><td>6</td>
+<td>bluetrain</td>
+<td>0.9.4</td>
+<td> Django CMS </td>
+</tr>
+<tr><td>7</td>
+<td>bluetrain</td>
+<td>0.9.3.1</td>
+<td> Django CMS </td>
+</tr>
+<tr><td>8</td>
+<td>armstrong</td>
+<td>11.06.0.beta.2</td>
+<td> Armstrong is an open-source publishing system designed for news organizations that giv... </td>
+</tr>
+<tr><td>9</td>
+<td>ManifestDestiny</td>
+<td>0.5.1</td>
+<td> Universal manifests for Mozilla test harnesses </td>
+</tr>
+<tr><td>10</td>
+<td>pydub</td>
+<td>0.5.2</td>
+<td> Manipulate audio with an simple and easy high level interface </td>
+</tr>
+</tbody>
+</table>
+</div>
+</div>
 </div>
 
 
 <li><a class="reference internal" href="#error-in-eq">Error in <tt class="docutils literal"><span class="pre">:eq:</span></tt></a></li>
 </ul>
 </li>
+<li><a class="reference internal" href="#advanced">Advanced</a><ul>
+<li><a class="reference internal" href="#twitter">twitter</a></li>
+</ul>
+</li>
 </ul>
 </li>
 </ul>

File rstspreadsheet-doc/searchindex.js

-Search.setIndex({objects:{"":{i:[2,0,1],spreadsheet:[2,4,1],last:[2,0,1],cols:[2,0,1],col:[2,0,1]},rstspreadsheet:{ListLike:[2,2,1]},"rstspreadsheet.ListLike":{"int":[2,3,1],sum:[2,1,1],"float":[2,3,1],str:[2,3,1],mean:[2,1,1]}},terms:{tkf:0,all:2,code:[0,2],execut:[0,2],show:2,syntaxerror:0,syntax:2,shape:2,comma:2,follow:[0,1,2],find:1,row:[0,2],content:1,just:1,also:[0,1],except:2,program:1,els:0,liter:2,"return":0,string:[0,2],format:[0,2],handl:0,express:[0,2],easy_instal:1,repo:0,cannot:2,condit:[0,2],fac:0,like:2,name:0,docutil:2,list:2,integ:2,nameerror:0,each:2,increment:0,valid:0,mean:[0,2],pleas:1,set:0,replac:2,direct:[0,1,2],see:[0,2],num:2,sampl:[0,1],result:[0,2],arg:0,download:1,home:0,special:[0,1,2],variabl:[0,1,2],index:2,defin:[0,2],sum:[0,2],per:2,cell:[0,1,2],version:2,"import":0,current:2,math:0,str:2,column:2,usag:[0,1],here:1,standalon:[0,1],expression_stmt_format:2,put:1,org:0,last:[0,2],extens:1,admin:0,traceback:0,precis:2,equat:[0,1,2],fals:0,col:[0,2],origin:2,pre:2,takafumi:0,kwd:0,modul:0,"float":2,number:2,instal:1,your:1,most:0,span:2,fmt:2,iter:2,wrapper:0,call:0,too:0,statement:2,scope:0,conveni:2,type:2,cite:0,store:2,more:2,"function":[0,2],from:0,option:2,unexpect:0,python:[0,1,2],pars:[0,2],func:0,rst:[0,1],line:[0,2],"true":0,none:2,join:2,provid:2,rstspreadsheet:[0,1,2],setup:[0,2],access:2,cast:2,"while":0,listlik:2,can:[0,1,2],abov:2,error:0,separ:2,other:1,def:0,overrid:2,conf:[0,1],evalu:2,"int":[0,2],argument:0,repres:2,pip:1,file:0,need:0,"_get_scop":0,occur:0,welcom:1,want:1,keep_warn:0,titl:2,get:2,spreadsheet:[0,1,2],same:[1,2],note:[0,2],field:2,html:[0,1],expression_stmt:2,which:2,you:[0,1,2],document:[1,2],simpl:0,sin:0,exp:0,exec:0,previou:2,befor:2,pair:2,data:[0,2],"class":2,recent:0,bitbucket:0,sphinx:[0,1],eof:0,directori:1,"try":0,thu:2,exampl:[0,1,2],command:0,thi:[0,2]},objtypes:{"0":"py:data","1":"py:method","2":"py:class","3":"py:attribute","4":"rst:directive"},titles:["Example usages of the <cite>spreadsheet</cite> directive","Welcome to rstSpreadsheet&#8217;s documentation!","The <tt class=\"docutils literal docutils literal\"><span class=\"pre\">spreadsheet</span></tt> directive"],objnames:{"0":"Python data","1":"Python method","2":"Python class","3":"Python attribute","4":"reStructuredText directive"},filenames:["sample","index","spreadsheet"]})
+Search.setIndex({objects:{"":{i:[2,0,1],spreadsheet:[2,4,1],last:[2,0,1],cols:[2,0,1],col:[2,0,1]},rstspreadsheet:{ListLike:[2,3,1]},"rstspreadsheet.ListLike":{"int":[2,2,1],sum:[2,1,1],"float":[2,2,1],str:[2,2,1],mean:[2,1,1]}},terms:{tkf:0,all:2,code:[0,2],just:1,show:2,text:0,syntaxerror:0,syntax:2,shape:2,comma:2,per:2,file:0,follow:[0,1,2],find:1,row:[0,2],content:1,layout:0,execut:[0,2],easi:0,field:2,tweet:0,restructuredtext:0,except:2,add:0,program:1,dict:0,els:0,har:0,split:0,liter:2,"return":0,string:[0,2],format:[0,2],handl:0,express:[0,2],pypi:0,number:2,repo:0,cannot:2,condit:[0,2],fac:0,desc:0,name:0,organ:0,level:0,docutil:[0,2],cell:[0,1,2],list:2,html:[0,1],integ:2,manifest:0,nameerror:0,each:2,increment:0,separ:2,manag:0,mean:[0,2],pleas:1,set:0,replac:2,twitter:0,direct:[0,1,2],see:[0,2],num:2,sampl:[0,1],result:[0,2],arg:0,download:1,home:0,port:0,librari:0,variabl:[0,1,2],index:2,cast:2,sum:[0,2],bluetrain:0,"while":0,publish:0,your:[0,1],current:2,gloworm:0,version:[0,2],"import":0,math:0,can:[0,1,2],inspect:0,abov:2,advanc:0,manipul:0,usag:[0,1],here:1,like:[0,2],standalon:[0,1],expression_stmt_format:2,put:1,org:0,argument:0,last:[0,2],extens:1,admin:0,traceback:0,ostrich:0,precis:2,befor:2,equat:[0,1,2],fals:0,col:[0,2],origin:2,overrid:2,takafumi:0,kwd:0,manifestdestini:0,modul:0,"float":2,easy_instal:1,friendli:0,api:0,instal:1,open:0,plone:0,pydub:0,giv:0,differ:0,span:2,evalu:2,fmt:2,univers:0,system:0,wrapper:0,iter:2,too:0,statement:2,call:0,conveni:2,type:2,cite:0,store:2,more:2,"function":[0,2],from:0,option:2,unexpect:0,python:[0,1,2],tool:0,mozilla:0,getusertimelin:0,part:0,pars:[0,2],func:0,scope:0,rst:[0,1],line:[0,2],"true":0,none:2,join:2,possibl:0,provid:2,rstspreadsheet:[0,1,2],setup:[0,2],access:2,pipi:0,defin:[0,2],remain:0,listlik:2,column:2,str:2,error:0,design:0,other:1,def:0,pre:2,conf:[0,1],armstrong:0,"int":[0,2],site:0,repres:2,high:0,need:0,taskcoach:0,sourc:0,firebug:0,have:0,interfac:0,pip:1,"_get_scop":0,occur:0,welcom:1,want:1,keep_warn:0,titl:2,medialog:0,get:2,spreadsheet:[0,1,2],same:[1,2],note:[0,2],also:[0,1],valid:0,expression_stmt:2,special:[0,1,2],which:2,test:0,"new":0,you:[0,1,2],document:[1,2],simpl:0,sin:0,status:0,map:0,product:0,http:0,thi:[0,2],exec:0,previou:2,most:0,beta:0,pair:2,data:[0,2],"class":2,recent:0,bitbucket:0,task:0,sphinx:[0,1],eof:0,directori:1,"try":0,thu:2,scala:0,descript:0,django:0,exampl:[0,1,2],command:0,exp:0,audio:0,foldersubskin:0,make:0,latest:0},objtypes:{"0":"py:data","1":"py:method","2":"py:attribute","3":"py:class","4":"rst:directive"},titles:["Example usages of the <cite>spreadsheet</cite> directive","Welcome to rstSpreadsheet&#8217;s documentation!","The <tt class=\"docutils literal docutils literal\"><span class=\"pre\">spreadsheet</span></tt> directive"],objnames:{"0":"Python data","1":"Python method","2":"Python attribute","3":"Python class","4":"reStructuredText directive"},filenames:["sample","index","spreadsheet"]})