Generate MDX Documentation #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |