action functions
|
Please note that the library has not been "officially" released. While we continue to work on the documentation, these web pages are likely to contain broken links and documents in draft form. Please send an email to if you wish to be informed of the library's "official" release. |
This document provides an overview of how to prepare documentation for inclusion within oomph-lib.
doc directory, create a directory for your documentation, e.g. cd doc/axisym_navier_stokes/ mkdir spin_up
Makefile.am doc/axisym_navier_stokes/spin_up to the file config/configure. ac_scripts/doc.dir_list *.txt file with the same name as the newly-created directory, e.g. touch spin_up.txt
Makefile.am Doxyfile Makefile.am after "docfile =", add the stem of the *.txt file created in step 4, e.g. docfile = spin_up
Doxyfile update the (relative) path to the demo-driver directory. Two entries must be updated, one following "INPUT" and the other following "EXAMPLE_PATH". To find these, search for "../..".oomph-lib's top-level directory and re-run autogen.sh with the rebuild flag: ./autogen.sh --rebuild
figures *.gif and *.eps formats (*.gif is used for the html documentation whilst *.eps is used for LaTeX).non_distfigures *.lay and *.lpk files that were used to create figures, along with any macro (*.mcr) files.
*.txt file (a mixture of html/doxygen markup). The title must follow the tag \mainpage and be all on one line, e.g. \mainpage Demo problem: Spin-up of a viscous fluid
LaTeX document, with line spacings indicating paragraph breaks.<hr> inserts a horizontal line). Hyperlinks are inserted in the following way: This is illustrated in an <A HREF="../figures/my_movie.avi">animation</A>.
".." is present in the path above because during the build process the documentation is created in subdirectories of the directory in which the source file is located. See the section Generating the documentation below for more details.
To link to the documentation of another demo driver, poisson/one_d_poisson for example, hyperlink to the index.html file within the html directory of that demo driver's documentation. Note that because the processed (html) version of the documentation you are working on will live in its own html subdirectory, it is necessary to go up three directories in order to be in oomph-lib's doc directory.
...see <A HREF="../../../poisson/one_d_poisson/html/index.html">the
Poisson tutorial</A>.
\section section_label This is the title of my section
Likewise, subsections are created in the following way:
\subsection subsection_label This is the title of my subsection
Any LaTeX section types can be used in this way. To link to a section within a document, use the syntax \ref section_label, as in this example:
...can be found in the section \ref theory below.
LaTeX except \f must be added before $ or [, ]....is given by \f$ \sin(x) \f$
\f[ \sin(x) \f]
To label equations, the normal LaTeX system cannot be used. Instead, mark an equation with the tag @E and refer to it later using [LABEL]@@R, e.g.[LABEL]@
and then later on...
...is given by equation (@R[eqn:cont]@).
-, e.g. - First item - Second item
-#, e.g. -# First item -# Second item
my_figure.* is inserted in the following way:
Note the space between the last character in the caption and the quotation marks. Like the equation labelling, this line is processed by the txt2h.sh script (which is run automatically as part of the make process) and replaced with the necessary commands that tell doxygen to use the *.gif files for the html documentation and the *.eps files for the LaTeX documentation.
\c, e.g. The function \c FiniteElement::output(...) is used to...
To include blocks of code such as the one immediately above this line of text, use the \code environment, e.g.
To include sections of the demo code which you are documenting, e.g. the main function of spin_up.cc, use the following syntax:
\dontinclude spin_up.cc \skipline start_of_main \until end of main
start_of_main exists somewhere in spin_up.cc file, but any word(s) can be used as a start/endpoint.doxygen to ignore everything in the source file below a certain point, denote this point with @@END@@.doxygen that a certain section of the source file is only to be included in the html version of the documentation and omitted in the LaTeX version, enclose this section within \htmlonly and \endhtmlonly tags.doxygen that a certain section of the source file is only to be included in the LaTeX version of the documentation and omitted in the html version, enclose this section within \latexonly and \endlatexonly tags.
make in the documentation directory to build the html and LaTeX versions, e.g. cd doc/axisym_navier_stokes/spin_up make
html and latex, are now created containing the two versions of the documentation. A *.pdf file of the LaTeX version is also placed in the current directory.
1.4.7