Skip to content

Interlinks: double path concatenation #353

@dalmijn

Description

@dalmijn

Hello!

This issue is in regards to running quartodoc interlinks from the repository directory.
Take e.g. the following structure:

.
├── docs
│   ├── setup_guide
│   ├── index.qmd
│   └── _quarto.yml
├── src
├── test
└── tmp

If I where to run quartodoc interlinks from the repo (.) directory:

quartodoc interlinks docs/_quarto.yml

It would result in:

.
├── docs
    ├── docs
    │   └── _inv
    │       └── < inventory files > 
    ├── setup_guide
    ├── index.qmd
    └── _quarto.yml
├── src
├── test
└── tmp

Instead of having the '_inv' directory directly under ./docs.

In these lines:
https://github.com/machow/quartodoc/blob/main/quartodoc/__main__.py#L243-L265
the p_root directory is concatenated twice.
I think this causes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions