Skip to content
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

9 Commits
 
 
 
 
 
 

Repository files navigation

gomarkdoc

A GitHub Action that generates markdown documentation from Go source code.

Inputs

output-file

Required The output file to write the documentation to. Default: DOC.md

Usage

The action is designed to run as part of your GitHub Actions workflow. An example workflow that generates documentation and commits it to the repository is as follows:

yamlCopy code

name: Generate documentation

on:
  push:
    branches:
      - main

permissions:
  contents: write

jobs:
  generate-docs:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Generate documentation
        uses: Sett17/gomarkdoc-action@latest
        with:
          output-file: DOC.md

      - name: Commit documentation
        uses: EndBug/add-and-commit@v9
        with:
          commit: --signoff
          default_author: github_actor
          message: 'Update docs'

About

A GitHub Action that generates markdown documentation from Go source code.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors