Debian Codegraph @

documentation/source/index.rst

raw
1 ..
2 BreatheExample documentation master file, created by sphinx-quickstart on Tue Feb 3 18:20:48 2009.
3 You can adapt this file completely to your liking, but it should at least
4 contain the root `toctree` directive.
5
6 Breathe's documentation
7 =======================
8
9 Breathe provides a bridge between the Sphinx and Doxygen documentation systems.
10
11 It is an easy way to include Doxygen information in a set of documentation
12 generated by Sphinx. The aim is to produce an autodoc like support for people
13 who enjoy using Sphinx but work with languages other than Python. The system
14 relies on the Doxygen's xml output.
15
16
17 .. only:: documentation_build_readthedocs_latest
18
19 .. warning::
20
21 This documentation is built from the latest `Breathe github project
22 <https://github.com/breathe-doc/breathe/>`_ code. It does not necessarily
23 reflect a released version of Breathe on PyPI.
24
25 .. only:: documentation_build_development
26
27 .. warning::
28
29 This build of the documentation is not from a specific tagged release of
30 Breathe. It reflects a work in progress state of Breathe. Please see the
31 `github repository <https://github.com/breathe-doc/breathe/>`_ for a more
32 official source of information.
33
34
35 Overview
36 --------
37
38 * **Simple setup** - one doxygen config value, one Sphinx config value and one
39 directive and you'll be on your way.
40 * **High and low level directives** - reference the whole project, just a class
41 or just a function with different directives.
42 * **Support for multiple doxygen projects** - set it up to be aware of different
43 projects and reference them by name or path for each directive.
44 * **Allows embedded reStructuredText in doxygen markup** - some extra doxygen
45 aliases allow you to add ``\rst`` - ``\endrst`` blocks to your comments and
46 have the contents interpreted as reStructuredText.
47 * **Basic support for Sphinx domains** - Link to functions in the breathe output
48 with a standard Sphinx domain reference.
49
50 Setup & Usage
51 -------------
52
53 .. toctree::
54 :maxdepth: 1
55
56 quickstart
57 directives
58 differences
59 readthedocs
60
61 Features
62 --------
63
64 .. toctree::
65 :maxdepth: 1
66
67 markups
68 latexmath
69 codeblocks
70 domains
71 customcss
72 groups
73 lists
74 tables
75 template
76 dot_graphs
77
78 Contributing
79 ------------
80
81 .. toctree::
82 :maxdepth: 1
83
84 contributing
85 codeguide
86 credits
87
88 Example/Test Pages
89 ------------------
90
91 .. toctree::
92 :maxdepth: 1
93
94 testpages
95
96 Download
97 --------
98
99 Breathe is available from:
100
101 * `PyPI, the Python Package Index <https://pypi.org/project/breathe/>`_
102 * `Github <https://github.com/breathe-doc/breathe/>`_
103
104 License
105 -------
106
107 Breathe is under the `BSD license
108 <https://github.com/breathe-doc/breathe/blob/master/LICENSE>`_.
109
110 In a Nutshell
111 -------------
112
113 You write code that looks a little like this:
114
115 .. literalinclude:: code/nutshell.h
116 :language: cpp
117
118 Then you run this:
119
120 .. code-block:: text
121
122 doxygen
123
124 With a setting that says this:
125
126 .. code-block:: text
127
128 GENERATE_XML = YES
129
130 Then in your Sphinx documentation, you add something like this:
131
132 .. code-block:: rst
133
134 .. doxygenclass:: Nutshell
135 :project: nutshell
136 :members:
137
138 With a ``conf.py`` setting like this:
139
140 .. code-block:: python
141
142 breathe_projects = {
143 "nutshell": "../../examples/specific/nutshell/xml/",
144 }
145
146 And Breathe registered as an extension in ``conf.py`` like this:
147
148 .. code-block:: rst
149
150 extensions = ["breathe"]
151
152 You get something like this:
153
154 ----
155
156 .. cpp:namespace:: @ex_index
157
158 .. doxygenclass:: Nutshell
159 :project: nutshell
160 :members:
161
162 ----
163
164 Sound reasonable? To get started, go checkout the :doc:`quickstart guide <quickstart>`.