Skip to content

"living-doc-generator: A GitHub Action designed to data-mine GitHub repositories for issues containing project documentation (e.g., tagged with feature-related labels). This action automatically generates fresh documentation in markdown format, providing detailed feature overview pages and in-depth feature descriptions.

License

Notifications You must be signed in to change notification settings

AbsaOSS/living-doc-generator-mdoc

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Living Documentation Generator

Motivation

This action addresses the need for continuously updated documentation accessible to all team members and stakeholders. It achieves this by transforming raw data into an MDoc viewer-capable formatted output. The raw data can be obtained from the action liv-doc-collector-gh or a similar source.


Usage

Prerequisites

Before we begin, ensure you have the following prerequisites:

  • Python version 3.12 or higher.

Adding the Action to Your Workflow

See the default action step definition:

- name: Generate Living Documentation MDOC
  id: living_doc-generator-mdoc
  uses: AbsaOSS/[email protected]
  with:
    source: "path/to/raw_input.json"        # Path to the raw input file containing the data to be processed.

    report-page: true                       # Optional: enable report page generation.
    verbose-logging: true                   # Optional: project verbose (debug) logging feature de/activation

Action Configuration

This section outlines the essential parameters that a user can define.

Input Name Description Required Default Usage
source Path to the source file containing the data to be processed. Yes N/A Specify the path to the raw input file.
release Enables or disables release filtering. No false Set to true to activate.
structured-output Enables or disables structured output generation. No false Set to true to activate.
report-page Enables or disables the generation of report pages. No false Set to true to activate.
verbose-logging Enables or disables verbose (debug) logging. No false Set to true to activate.

Action Outputs

The Living Documentation Generator MDOC action provides a main output path allowing users to locate and access the generated documentation easily. This output can be utilized in various ways within your CI/CD pipeline to ensure the documentation is effectively distributed and accessible.

  • output-path
    • Description: The root output path to the directory where all generated living documentation files are stored.
    • Usage:
     - name: Generate Living Documentation
       id: generate_mdoc
       ... rest of the action definition ...
       
     - name: Output Documentation Path
       run: echo "Generated documentation path: ${{ steps.generate_mdoc.outputs.output-path }}"            

Features

Report Page

The report page summarizes the errors found during the generation of living documents.

  • Activation: Set the report-page input to true to activate this feature.
  • Non-Activated Behavior: By default, when the feature is inactive, the errors are not listed in the output but are present in the log output.
  • Activated Example: The report page is generated only when some errors are found during the generation of living documents.
    • report-page: true activates the generation of report page.
      <h3>Report page</h3>
      
      This page summarizes the errors found during the generation of living documents.
      
      <h4>Living Documentation Regime</h4>
      
      | Error Type     | Issue                                     | Message                                  |
      | -------------- | ----------------------------------------- | ---------------------------------------- |
      | LabelError     | organization/example-project#19           | More than one Documentation label found. |

Developer Guide

See this Developer Guide for more technical development-related information.


Contribution Guidelines

We welcome contributions to the Living Documentation Generator, whether you're fixing bugs, improving documentation, or proposing new features.

How to Contribute

Before contributing, please review our contribution guidelines for more detailed information.

License Information

This project is licensed under the Apache License 2.0. This liberal license allows you great freedom in using, modifying, and distributing this software while also providing an express grant of patent rights from contributors to users.

For more details, see the LICENSE file in the repository.

Contact or Support Information

If you need help with using or contributing to Living Documentation Generator Action, or if you have any questions or feedback, don't hesitate to reach out:

About

"living-doc-generator: A GitHub Action designed to data-mine GitHub repositories for issues containing project documentation (e.g., tagged with feature-related labels). This action automatically generates fresh documentation in markdown format, providing detailed feature overview pages and in-depth feature descriptions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages