Skip to content

Adding documentation for power method #9

Adding documentation for power method

Adding documentation for power method #9

Workflow file for this run

name: docs
on:
push:
branches:
- main
- final_project
pull_request:
branches:
- main
- final_project
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.10.16
- name: Set up Python environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
source venv/bin/activate
python -m pip install .
- name: Generate documentation
run: |
source venv/bin/activate
cd docs
make html
- name: Upload documentation
if: success()
uses: actions/upload-artifact@v4
with:
name: documentation
path: docs/_build/html/
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
allow_empty_commit: true