source: flex_extract.git/Documentation/html/_sources/Developers/gen_docu.rst.txt @ 5bee29a

ctbtodev
Last change on this file since 5bee29a was 5bee29a, checked in by anphi <anne.philipp@…>, 4 years ago

new compilation of Sphinx

  • Property mode set to 100644
File size: 1.9 KB
Line 
1********************
2Updating the documentation
3********************
4
5UNDER CONSTRUCTION
6
7Additional software
8===================
9
10Developers working on ``flex_extract`` should make extensive use of the prepared test cases and unit tests, and should also update the documentation. For this, some additional software is necessary:
11
12.. code-block:: sh
13
14  pip install pylint
15  pip install pytest
16  pip install mock
17  pip install graphviz
18  pip install sphinx
19  pip install sphinxcontrib-exceltable
20  pip install seqdiag
21  pip install sphinxcontrib-seqdiag
22  pip install sphinxcontrib-blockdiag
23  pip install pycallgraph
24
25
26
27
28
29On-line documentation with Sphinx
30================================
31
32Use the script ``gen_docu.sh`` to generate an update of the on-line documentation of the Python component.
33
34It uses ``pyreverse`` to generate class and package diagrams with ``graphviz`` and overwrites the old files in the developers directory.
35``pyreverse`` creates ``dot`` files, and with the ``dot`` program of the ``graphviz`` software, the ``png`` files are created. Everything happens in the Python source directory before moving them finally to the ``For_developers`` directory. The Sphinx source code has a ``_files`` directory which contains links to these ``png`` files and therefore they should not be renamed. 
36
37
38Sequence diagramms
39------------------
40
41You might need to adapt the fonts path for the diagrams to a true-type font. Currently it is set to:
42
43.. code-block:: bash
44
45    # Fontpath for seqdiag (truetype font)
46    seqdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf'
47
48
49Block diagramms
50------------------
51
52You might need to adapt the fonts path for the diagrams to a true-type font. Currently it is set to:
53
54.. code-block:: bash
55
56     # Fontpath for blockdiag (truetype font)
57     blockdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf'
58
59
60
61
62.. toctree::
63    :hidden:
64    :maxdepth: 2
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG