$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
HOWTO: Update the API documentation

How to use doxygen to update the libical API documentation at http://libical.github.io/libical.

Preparations

Make sure you have Doxygen installed; else this will fail.

Then checkout the desired branch (master is for unstable).

Build the documentation

1 # inside the libical top-level
2 mkdir build-apidox
3 cd build-apidox
4 cmake -G Ninja .. && ninja docs

Look in doxygen.log for warnings and errors. and fix them.

Load the ./apidocs/html/index.html into a web browser and review.

Uploading the new documentation

1 git checkout gh-pages
2 cd ..; rm -rf v3/apidocs; cp -dpr build-apidox/apidocs/html v3/apidocs
3 git add v3/apidocs #make sure to include any newly generated files
4  OR
5 cd ..; rm -rf v4/apidocs; cp -dpr build-apidox/apidocs/html v4/apidocs
6 git add v4/apidocs #make sure to include any newly generated files
7 git commit -m "update apidox" --no-verify . && git push
8 rm -rf build-apidox

View the updates on http://libical.github.io/libical/index.html (might take a couple minutes to update).

Finally

Add the generated build-apidox/libical.tag file to the github release