Author: jpages Date: 2012-05-29 17:37:18 +0200 (Tue, 29 May 2012) New Revision: 685 Url: http://nuiton.org/repositories/revision/jrst/685 Log: Correction des images dans la doc anglaise et mise en commentaire de la suppression des fichiers temporaires dans JrstParser.java Modified: branches/jrst-docutils-jython/doxia-module-jrst/src/main/java/org/nuiton/jrst/JrstParser.java branches/jrst-docutils-jython/jrst-doc/src/site/en/rst/devel/developerDoc.rst Modified: branches/jrst-docutils-jython/doxia-module-jrst/src/main/java/org/nuiton/jrst/JrstParser.java =================================================================== --- branches/jrst-docutils-jython/doxia-module-jrst/src/main/java/org/nuiton/jrst/JrstParser.java 2012-05-29 10:18:59 UTC (rev 684) +++ branches/jrst-docutils-jython/doxia-module-jrst/src/main/java/org/nuiton/jrst/JrstParser.java 2012-05-29 15:37:18 UTC (rev 685) @@ -55,12 +55,11 @@ try { // Write the source in a file to use it with JRST File sourceFile = File.createTempFile("source",".rst"); - sourceFile.deleteOnExit(); + // sourceFile.deleteOnExit(); FileWriter fileWriter = new FileWriter(sourceFile); IOUtil.copy(source, fileWriter); // Generation of the xml file - // Transformation to XML Document doc = JRST.generateDocutils(sourceFile); // Application of xsl stylesheets Modified: branches/jrst-docutils-jython/jrst-doc/src/site/en/rst/devel/developerDoc.rst =================================================================== --- branches/jrst-docutils-jython/jrst-doc/src/site/en/rst/devel/developerDoc.rst 2012-05-29 10:18:59 UTC (rev 684) +++ branches/jrst-docutils-jython/jrst-doc/src/site/en/rst/devel/developerDoc.rst 2012-05-29 15:37:18 UTC (rev 685) @@ -32,14 +32,16 @@ Class diagram ============= -|classDiagramme| +.. image:: ../../schemas/diagrammeGeneration.png + :align: center **JRST** Class contents main() method, it's looking after options, files reading and writing. Iinitially, it calls Jython_ class **PythonInterpreter** which allows to execute DocUtils' Python script to generate an intermediate file. Then it only remains to apply the wish XSL (if needed) by using **JRSTGenerator** Class. Generation ========== -|diagrammeGeneration| +.. image:: ../../schemas/classDiagramme.png + :align: center Links : @@ -74,7 +76,8 @@ This sequence diagramme describes the parser's mechanism throughout the generation : -|sequenceDiagramme| +.. image:: ../../schemas/diagrammeSequence.png + :align: center **JRSTGenerator** Class with the XSL file rst2xhtml.xsl, returns following html file:: @@ -141,6 +144,3 @@ .. _Cascading Style Sheets: http://en.wikipedia.org/wiki/Cascading_Style_Sheets .. _DocUtils: http://docutils.sourceforge.net/docs/ref/doctree.html .. _Jython: http://jython.org/index.html -.. |diagrammeGeneration| image:: images/diagrammeGeneration.png -.. |classDiagramme| image:: images/diagrammeClass.png -.. |sequenceDiagramme| image:: images/diagrammeSequence.png