Skip to content

fix(docs): resolve package from built checkout - #3653

Merged
mkoura merged 1 commit into
masterfrom
fix_doc_build_import_path
Aug 21, 2026
Merged

fix(docs): resolve package from built checkout#3653
mkoura merged 1 commit into
masterfrom
fix_doc_build_import_path

Conversation

@mkoura

@mkoura mkoura commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Worktrees share one .venv via symlink, so pip install -e . from any worktree points the editable finder at that worktree for all of them. Sphinx runs with cwd=src_docs, so the old sys.path entry (src_docs) did not shadow the finder and autodoc imported the wrong checkout, reporting modules that exist here as missing.

Prepend the repo root instead, before cardano_node_tests is imported, since the package __path__ bound there decides submodule lookup.

Also drop bold around inline code in leios_tests.md - m2r2 renders the nesting as rst that docutils cannot parse.

Worktrees share one .venv via symlink, so `pip install -e .` from any
worktree points the editable finder at that worktree for all of them.
Sphinx runs with cwd=src_docs, so the old `sys.path` entry (src_docs)
did not shadow the finder and autodoc imported the wrong checkout,
reporting modules that exist here as missing.

Prepend the repo root instead, before `cardano_node_tests` is imported,
since the package `__path__` bound there decides submodule lookup.

Also drop bold around inline code in leios_tests.md - m2r2 renders the
nesting as rst that docutils cannot parse.
@mkoura
mkoura merged commit 756b83a into master Aug 21, 2026
3 checks passed
@mkoura
mkoura deleted the fix_doc_build_import_path branch August 21, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant