$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
/tmp/B.47ejeh9m/BUILD/libical-4.0.3-build/libical-4.0.3/docs/HOWTO-update-apidocs.md
1 # HOWTO: Update the API documentation
2 
3 How to use doxygen to update the libical API documentation at <http://libical.github.io/libical>.
4 
5 ## Preparations
6 
7 Make sure you have Doxygen installed; else this will fail.
8 
9 Then checkout the desired branch (master is for unstable).
10 
11 ## Build the documentation
12 
13 ```shell
14  # inside the libical top-level
15  mkdir build-apidox
16  cd build-apidox
17  cmake -G Ninja .. && ninja docs
18 ```
19 
20 Look in doxygen.log for warnings and errors. and fix them.
21 
22 Load the ./apidocs/html/index.html into a web browser and review.
23 
24 ## Uploading the new documentation
25 
26 ```shell
27  git checkout gh-pages
28  cd ..; rm -rf v3/apidocs; cp -dpr build-apidox/apidocs/html v3/apidocs
29  git add v3/apidocs #make sure to include any newly generated files
30  OR
31  cd ..; rm -rf v4/apidocs; cp -dpr build-apidox/apidocs/html v4/apidocs
32  git add v4/apidocs #make sure to include any newly generated files
33  git commit -m "update apidox" --no-verify . && git push
34  rm -rf build-apidox
35 ```
36 
37 View the updates on <http://libical.github.io/libical/index.html>
38 (might take a couple minutes to update).
39 
40 ## Finally
41 
42 Add the generated build-apidox/libical.tag file to the github release