Skip to content

SmartOperatingBlock/documentation-ghp-action

Repository files navigation

Documentation Github Pages Action

Release License: MIT Version

A composite Github Action to generate code, OpenAPI and AsyncAPI documentation and to deploy it on Github Pages.

Setup

Choose the types of documentation you want to generate by putting true on this input parameters:

  • should-generate-code-documentation
  • should-generate-openapi-documentaion
  • should-generate-asyncapi-documentaion

For every selected type specify the command, input file and destination folder or use the default values:

  • code-documentation-generation-command default './gradlew dokkaHtml'
  • code-documentation-dst-folder default 'build/dokka/html'
  • code-documentation-site-folder default 'documentation/code-doc'
  • openapi-documentation-input-file default 'docs/openapi/openapi.yml'
  • openapi-documentation-dst-folder default 'documentation/openapi-doc/'
  • asyncapi-documentation-input-file default 'docs/asyncapi/asyncapi.yml'
  • asyncapi-documentation-dst-folder default ''documentation/asyncapi-doc/'

Finally, provide the GITHUB_TOKEN to allow the action to push on gh-pages branch:

  • github-token

Usage

An example of how to use the action with all types of documentations and inputs:

jobs:
  documentation:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - uses: SmartOperatingBlock/documentation-ghp-action@1.0.0
        with:
          should-generate-code-documentation: true
          code-documentation-generation-command: ./gradlew dokkaHtml
          code-documentation-dst-folder: './build/dokka/html'
          code-documentation-site-folder: 'documentation/code-doc'
          should-generate-openapi-documentation: true
          openapi-documentation-input-file: 'docs/openapi/openapi.yml'
          openapi-documentation-dst-folder: 'documentation/openapi-doc'
          should-generate-asyncapi-documentation: true
          asyncapi-documentation-input-file: 'docs/asyncapi/asyncapi.yml'
          asyncapi-documentation-dst-folder: 'documentation/asyncapi-doc'
          github-token: ${{ secrets.GITHUB_TOKEN }}

License

The action is released under the MIT License.

About

Github Action to generate code, OpenAPI and AsyncAPI documentation and to deploy it on Github Pages.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy