Skip to content

Do not change working directory to _quarto.yml directoryΒ #292

@machow

Description

@machow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions