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.
Before we begin, ensure you have the following prerequisites:
- Python version 3.12 or higher.
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
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. |
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 }}"
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. |
See this Developer Guide for more technical development-related information.
We welcome contributions to the Living Documentation Generator, whether you're fixing bugs, improving documentation, or proposing new features.
Before contributing, please review our contribution guidelines for more detailed 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.
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:
- Issue Tracker: For technical issues or feature requests, use the GitHub Issues page.
- Discussion Forum: For general questions and discussions, join our GitHub Discussions forum.