JRST myfile.rst
Cette commande aura pour effet de convertir le fichier myfile.rst en XML qui sera affiché sur la sortie standard (console). Plusieurs options sont disponibles :
| -o file, -outFile= file, |
pour rediriger la sortie vers un fichier. |
| -t format, -outType format, |
pour préciser un format de sortie, donc utiliser un ou des fichiers XSL de génération. Plusieurs formats sont disponibles xhtml, docbook, xml, html, xdoc, rst, pdf, odt, rtf. |
| -x xslFile, -xslFile xslFile, |
sert à préciser le fichier xsl de génération à utiliser. |
| --force |
forcer l'écriture d'un fichier, si le fichier de sortie existe, il sera remplacé. |
| --help |
pour afficher les options disponibles : |
Usage: [options] FILE [--force] : overwrite existing out file [--help] : display this help and exit [--outFile -o value] : Output file [--outType -t /xhtml|docbook|xml|html|xdoc|rst/] : Output type [--xslFile -x value] : XSL file list to apply, comma separated
ex :
JRST --force -t html -o myfile.html myfile.rst
Cette commande produira un fichier html (myfile.html) à partir du fichier reStructuredText (myfile.rst) même si myfile.html existe déjà.
Un plugin Maven est disponible à l'adresse suivante http://jrst.labs.libre-entreprise.org/maven-jrst-plugin. Il permet l'utilisation depuis Maven de JRst.
| [1] |
Seul les formats html, xhtml, DocBook xdoc et pdf sont disponible pour le moment. |