ctbtodev
Last change
on this file since 0b00607 was
0b00607,
checked in by Anne Philipp <anne.philipp@…>, 5 years ago
|
Documentation status version 0
|
-
Property mode set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[41c9dbc] | 1 | ******************** |
---|
| 2 | Update Documentation |
---|
| 3 | ******************** |
---|
| 4 | |
---|
| 5 | UNDER CONSTRUCTION |
---|
| 6 | |
---|
| 7 | Additional Software |
---|
| 8 | =================== |
---|
| 9 | |
---|
| 10 | Developers working on ``flex_extract`` should make extensive use of the prepared test cases, unit tests and update the documentation. For this, some additional software is necessary: |
---|
| 11 | |
---|
| 12 | - pylint |
---|
| 13 | - pytest |
---|
| 14 | - mock |
---|
| 15 | - graphviz |
---|
| 16 | - sphinx |
---|
[0b00607] | 17 | - pip install sphinxcontrib-exceltable |
---|
| 18 | - pip install seqdiag |
---|
| 19 | - pip install sphinxcontrib-seqdiag |
---|
| 20 | - pip install sphinxcontrib-blockdiag |
---|
| 21 | - pip install pycallgraph |
---|
| 22 | |
---|
| 23 | #- pip install sphinx-fortran |
---|
[41c9dbc] | 24 | |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | Online-documentation with Sphinx |
---|
| 28 | ================================ |
---|
| 29 | |
---|
| 30 | Use the scriot ``gen_docu.sh`` to generate an update of the online documentation of the python component. |
---|
| 31 | |
---|
| 32 | It uses ``pyreverse`` to generate a class and a package diagram with graphviz and overwrites the old files in the developers directory. |
---|
| 33 | ``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. |
---|
| 34 | |
---|
| 35 | |
---|
[0b00607] | 36 | Sequence diagramms |
---|
| 37 | ------------------ |
---|
| 38 | |
---|
| 39 | You might need to adapt the fonts path for the diagrams to a true type font. Currently it is set to: |
---|
| 40 | |
---|
| 41 | .. code-block:: bash |
---|
| 42 | |
---|
| 43 | # Fontpath for seqdiag (truetype font) |
---|
| 44 | seqdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf' |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | Block diagramms |
---|
| 48 | ------------------ |
---|
| 49 | |
---|
| 50 | You might need to adapt the fonts path for the diagrams to a true type font. Currently it is set to: |
---|
| 51 | |
---|
| 52 | .. code-block:: bash |
---|
| 53 | |
---|
| 54 | # Fontpath for blockdiag (truetype font) |
---|
| 55 | blockdiag_fontpath = '/usr/share/fonts/dejavu/DejaVuSerif.ttf' |
---|
| 56 | |
---|
[41c9dbc] | 57 | |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | .. toctree:: |
---|
| 61 | :hidden: |
---|
[0b00607] | 62 | :maxdepth: 2 |
---|
Note: See
TracBrowser
for help on using the repository browser.