diff --git a/.github/workflows/full-development.yml b/.github/workflows/full-development.yml index 9ffb0ba..fd0fde7 100644 --- a/.github/workflows/full-development.yml +++ b/.github/workflows/full-development.yml @@ -11,7 +11,7 @@ name: (Development) - Full run-name: "#${{ github.run_number }}: ${{ github.event.head_commit.message }}" jobs: full: - uses: dmg0345/scrapy-tor-playwright-demo/.github/workflows/reusable-full.yml@develop + uses: dmg0345/scrapy-tor-playwright-demo/.github/workflows/reusable-full.yml@master secrets: netlify_pat: ${{ secrets.NETLIFY_PAT }} netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/.github/workflows/full-production.yml b/.github/workflows/full-production.yml index b083760..6bed297 100644 --- a/.github/workflows/full-production.yml +++ b/.github/workflows/full-production.yml @@ -11,7 +11,7 @@ name: (Production) - Full run-name: "#${{ github.run_number }}: ${{ github.event.head_commit.message }}" jobs: full: - uses: dmg0345/scrapy-tor-playwright-demo/.github/workflows/reusable-full.yml@develop + uses: dmg0345/scrapy-tor-playwright-demo/.github/workflows/reusable-full.yml@master secrets: netlify_pat: ${{ secrets.NETLIFY_PAT }} netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/.github/workflows/full-staging.yml b/.github/workflows/full-staging.yml index 08deca4..aac6505 100644 --- a/.github/workflows/full-staging.yml +++ b/.github/workflows/full-staging.yml @@ -12,7 +12,7 @@ name: (Staging) - Full run-name: "#${{ github.run_number }}: ${{ github.event.pull_request.title }}" jobs: full: - uses: dmg0345/scrapy-tor-playwright-demo/.github/workflows/reusable-full.yml@develop + uses: dmg0345/scrapy-tor-playwright-demo/.github/workflows/reusable-full.yml@master secrets: netlify_pat: ${{ secrets.NETLIFY_PAT }} netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/doc/conf.py b/doc/conf.py index ce2094f..5fc0ba9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -26,14 +26,14 @@ def collect_folders(path: str) -> list[str]: for name in dirs: if name not in ["__pycache__", ".pytest_cache"]: final_dirs.append(os.path.normpath(os.path.realpath(os.path.join(root, name)))) - print(final_dirs[-1]) return final_dirs # If extensions (or modules to document with autodoc) are in another directory, add these directories to sys.path here. -sys.path.extend(collect_folders(r"../src")) -sys.path.extend(collect_folders(r"../tests")) +root = os.path.normpath(os.path.join(os.path.dirname(__file__), "..")) +sys.path.extend(collect_folders(os.path.join(root, "src"))) +sys.path.extend(collect_folders(os.path.join(root, "tests"))) ## Project information ################################################################################################# # Project name.