Skip to content

updated docs generation #65

updated docs generation

updated docs generation #65

Workflow file for this run

name: Docs
on:
push:
branches:
- main
- docs
permissions:
contents: write
jobs:
build:
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.10'
- name: Install Sphinx and dependencies
run: |
pip install -e ".[docs,tests,cluster,apis]"
- name: Install pandoc (external dependency)
run: |
sudo apt-get update && sudo apt-get install -y pandoc
- name: Build Documentation
run: |
sphinx-apidoc -o docs/source ../folktexts tests/
sphinx-build docs _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
publish_branch: gh-pages
force_orphan: true