diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index ea24f417..00000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Docs - -on: - push: - branches: - - main - tags: - - v[0-9]+.[0-9]+.[0-9]+ - pull_request: - -permissions: - contents: write - -concurrency: - group: ${{ github.workflow}}-${{ github.head_ref }} - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - run: python -m pip install pip --upgrade - - run: python -m pip install -e ".[test,docs]" - - run: | - cd docs - make html - - uses: actions/upload-artifact@v3 - with: - name: docs-html - path: | - docs/_build/html - retention-days: 5 - - deploy: - if: ${{ github.event_name != 'pull_request' }} - needs: [build] - environment: - name: github-pages - runs-on: ubuntu-latest - steps: - - name: Download doc build - uses: actions/download-artifact@v3 - with: - name: docs-html - path: ./docs/_build/html - - name: Upload to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/_build/html - exclude_assets: '.buildinfo,_static/jquery-*.js,_static/underscore-*.js' - destination_dir: ./latest - keep_files: false - full_commit_message: Deploy latest to GitHub Pages diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..e2650820 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,17 @@ +version: 2 + +build: + os: "ubuntu-22.04" + tools: + python: "3.11" + +python: + system_packages: false + install: + - method: pip + path: . + extra_requirements: + - docs + +# Don't build any extra formats +formats: [] diff --git a/docs/conf.py b/docs/conf.py index cb7e341d..c9cd50d2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,7 +60,7 @@ "navbar_links": "absolute", "show_prev_next": False, "logo": {"link": "https://matplotlib.org/stable/", - "image_light": "images/logo2.svg", + "image_light": "images/logo_light.svg", "image_dark": "images/logo_dark.svg"}, "collapse_navigation": False, } diff --git a/docs/sample_summaries.py b/docs/sample_summaries.py index 0c4f9d8d..c1114fb0 100644 --- a/docs/sample_summaries.py +++ b/docs/sample_summaries.py @@ -36,7 +36,7 @@ def run_pytest(test_name): lambda x: x.name[:-1] in test_name, pathlib.Path(tmp_dir).glob("*0") )) / "results" - os.replace(src, dest) + shutil.copytree(src, dest) return dest diff --git a/setup.cfg b/setup.cfg index 3a33a977..7f9a3e3c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,6 +43,7 @@ docs = sphinx mpl_sphinx_theme>=3.6.0.dev0 sphinx_design + matplotlib==3.6 [tool:pytest] testpaths = tests