[5340] | 1 | .. _building_documentation: |
---|
| 2 | |
---|
[6619] | 3 | Building Documentation (Linux OS only) |
---|
| 4 | ************************************** |
---|
[5340] | 5 | |
---|
[11386] | 6 | We use the excellent `Sphinx <http://sphinx.pocoo.org/>`_ Python |
---|
| 7 | documentation generator to generate the docs as HTML pages. |
---|
[5340] | 8 | |
---|
| 9 | Prerequisites |
---|
| 10 | ============= |
---|
| 11 | |
---|
[7808] | 12 | We assume you already installed `waeup.kofa` as explained in |
---|
[6619] | 13 | :ref:`installing_linux`. You ran ``bin/buildout`` and can find a script |
---|
[5340] | 14 | ``bin/waeupdocs``. |
---|
| 15 | |
---|
| 16 | Building HTML docs |
---|
| 17 | ================== |
---|
| 18 | |
---|
[11386] | 19 | The documentation of the :mod:`waeup.kofa` project can easily be |
---|
| 20 | created doing:: |
---|
[5340] | 21 | |
---|
[11386] | 22 | $ bin/waeupdocs |
---|
[5340] | 23 | |
---|
[11386] | 24 | This will create a tree of HTML pages in |
---|
| 25 | ``docs/build/html`` which you can for |
---|
| 26 | instance browse by pointing your browser to this location. |
---|
[5340] | 27 | |
---|
[11386] | 28 | An 'official' place in internet for the whole docs is about to come |
---|
| 29 | but not yet available. |
---|
[5340] | 30 | |
---|
| 31 | Actually, ``waeupdocs`` is only a wrapper script around the real main |
---|
| 32 | script ``sphinx-build``, which should also be located in your ``bin/`` |
---|
| 33 | directory. |
---|
| 34 | |
---|
[5344] | 35 | You therefore can also run ``bin/sphinx-build`` manually, which will |
---|
[5340] | 36 | give you more options, especially, if you want the output to be |
---|
| 37 | created in a different location or similar. |
---|
| 38 | |
---|
[5344] | 39 | Run:: |
---|
| 40 | |
---|
[11386] | 41 | $ bin/sphinx-build --help |
---|
[5344] | 42 | |
---|
| 43 | to get a list of options available. |
---|
| 44 | |
---|
| 45 | Alternatively, you can also go to ``docs/build`` and run:: |
---|
| 46 | |
---|
| 47 | $ make html |
---|
| 48 | |
---|
| 49 | Other available formats are listed, when you run only:: |
---|
| 50 | |
---|
| 51 | $ make |
---|
| 52 | |
---|
| 53 | These other formats will include ``latex``, ``doctest``, ``linkcheck`` |
---|
| 54 | and more with a short explanation for each format. |
---|
| 55 | |
---|
[5340] | 56 | Building PDF docs |
---|
| 57 | ================= |
---|
| 58 | |
---|
| 59 | We're currently not prepared for PDF, but support is already planned. |
---|
| 60 | |
---|
| 61 | Please be aware, that any PDF support will require a full TeX |
---|
| 62 | installation on your system to work. |
---|