On Sunday, February 10, 2013 7:23:59 AM UTC+1, Guenter Milde wrote: > > On 2013-02-07, Tawez wrote: > > ... > > > If refferede resource is a folder, it is automaticaly packed to zpi > file. > > > From now on we can use: > >:download:`downloads/tutorial_01/` > > or > >:download:`downloads/tutorial_01` > > > If "tutorial_01" is a folder, "tutorial_01.zip" will be created and > stored > > in common place for downloads. > > It would be nice, if this could be made into an extension that a user can > select in the configuration. > > To avoid confusion, please be aware, that:: > > :download:`something` > > is not a "directive", but a "role". (Directives are block-level elements > like <div> and <p>) while roles are inline elements like <span> and <a>.) >
Hi Gunter, Yes, :download: is a role, my mistake ;) I was thinking about a role and I don't know why I've used a term "directive". Anyway, our extension is to role :download: It is done in "transprent" way - You can use :downlod: as usually and it works as before. Now, if resource is a folder You will get warning. With our extension, this folder will be packed to zip file - tahts all. Thanks, Tawez -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
