Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dikkadev/gomarkdoc-action

A GitHub Action that generates markdown documentation from Go source code.
https://github.com/dikkadev/gomarkdoc-action

docs github-actions go golang

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```yaml
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'
```