@@ -11,28 +11,30 @@ The ROOT team has adopted [Doxygen](https://www.doxygen.nl){:target="_blank"} fo
1111the [ Reference Guide] ( https://root.cern/doc/master/ ) {: target ="_ blank"}. Here you will find a number of conventions
1212and tips to be used in source code to generate proper documentation.
1313
14- ## How to generate the doxygen documentation
15- Developers may generate the documentation by hand to see the results of the current changes
16- before committing them to the repository. The automatic daily Jenkins procedures will
17- generate the complete set of documentation.
14+ ## How to generate locally the doxygen documentation
15+ Developers can generate the documentation locally to review the results of their changes
16+ before committing them to the repository. The process is as follows:
1817
1918{% highlight sh %}
2019$ cd <root_sources>/documentation/doxygen
2120$ source <root_sources>/bin/thisroot.sh
2221$ make
2322{% endhighlight %}
2423
25- The results are placed by default at ` ${HOME}/rootdoc/html ` .
26- The script ` $ROOTSYS/documentation/doxygen/makeinput.sh ` defines the ` INPUT ` tag in ` Doxyfile ` .
27- It can be edited to reduce the number of input files and thus reduce the time for generating
28- the HTML pages. Typically you will keep only the folder(s) in which the documentation you are
29- working on is. To see the result of this local build you should open, in your preferred web
30- browser, the file ` ${HOME}/rootdoc/html/index.html ` .
24+ By default, the results are located at ` ${HOME}/rootdoc/html ` . This process will generate
25+ the full documentation, which may take several hours to complete! To minimize the generation
26+ time and preview only the changes you’ve made locally, edit the script
27+ ` $ROOTSYS/documentation/doxygen/makeinput.sh ` to limit the number of input files being scanned.
28+ Typically, you should keep only the folder(s) containing the documentation you are
29+ currently working on. To view the results of this local build, open the file
30+ ` {HOME}/rootdoc/html/index.html ` in your preferred web browser.
3131
3232### Compilation prerequisites on Ubuntu
33- - apt install doxygen make jupyter-nbconvert
34- - pip install scandir nbformat metakernel ipykernel
35- - Optional: apt install qhelpgenerator-qt5. In case of older Ubuntu versions, use qt4-dev-tools instead, and modify in the Doxyfile QHG_LOCATION to /usr/lib/x86_64-linux-gnu/qt4/bin/qhelpgenerator
33+ - ` apt install doxygen make jupyter-nbconvert `
34+ - ` pip install scandir nbformat metakernel ipykernel `
35+ - Optional: ` apt install qhelpgenerator-qt5 ` . In case of older Ubuntu versions, use ` qt4-dev-tools `
36+ instead, and modify in the ` Doxyfile ` ` QHG_LOCATION ` to
37+ ` /usr/lib/x86_64-linux-gnu/qt4/bin/qhelpgenerator `
3638
3739## General Guidelines
3840Classes and methods can be documented both in the .cxx and .h files. For the long descriptions
@@ -133,23 +135,23 @@ ROOT tutorials are also included in the ROOT documentation. The tutorials'
133135macros headers should look like:
134136
135137{% highlight C++ %}
136- \file
137- \ingroup tutorial_hist
138- \notebook
139- Getting Contours From TH2D.
140-
141- #### Image produced by ` .x ContourList.C `
142- The contours values are drawn next to each contour.
143- \macro_image
144-
145- #### Output produced by ` .x ContourList.C `
146- It shows that 6 contours and 12 graphs were found.
147- \macro_output
148-
149- #### ` ContourList.C `
150- \macro_code
151-
152- \authors Josh de Bever, Olivier Couet
138+ /// \file
139+ /// \ingroup tutorial_hist
140+ /// \notebook
141+ /// Getting Contours From TH2D.
142+ ///
143+ /// #### Image produced by ` .x ContourList.C `
144+ /// The contours' values are drawn next to each contour.
145+ /// \macro_image
146+ ///
147+ /// #### Output produced by ` .x ContourList.C `
148+ /// It shows that 6 contours and 12 graphs were found.
149+ /// \macro_output
150+ ///
151+ /// #### ` ContourList.C `
152+ /// \macro_code
153+ ///
154+ /// \authors Josh de Bever, Olivier Couet
153155{% endhighlight %}
154156
155157This example shows that four new directives have been implemented:
0 commit comments