diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 6f1b966..8b01d9a 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -10,25 +10,25 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout code uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.x # Specify the Python version you're using + python-version: 3.x # Change to your Python version if necessary - name: Install dependencies run: | + python -m pip install --upgrade pip pip install -r requirements.txt - pip install sphinx sphinx-rtd-theme - - name: Build documentation + - name: Build Sphinx documentation run: | - mkdir -p docs - cd docs - sphinx-build -M html ../ ./ -W --keep-going - + sphinx-quickstart --quiet --sep --no-makefile --dot _ --suffix .rst --master index --ext-autodoc --ext-viewcode --ext-doctest docs + mv README.md docs + sphinx-build -b html docs docs/_build + working-directory: ${{ github.workspace }} - name: Deploy documentation uses: peaceiris/actions-gh-pages@v3 with: