This project simplifies and automates the documentation process for your GitHub Actions workflows. With this utility, you can transform YAML workflow files into human-readable Markdown documentation, making it easy to understand the stages, jobs, and actions configured in your CI/CD pipeline.
Manually documenting GitHub Actions workflows is time-consuming and error-prone. With yml-generate-documentation, your documentation is generated directly from the YAML files themselves, ensuring it is always up-to-date and accurately reflects your workflow configuration.
For more details, read this article: From YAML to Markdown: Auto-document your GitHub Actions Workflows.
The utility reads your application's workflow YAML files, parses the structure (stages, jobs, actions, etc.), and generates a detailed Markdown file, ready to be used as your official documentation.
- Read the YAML file: The script loads your GitHub Actions workflow file.
- Parse key elements: It extracts stages, jobs, and actions, as well as comments and descriptions.
- Automatically generate Markdown: Produces a
.mdfile with clear, structured documentation.
path/to/your/workflow.yml: Path to the YAML workflow file you want to document.
# CI Workflow
## Jobs
### build
- Runs on: ubuntu-latest
- Steps:
- Checkout code
- Install dependencies
- Run tests
### deploy
- Runs on: ubuntu-latest
- Steps:
- Build application
- Deploy to productionYou can adapt the output templates to include project-specific information, such as badges, links, or extra job details.
Contributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements.