Skip to content

Generate MDX Documentation #1

Generate MDX Documentation

Generate MDX Documentation #1

Workflow file for this run

name: Generate MDX Documentation
on:
workflow_dispatch:
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install pydantic
- name: Generate MDX files from Pydantic models
run: |
python .github/scripts/generate_mdx_from_pydantic.py
- name: Commit generated MDX files
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docs/*.mdx
git commit -m "chore: Generate MDX files from Pydantic models"
git push origin main