name: Update Documentation

on:
  push:
    branches:
      - develop

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛎️
        uses: actions/checkout@v2.3.1
        
      - name: Set up Python
        uses: actions/setup-python@v2
        
      - name: Install dependencies 🔧
        run: |
          python -m pip install --upgrade pip
          pip install --quiet pdoc3 tensorflow torch jax jaxlib plotly nbformat ipython notebook
          pip install .
        
      - name: Build API with pdoc3
        run: pdoc --html --output-dir docs --force phi
        
      - name: Build static HTML for Jupyter Notebooks
        run: jupyter nbconvert --to html --execute --allow-errors docs/*.ipynb

      - name: Deploy 🚀
        uses: JamesIves/github-pages-deploy-action@4.1.4  # See https://github.com/marketplace/actions/deploy-to-github-pages
        with:
          branch: gh-pages # The branch the action should deploy to.
          folder: docs # The folder the action should deploy.

name: Update Documentation

on:
  push:
    branches:
      - develop

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛎️
        uses: actions/checkout@v2.3.1
        
      - name: Set up Python
        uses: actions/setup-python@v2
        
      - name: Install dependencies 🔧
        run: |
          python -m pip install --upgrade pip
          pip install --quiet pdoc3 tensorflow torch jax jaxlib plotly nbformat ipython notebook ipywidgets
          pip install .
          pip list
        
      - name: Build API with pdoc3
        run: pdoc --html --output-dir docs --force phi
        
      - name: Build static HTML for Jupyter Notebooks
        run: jupyter nbconvert --to html --execute --allow-errors docs/*.ipynb

      - name: Deploy 🚀
        uses: JamesIves/github-pages-deploy-action@4.1.4  # See https://github.com/marketplace/actions/deploy-to-github-pages
        with:
          branch: gh-pages # The branch the action should deploy to.
          folder: docs # The folder the action should deploy.

Install ipywidgets before jupyter notebook conversion
[docs] Install ipywidgets before jupyter notebook conversion
