Skip to content

Merge pull request #255 from Modalities/megatron_dataset_removal #124

Merge pull request #255 from Modalities/megatron_dataset_removal

Merge pull request #255 from Modalities/megatron_dataset_removal #124

name: "Build Sphinx Documentation"
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install myst-parser
pip install .
pip install sphinx-rtd-theme sphinx-autodoc-typehints sphinx-click sphinx-automodapi texext
- name: "Parse into HTML"
run: |
sphinx-apidoc -o docs/source/api src/modalities
sphinx-build -M html docs/source/ docs/build/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true