-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Currently when running quartodoc build ...
we change the working directory to be the one holding _quarto.yml
. This is to support specifying a custom quartodoc renderer inside your quarto project. (see PRQL/pyprql#272)
One downside of this approach is that a user might be able to import their package from root (due to it being in the working directory), but not import it when we change the working directory to be a docs/
subfolder.
Let's append the docs/
subfoldersys.path instead. This has 2 advantages:
- anything in a
docs/
subfolder will have least precedence when importing. - behaviors that lean on the working directory being wherever
quartodoc build ...
was run from are preserved.
eitsupi
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done