This Dockerfile has been created to facilitate the creation of ITK Doxygen documentation in a reproducible way.
The documentation is built nightly on the current/latest ITK commit, and deployed to GitHub pages at: https://insightsoftwareconsortium.github.io/ITKDoxygen/ and to ReadTheDocs at: https://docs.itk.org/projects/doxygen/
To create the documentation locally, run the following commands:
docker build . -f Dockerfile -t itk-doxygenThe TAG environment variable is used to specify a filename for the tarballs
to be copied from the Docker container to your local working directory (see
step 5).
Useful for naming multiple versions of the documentation.
Here we have set it to alpha, but you may change it as needed.
export TAG=alphadocker run --env TAG --name itk-dox itk-doxygenIf you want to build documentation from a local ITK repository,
remove the readonly parameter from the mount command and
specify an absolute path to the aforementioned repository.
docker run \
--env TAG \
--mount type=bind,source=/path/to/your/clone,destination=/work/ITK,readonly \
--name itk-dox itk-doxygenNote: Both these commands may take a while to complete
The following commands will copy the tarballs from the Docker container to your local working directory.
docker cp itk-dox:/ITKDoxygen.tar.gz ITKDoxygen${TAG:+-${TAG}}.tar.gz
docker cp itk-dox:/ITKDoxygenXML.tar.gz ITKDoxygenXML${TAG:+-${TAG}}.tar.gz
# Remove the Docker container after copying the tarballs
docker rm itk-doxUntar these tarballs to extract and verify the Doxygen documentation.
The ITKDoxygen tarball contains the HTML documentation,
while the ITKDoxygenXML tarball contains the XML documentation.
tar -xzf ITKDoxygen${TAG:+-${TAG}}.tar.gz
tar -xzf ITKDoxygenXML${TAG:+-${TAG}}.tar.gzYou may now view the Doxygen documentation by opening the html/index.html file.