1 | .. _building_documentation: |
---|
2 | |
---|
3 | Building Documentation (Linux OS only) |
---|
4 | ************************************** |
---|
5 | |
---|
6 | To build the documentation for :mod:`waeup.sirp`, please follow these steps: |
---|
7 | |
---|
8 | Prerequisites |
---|
9 | ============= |
---|
10 | |
---|
11 | We assume you already installed `waeup.sirp` as explained in |
---|
12 | :ref:`installing_linux`. You ran ``bin/buildout`` and can find a script |
---|
13 | ``bin/waeupdocs``. |
---|
14 | |
---|
15 | Building HTML docs |
---|
16 | ================== |
---|
17 | |
---|
18 | After successful install go to the root dir, where `waeup.sirp` is |
---|
19 | located. |
---|
20 | |
---|
21 | There run:: |
---|
22 | |
---|
23 | $ ./bin/waeupdocs |
---|
24 | |
---|
25 | This will (re-)generate any needed docs. |
---|
26 | |
---|
27 | The output can be found in ``docs/build/html``. |
---|
28 | |
---|
29 | Actually, ``waeupdocs`` is only a wrapper script around the real main |
---|
30 | script ``sphinx-build``, which should also be located in your ``bin/`` |
---|
31 | directory. |
---|
32 | |
---|
33 | You therefore can also run ``bin/sphinx-build`` manually, which will |
---|
34 | give you more options, especially, if you want the output to be |
---|
35 | created in a different location or similar. |
---|
36 | |
---|
37 | Run:: |
---|
38 | |
---|
39 | $ ./bin/sphinx-build --help |
---|
40 | |
---|
41 | to get a list of options available. |
---|
42 | |
---|
43 | Alternatively, you can also go to ``docs/build`` and run:: |
---|
44 | |
---|
45 | $ make html |
---|
46 | |
---|
47 | Other available formats are listed, when you run only:: |
---|
48 | |
---|
49 | $ make |
---|
50 | |
---|
51 | These other formats will include ``latex``, ``doctest``, ``linkcheck`` |
---|
52 | and more with a short explanation for each format. |
---|
53 | |
---|
54 | |
---|
55 | Building PDF docs |
---|
56 | ================= |
---|
57 | |
---|
58 | We're currently not prepared for PDF, but support is already planned. |
---|
59 | |
---|
60 | Please be aware, that any PDF support will require a full TeX |
---|
61 | installation on your system to work. |
---|