Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/incremental.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ def _mounted_watch_dirs(
base_arguments.append(f"-A=github_user={github_user}")
base_arguments.append(f"-A=github_repo={github_repo}")
base_arguments.append("-A=github_version=main")
base_arguments.append(f"-A=doc_path={package_dir / source_directory}")
# doc_path must be repo-relative so the edit URL does not contain the
# absolute runner filesystem path (e.g. /home/runner/work/…/docs).
relative_doc_path = Path(os.environ.get("PACKAGE_DIR", "")) / source_directory
base_arguments.append(f"-A=doc_path={relative_doc_path}")

if os.getenv("KNOWN_GOOD_JSON"):
base_arguments.append(f"--define=KNOWN_GOOD_JSON={get_env('KNOWN_GOOD_JSON')}")
Expand Down
Loading