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
RECURSIVE
toYES
- Set
EXCLUDE
andEXCLUDE_PATTERNS
to exclude directories you don't want documented. Typically library code and plugins come here. - Set
PROJECT_NAME
to the name of your project
- Set
- Optionally add
html
andlatex
to.gitignore
file - Document your code according to Doxygen guidlines
- Optionally run
doxygen
to generate documentation to see output documentation locally- By default web documentation and pdf documentation files are generated in
html
andlatex
directories respectively. - View web documentation at
html/index.html
- Compile pdf documentation by running
make
inlatex
directory - Class list can be seen here
- By default web documentation and pdf documentation files are generated in
- Copy the action file
main.yml
to.github/workflows/main.yml
- Commit and Push to github
- Github action should automatically start running
- Confirm that github is set to deploy
gh-pages
branch in settings page
- Ensure that
publish_dir
inmain.yml
is set correctly