diff options
author | Ben Reynwar | 2012-05-21 09:30:58 -0700 |
---|---|---|
committer | Ben Reynwar | 2012-05-21 09:30:58 -0700 |
commit | 7f1178d2f4f51e1ad28a95d3a209ca0484839a9e (patch) | |
tree | 399192b90a15a7da58bdd03dff3e3e4e83c614ee /docs/sphinx/README | |
parent | 3ff3257f9fdbf3cd3f88036ebdbf36c70891a53e (diff) | |
parent | 91c3d95daa974fbbab11ac26a3a30c11ca35a5cd (diff) | |
download | gnuradio-7f1178d2f4f51e1ad28a95d3a209ca0484839a9e.tar.gz gnuradio-7f1178d2f4f51e1ad28a95d3a209ca0484839a9e.tar.bz2 gnuradio-7f1178d2f4f51e1ad28a95d3a209ca0484839a9e.zip |
Merge remote-tracking branch 'trondeau-github/sphinxdocs' into sphinxdocs
Diffstat (limited to 'docs/sphinx/README')
-rw-r--r-- | docs/sphinx/README | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/sphinx/README b/docs/sphinx/README new file mode 100644 index 000000000..31fd47fe2 --- /dev/null +++ b/docs/sphinx/README @@ -0,0 +1,38 @@ +INTRODUCTION +The Sphinx documentation system uses the fully installed Python tree +to build a set of documents (generally in HTML). In GNU Radio, the +documentation system is done through Doxygen in the public header +(/include/foo.h) files. Doxygen first builds its documentation files, +then the swig_docs program uses Doxygen's XML output and smashed the +documentation from each header file into the SWIG'd Python +block. Basically, using a single documentation markup, Doxygen, we +expose the documentation strings in both the Doxygen-built manual and +within the Python blocks themselves. + +Sphinx takes this process one step farther by reading the docstrings +of all Python blocks and creating its own manual. This has two +benefits. First, the Sphinx documentation looks nice and is formatted +in such a way that Python users of GNU Radio can easy see the module +structure and hierarchy. It also allows not only takes the Doxygen +documentation from C++, but it also allows us to take any Python files +and include their documentation. + +The end result is two manuals: one for Python and one for C++ users +without having to duplicate comments, markup, or documentation. + + +BUILDING THE SPHINX MANUAL +Building the Sphinx docs takes some manual intervention as it +requires GNU Radio to already be installed. So first follow the steps +to build and install GNU Radio. + +In the build directory, a helper file is created called +run_sphinx_build.sh. This is a Linux shell script that runs the +sphinx-build command with all of the normal settings and important +directories preloaded. For non Linux systems, it should be easy to +pull out the executable and options to run it by hand. + +The run_sphinx_build.sh outputs the manual into +$builddir/docs/sphinx/sphinx_out. Open up the index.html file in a +browser to view it. + |