Git Product home page Git Product logo

documentation-ghp-action's Introduction

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/[email protected]
        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.

documentation-ghp-action's People

Contributors

andrea-acampora avatar renovate[bot] avatar semantic-release-bot avatar

Watchers

 avatar  avatar  avatar

documentation-ghp-action's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
  • ubuntu 22.04
action.yml
  • Legion2/swagger-ui-action v1
  • peaceiris/actions-gh-pages v3
  • peaceiris/actions-gh-pages v3
  • peaceiris/actions-gh-pages v3
npm
package.json
  • semantic-release-preconfigured-conventional-commits 1.1.85
  • node 20.11

  • Check this box to trigger a request for Renovate to run again on this repository

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.