diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 383d25a..803658f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,20 +31,20 @@ jobs: run: pip install opencv-python-headless ipywidgets - name: Build docs - run: python -m sphinx -b dirhtml docs docs/_build - - - name: Sanitize ref name for docs version - run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV - - - name: Move to versioned directory - run: mv build/html .github/pages/$DOCS_VERSION + run: python -m sphinx -b dirhtml docs docs/_build/html # - name: Upload artifact # uses: actions/upload-artifact@v4 # with: - # path: docs/_build + # path: docs/_build/html # name: juypter_cache + - name: Sanitize ref name for docs version + run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV + + - name: Move to versioned directory + run: mv docs/_build/html .github/pages/$DOCS_VERSION + - name: Publish Docs to gh-pages if: github.ref_type == 'tag' || github.ref_name == 'main' # We pin to the SHA, not the tag, for security reasons. diff --git a/docs/tutorials/01_overview.ipynb b/docs/tutorials/01_overview.ipynb.preview similarity index 100% rename from docs/tutorials/01_overview.ipynb rename to docs/tutorials/01_overview.ipynb.preview