Skip to content

Fix examples path in build_docs PR workflow #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down