This folder contains the source codes for the ParaMonte Doxygen documentations.
To regenerate the ParaMonte documentation from source,
-
If you have not done so already, follow the instructions given in the parent folder README.md.
-
Install Doxygen on your system. Alternatively, install this version of Doxygen that is specifically customized by the ParaMonte developers for the documentation needs of the ParaMonte library.
-
Navigate to the folder where this README.md file is located.
-
Rebuild the documentations for the current version of the ParaMonte source in the library's root directory by calling the following script on the Bash command-line,
./build.sh --lang TARGET_LANG --exam all --bench all
where
TARGET_LANG
must be replaced by target programming language:c
,cpp
,fortran
,matlab
,python
.- If the library examples and benchmarks have been already built, you can drop the flags
--exam all --bench all
. - Alternative, if you intend to generate only the documentation without the additional examples, benchmarks, and images, try
This will avoid building the library entirely and will only build the library's documentation.
./build.sh --lang TARGET_LANG --dryrun
- If the library examples and benchmarks have been already built, you can drop the flags
-
The Doxygen documenter is instructed to redirect all documentation build errors and warnings to a file named
READ_THESE_BUILD_WARNINGS.txt
in the same folder as thisREADME.md
file is located. Inspect the message warning log of Doxygen in the output fileREAD_THESE_BUILD_WARNINGS.txt
for any potential documentation errors. -
Inspect the generated documentation by opening the HTML file located at
../paramonte/TARGET_LANG/MAJOR_VERSION/index.html
where you must replaceTARGET_LANG
with the language name for which the library was built and replaceMAJOR_VERSION
with the language source file major version in the ParaMonte repository. -
Once the documentation is built for all target programming languages, rerun the build script once more for all languages. Before rerunning the documentation builds, ensure the generic documentations are up to date. This second documentation rebuild is required for proper linking of different language documentations. To speed up the second runs, you can specify the optional
--dryrun
flag as,./build.sh --lang TARGET_LANG --dryrun
-
If everything looks good, then navigate to the folder ../paramonte and stage, commit, and push the new documentations to the
ParaMonte
documentation repository on GitHub.git add --all git commit -m"latest documentation build" git push --all
NOTE
To generate new header, footer, or css stylesheet, follow the Doxygen instructions here. The regeneration command is the following:
doxygen -w html new_header.html new_footer.html new_stylesheet.css config.txt
NOTE
The ParaMonte documentation builds have only been tested on Linux system.