This repo contains the files used for the automatic generation of Omeka's documentation.
The full documentation also contains manually written documentation.
The doc.sh script runs through all of the build process, which works roughly like this:
Documentation for classes is built by running through all the appropriate directories and using a super hacked and modified Sphpdox generator.
Documentation for global functions is also built with via the
OmekaGlobals.phpfile, which relies on same Sphpdox generator and some related classes in that file. However, in order to be able to generate documentation without clobbering the hand-written documentation, it generates a file structured to include separate files for the summary, examples, see also, and usage sections. The hand-written sections appear in subdirectories of the globals documentation directory, with the same name as the generated function's documentation.The packages documentation directories are built by a two-step process. First, the above two steps generate an array, stored in the file
serializedPackagesMap.txt, which maps the packages to the correct files.OmekaPackages.phpthen loads that array and writes the packages documentation.To completely regenerate the documentation, all of the directories should be emptied except for any
index.rstfiles, and except for the manually written documentation sections for global functions.
Unfortunately, there are still some hard-coded references to paths scattered throughout the files.