Files
wehub-resource-sync e768098d0e
Flake8 Lint / flake8 (push) Waiting to run
Spell check CI / Spell_Check (push) Waiting to run
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:52 +08:00
..

Readme Workflow Generator

These tools is used to generate workflows from README.md and python notebook files in the examples folder.

1. Install dependencies

pip install -r ../../examples/requirements.txt
pip install -r ../../examples/dev_requirements.txt

2. Generate workflows

(Option 1) One Step Generation

At the root of the repository, run the following command:

python scripts/readme/readme.py

(Option 2) Step by Step Generation

At the root of the repository, run the following command:

# Generate workflow from README.md inside examples folder
python scripts/readme/readme_generator.py -g "examples/**/*.ipynb"

# Generate workflow from python notebook inside examples folder
python scripts/readme/workflow_generator.py -g "examples/flows/**/README.md"

Multiple inputs are supported.

3. Options to control generations of examples README.md

3.1 Notebook Workflow Generation

  • Each workflow contains metadata area, set .metadata.description area will display this message in the corresponding cell in README.md file.
  • When set .metadata.no_readme_generation to value true, the script will stop generating for this notebook.

3.2 README.md Workflow Generation

  • For README.md files, only bash cells will be collected and converted to workflow. No cells will produce no workflow.
  • Readme descriptions are simply collected from the first sentence in the README.md file just below the title. The script will collect words before the first . of the fist paragraph. Multi-line sentence is also supported
    • A supported description sentence: This is a sample workflow for testing.
    • A not supported description sentence: Please check www.microsoft.com for more details.