Debian Codegraph @

documentation/source/quickstart.rst

raw
1 Quick Start
2 ===========
3
4 For this quick start we assume the following prerequisites:
5
6 * breathe was downloaded and extracted somewhere
7 * doxygen was installed and doxygen output (XML format) was generated for the
8 project that is to be documented (set GENERATE_XML tag to YES)
9
10 We assume the following paths:
11
12 * documentation root path: :file:`/home/me/docproj/`
13 * breathe path: :file:`/home/me/docproj/ext/breathe/`
14 * doxygen xml output: :file:`/home/me/docproj/doxyxml/`
15
16 The documentation path should contain a folder :file:`source` containing the
17 :file:`conf.py` file. The doxygen xml output folder should contain the
18 :file:`index.xml` output file generated by doxygen.
19
20 The following steps are required to integrate breathe functionality:
21
22 #. Add the breathe path to your conf.py by adding the following line:
23
24 .. code-block:: python
25
26 sys.path.append("/home/me/docproj/ext/breathe/")
27
28 #. Add breathe as an extension the line could look like this:
29
30 .. code-block:: python
31
32 extensions = ['sphinx.ext.pngmath', 'sphinx.ext.todo', 'breathe' ]
33
34 #. Tell breathe about the projects:
35
36 .. code-block:: python
37
38 breathe_projects = {"myproject": "/home/me/docproj/doxyxml/"}
39
40 #. Specify a default project:
41
42 .. code-block:: python
43
44 breathe_default_project = "myproject"
45
46 Once this is done you may use the following commands to include documentation for different
47 constructs:
48
49 .. code-block:: rst
50
51 .. doxygenindex::
52 .. doxygenfunction::
53 .. doxygenstruct::
54 .. doxygenenum::
55 .. doxygentypedef::
56 .. doxygenclass::
57
58 For each of these commands the following directives may be specified:
59
60 ``project``
61 Specifies which project, as defined in the breathe_projects config value,
62 should be used for this directive. This overrides the default.
63
64 ``path``
65 Directly specifies the path to the folder with the doxygen output. This
66 overrides the project and default project.