[sphinx-dev] Resolving links

2009-08-31 Thread Roberto Alsina
I am trying to resolve links betwen documents in rst2pdf and am having some problems. Here's what I understand so far. This is the method in charge of returning the URL for the link. If it raises NoUri, then it's not linked at all. get_target_uri(self, docname, typ=None): Now, suppose I have

[sphinx-dev] Re: captions for literal blocks in ReST

2009-08-31 Thread Guenter Milde
On 2009-08-31, Chris Withers wrote: > Guenter Milde wrote: >> I would rather nest the literal block in a directive, a topic, say:: >> .. topic:: myfile.py >> :: >> class MyClass: >> def something(self): >> pass > These all sound equally fine, however, in each

[sphinx-dev] Re: captions for literal blocks in ReST

2009-08-31 Thread Chris Withers
Guenter Milde wrote: >> """ >> Suppose you wanted to compile a file such as the following:: > >>class MyClass: >> def something(self): >> pass > >> :caption:myfile.py > >> """ > > The problem with this example is ...it was just a guess on my part, but looks like it served i