
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
AZDocGen is a Python-based tool to automatically generate detailed documentation for Azure Pipelines YAML files. It extracts key details, such as triggers, variables, resources, stages, jobs, steps, and conditions, and outputs structured Markdown documentation, including Mermaid diagrams for a visual summary of the pipeline.
You can install AZDocGen via pip
or poetry
.
pip install azdocgen
poetry add azdocgen
You can use AZDocGen directly from the command line to generate documentation for an Azure Pipelines YAML file.
azdocgen <pipeline_yaml_path> <output_md_path>
azdocgen azure-pipelines.yml docs/azure-pipelines-docs.md
This will parse the azure-pipelines.yml
file and generate the documentation in the docs/azure-pipelines-docs.md
file.
You can also use AZDocGen as a Python library to generate documentation programmatically.
import yaml
from azdocgen.generate_doc import generate_markdown
from azdocgen.triggers import parse_triggers
from azdocgen.variables import parse_variables
from azdocgen.resources import parse_resources
from azdocgen.stages import parse_stages
# Load the Azure Pipelines YAML file
pipeline_file = "azure-pipelines.yml"
output_file = "docs/azure-pipelines-docs.md"
with open(pipeline_file, "r") as f:
yaml_content = yaml.safe_load(f)
# Parse the sections
triggers = parse_triggers(yaml_content)
variables = parse_variables(yaml_content)
resources = parse_resources(yaml_content)
stages = parse_stages(yaml_content)
# Generate Markdown documentation
generate_markdown(
triggers=triggers,
variables=variables,
stages=stages,
resources=resources,
output_file=output_file,
pipeline_file=pipeline_file,
)
print(f"Documentation written to {output_file}")
Please see User Guide.
Contributions are welcome! Please follow these steps:
git checkout -b feature/my-feature
.git commit -m 'Add my feature'
.git push origin feature/my-feature
.AZDocGen is licensed under the MIT License. See LICENSE
for more details.
FAQs
A simple Azure Pipeline documentation generator
We found that azdocgen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.