[Python] installazione di sphinx

Renato Pontefice renato.pontefice a gmail.com
Ven 28 Set 2012 15:30:03 CEST


ho rinominato il file da rst a txt.
Questo è il comando che lancio
______________________________
renato a gnslab:~$ rst2pdf index.txt -o out.pdf
__________________________________
questo l' errore che ottengo:
____________________________________
index.txt:11: (ERROR/3) Unknown directive type "toctree".

.. toctree::
   :maxdepth: 2

index.txt:17: (ERROR/3) Unknown interpreted text role "ref".
index.txt:18: (ERROR/3) Unknown interpreted text role "ref".
index.txt:19: (ERROR/3) Unknown interpreted text role "ref".
index.txt:20: (ERROR/3) Unknown interpreted text role "ref".
_____________________________________

che manca?

Renato

Il 28 settembre 2012 15:08, Pietro <peter.zamb a gmail.com> ha scritto:
> Ciao,
>
> 2012/9/28 Renato Pontefice <renato.pontefice a gmail.com>:
>> Ho trovato l' utility rst2pdf, che a quanto capito dovrebbe far
>> questo. L' ho installata e provata, ma non riesco.
>> consultando il man di questa utility, alla fine c' scritto questo:
>>
>> rest2pdf rest.txt -o out.pdf
>>
>> quindi sembrerebbe possibile no?
>
> Premetto che non l'ho mai usato, ma da quello che ho letto nella
> mailing list di sphinx-dev funziona...
>
>> ma trovo strano il fatto che il file di input sia un .txt. dovrebbe
>> essere un .rst no?
>
> No, non per forza le direttive reST lasciano libertà di scegliere che
> estensione del file usare:
>
> http://docutils.sourceforge.net/FAQ.html#what-s-the-standard-filename-extension-for-a-restructuredtext-file
>
>
> ciao
>
> Pietro
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python


Maggiori informazioni sulla lista Python