Automatically deploy your documentation of your project without any CI pipelines. This is achieved by using github actions along with github pages.
Doxygen with auto deployment has been setup in this repository. The documentation for this repository is available at https://satu0king.github.io/Github-Documentation-With-Doxygen/
Skip this if you already have doxygen configured
- Install
doxygen- macOS -
brew install doxygen - Ubuntu -
sudo apt-get install -y doxygen
- macOS -
- Create doxygen config file (Doxyfile). Run
doxygen -g - Configure
Doxyfile- Set
RECURSIVEtoYES - Set
EXCLUDEandEXCLUDE_PATTERNSto exclude directories you don't want documented. Typically library code and plugins come here. - Set
PROJECT_NAMEto the name of your project
- Set
- Optionally add
htmlandlatexto.gitignorefile - Document your code according to Doxygen guidlines
- Optionally run
doxygento generate documentation to see output documentation locally- By default web documentation and pdf documentation files are generated in
htmlandlatexdirectories respectively. - View web documentation at
html/index.html - Compile pdf documentation by running
makeinlatexdirectory - Class list can be seen here
- By default web documentation and pdf documentation files are generated in
- Copy the action file
main.ymlto.github/workflows/main.yml - Commit and Push to github
- Github action should automatically start running
- Confirm that github is set to deploy
gh-pagesbranch in settings page
- Ensure that
publish_dirinmain.ymlis set correctly