Inaky Perez-Gonzalez | e3683c2 | 2016-06-13 12:53:57 -0700 | [diff] [blame] | 1 | :orphan: |
| 2 | |
Anas Nashif | ba751c8 | 2015-10-20 13:28:33 -0400 | [diff] [blame] | 3 | Welcome to Zephyr Kernel |
| 4 | ######################## |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 5 | |
| 6 | .. This document is in Restructured Text Format. |
Rodrigo Caballero | c0871e4 | 2015-12-08 14:30:34 -0600 | [diff] [blame] | 7 | Find more information regarding the ReST markup in the |
| 8 | `ReST documentation`_. |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 9 | This is a comment that won't show up in formatted output |
| 10 | |
Anas Nashif | e973119 | 2015-10-20 13:29:57 -0400 | [diff] [blame] | 11 | Welcome to the Zephyr Project. |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 12 | |
Anas Nashif | e973119 | 2015-10-20 13:29:57 -0400 | [diff] [blame] | 13 | Thank you for your interest in the Zephyr Project. These instructions are |
| 14 | designed to walk you through generating the Zephyr Project's documentation. |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 15 | |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 16 | Documentation Notes |
| 17 | ******************* |
| 18 | |
Dan Kalowsky | 1e4624e | 2015-06-09 16:39:49 -0700 | [diff] [blame] | 19 | The project's documentation currently comprises the following items: |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 20 | |
| 21 | * An Installation Guide for Linux host systems |
| 22 | |
Dan Kalowsky | 1e4624e | 2015-06-09 16:39:49 -0700 | [diff] [blame] | 23 | * A set of Collaboration Guidelines for the project. |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 24 | |
Rodrigo Caballero | 772c85b | 2015-12-08 14:17:55 -0600 | [diff] [blame] | 25 | * Doxygen output from the code base for all APIs. |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 26 | |
| 27 | Installing the documentation processors |
| 28 | *************************************** |
| 29 | |
Rodrigo Caballero | 40df7fc | 2016-01-25 12:06:33 -0600 | [diff] [blame] | 30 | Install the current version of ``Sphinx``, type: |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 31 | |
| 32 | .. code-block:: bash |
| 33 | |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 34 | $ git clone https://github.com/sphinx-doc/sphinx.git sphinx |
| 35 | |
| 36 | $ cd sphinx |
| 37 | |
| 38 | $ sudo -E python setup.py install |
| 39 | |
Anas Nashif | c462756 | 2015-05-27 12:26:55 -0400 | [diff] [blame] | 40 | $ cd .. |
| 41 | |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 42 | $ git clone https://github.com/michaeljones/breathe.git breathe |
| 43 | |
| 44 | $ cd breathe |
| 45 | |
| 46 | $ sudo -E python setup.py install |
| 47 | |
| 48 | .. note:: |
| 49 | |
Rodrigo Caballero | 40df7fc | 2016-01-25 12:06:33 -0600 | [diff] [blame] | 50 | Make sure that ``Doxygen`` is installed in your system. |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 51 | The installation of Doxygen is beyond the scope of this document. |
| 52 | |
Rodrigo Caballero | c0871e4 | 2015-12-08 14:30:34 -0600 | [diff] [blame] | 53 | Running the Documentation Generators |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 54 | ************************************ |
| 55 | |
Anas Nashif | e973119 | 2015-10-20 13:29:57 -0400 | [diff] [blame] | 56 | Assuming that the Zephyr Project tree with the doc directory is in |
Rodrigo Caballero | 40df7fc | 2016-01-25 12:06:33 -0600 | [diff] [blame] | 57 | ``DIRECTORY``, type: |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 58 | |
| 59 | .. code-block:: bash |
| 60 | |
| 61 | $ cd DIRECTORY/doc |
| 62 | |
| 63 | $ make doxy html |
| 64 | |
Rodrigo Caballero | 40df7fc | 2016-01-25 12:06:33 -0600 | [diff] [blame] | 65 | Find the output in ``DIRECTORY/doc/_build/html/index.html`` |
Rodrigo Caballero | a4a50fa | 2015-05-15 11:38:34 -0500 | [diff] [blame] | 66 | |
| 67 | Review the available formats with: |
| 68 | |
| 69 | .. code-block:: bash |
| 70 | |
| 71 | $ make -C DIRECTORY/doc doxy html |
| 72 | |
| 73 | If you want the LaTeX PDF output, you need to install all the Latex |
| 74 | packages first. That installation is beyond the scope of this document. |
Rodrigo Caballero | c0871e4 | 2015-12-08 14:30:34 -0600 | [diff] [blame] | 75 | |
Inaky Perez-Gonzalez | e3683c2 | 2016-06-13 12:53:57 -0700 | [diff] [blame] | 76 | .. _ReST documentation: http://sphinx-doc.org/rest.html |