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 the following:
1) A document with only an index.rst , containing :module:`pickle`
2) A document index2.rst with a toctree that includes modules.rst
3) In modules.rst, .. module:: pickle
If all this were in a single file, :module:`pickle` would link to .. module::
pickle.
However, all I get in get_target_uri is
docname=modules, typ=None
With that information, I can't create a meaningful link, because I can't guess
that index2.rst contains modules.
I can see how this could be a problem since modules.rst could be used in any
number of documents, and I can see how in HTML this is not a problem, since
modules.rst is always "compiled" to modules.html.
I *could* create a modules.pdf but I think that's exceedingly ugly.
Is there a way to know what toctrees contain modules.rst in this example?
Best regards,
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---