Giter VIP home page Giter VIP logo

ghaction-doxygen-ghpages's Introduction

GitHub Action for Doxygen and GitHub Pages {#mainpage}

GitHub Action for generating and deploying Doxygen documentation to a GitHub pages branch. The action uses a docker container to run doxygen; the Dockerfile is also included in the repository.

As a test, the action is used to create the documentation of the repository itself.

Basic Usage

To deploy docs on every push to the main branch, create a new file in the .github/workflows/ directory with the workflow name, for example, doxygen.yml:

on:
  push:
    branches:
      - arch
permissions:
  contents: write

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Action Doxygen and GitHub Pages
        id: ghaction
        uses: AgarwalSaurav/ghaction-doxygen-ghpages@release/v2
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          working-directory: .
          doxyfile-path: doc/Doxyfile
          html-output-folder: doc/html
          branch: gh-pages

Action Inputs

Input Description Default
github_token The GitHub token used to push to the gh-pages branch.
working-directory The working directory from where the doxygen command will be run. .
doxyfile-path The path to the Doxyfile relative to the working directory. ./Doxyfile
html-output-folder The directory where the HTML documentation will be generated. doc/html
branch The branch where the documentation will be deployed. gh-pages
target-folder The directory in the branch where the documentation will be deployed. /

Docker image for running Doxygen

The docker image is based on the archlinux image and contains doxygen and graphviz. Additionally, it contains latex for possibly generating PDFs in the future. It is located at ghcr.io.

See the docker directory and its documentation for more details.

License

This work is under an MIT license.

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

Based on:

ghaction-doxygen-ghpages's People

Contributors

agarwalsaurav avatar

Watchers

 avatar

ghaction-doxygen-ghpages's Issues

Wrong parameters for working directory and doxyfile

When attempting to deploy, the action incorrectly parses /workspace as the working directory and . as the Doxyfile. This appears to be happening due to /workspace being added to the docker run command (see log excerpt below) and thus being parsed as a parameter. A similar thing might be happening in this repository, as there is a double space at that location in the logs (see line 11 in Action Doxygen and GitHub Pages, right after ghcr.io/agarwalsaurav/doxygen-arch:latest), which indicate the same string is incorrectly added, but empty in this case

Copied from https://github.com/VEGO-Engine/Engine/actions/runs/8717958280/job/23914188673:

Run docker run --rm -v /home/runner/work/Engine/Engine/.:/workspace ghcr.io/agarwalsaurav/doxygen-arch:latest /workspace "." "Doxyfile" "docs/html"
...
Doxygen will be executed in the following directory: /workspace
Doxyfile path: .
File . could not be found!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.