Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GitHub Action for deploying Doxygen documentation to a GitHub pages branch

License

NotificationsYou must be signed in to change notification settings

DenverCoder1/doxygen-github-pages-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Action for making and deploying Doxygen documentation to a GitHub pages branch

Basic Usage

To deploy docs on every push to themain branch, create a new file in the.github/workflows/ directory calleddoxygen-gh-pages.yml with the following contents:

name:Doxygen GitHub Pages Deploy Actionon:push:branches:      -mainjobs:deploy:runs-on:ubuntu-latestpermissions:contents:writesteps:      -uses:DenverCoder1/doxygen-github-pages-action@v2.0.0with:github_token:${{ secrets.GITHUB_TOKEN }}

Options

  • github_token (required): GitHub token for pushing to repo. See thedocs for more info.
  • branch (optional): Branch to deploy to. Defaults togh-pages.
  • folder (optional): Folder where the docs are built. Defaults todocs/html.
  • config_file (optional): Path of the Doxygen configuration file. Defaults toDoxyfile.
  • target_folder (optional): Directory within the deployment branch to push to. Defaults to empty (root).
  • doxygen_version (optional): Version of Doxygen to install. Defaults to1.9.6.NOTE - only works with 1.9.3 and higher versions

Advanced Usage

Here is an example of a.github/workflows/doxygen-gh-pages.yml file with more advanced configuration:

name:Doxygen GitHub Pages Deploy Actionon:push:branches:      -mainworkflow_dispatch:jobs:deploy:runs-on:ubuntu-latestpermissions:contents:writesteps:      -uses:DenverCoder1/doxygen-github-pages-action@v2.0.0with:github_token:${{ secrets.GITHUB_TOKEN }}branch:gh-pagesfolder:docs/htmlconfig_file:Doxyfiledoxygen_version:1.9.6

About this Action

This action is a composite action containing the following steps:

1. Checkout repository

Theactions/checkout step is used to checkout the repository with any submodules.

2. Install Doxygen

Doxygen and Graphviz are installed by running the following command:

sudo apt-get install doxygen graphviz -y

3. Generate Doxygen Documentation

Doxygen documentation is generated by running the following command.

Set theconfig_file input option to changeDoxyfile to a different filename.

doxygen Doxyfile

4. Create .nojekyll

Creating a .nojekyll file ensures pages with underscores work on GitHub Pages.

Set thefolder input option to changedocs/html to a different folder.

touch docs/html/.nojekyll

5. Deploy to GitHub Pages

TheJamesIves/github-pages-deploy-action action is used to deploy the documentation to GitHub Pages.

Thefolder option determines which folder to deploy. By default, it isdocs/html.

Thebranch option determines which branch to deploy to. By default, it isgh-pages.

Thetarget_folder option determines which directory in the deployment branch to push to. By default, the root of the branch is overwritten.

License

This work is under anMIT license

Support

If you like this project, give it a ⭐ and share it with friends!

About

GitHub Action for deploying Doxygen documentation to a GitHub pages branch

Topics

Resources

License

Stars

Watchers

Forks

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp