diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index e385f2527..0e8aca55b 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -13,14 +13,16 @@ jobs: steps: - name: Clone docs repo uses: actions/checkout@v3 - with: - path: docs - + - name: Clone main repo uses: actions/checkout@v3 with: path: napari repository: napari/napari + + - name: Copy examples to docs folder + run: | + cp -R napari/examples . - uses: actions/setup-python@v2 with: @@ -44,10 +46,10 @@ jobs: GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }} GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }} with: - run: make -C docs/ docs + run: make docs - name: Upload artifact uses: actions/upload-artifact@v2 with: name: docs - path: docs/docs/_build + path: docs/_build diff --git a/docs/conf.py b/docs/conf.py index e8e3454e3..47c885c4b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -191,7 +191,7 @@ def reset_napari_theme(gallery_conf, fname): sphinx_gallery_conf = { - 'examples_dirs': '../../napari/examples', # path to your example scripts + 'examples_dirs': '../examples', # path to your example scripts 'gallery_dirs': 'gallery', # path to where to save gallery generated output 'filename_pattern': '/*.py', 'ignore_pattern': 'README.rst|/*_.py',