Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interlinks: double path concatenation #353

Open
dalmijn opened this issue Jun 18, 2024 · 0 comments
Open

Interlinks: double path concatenation #353

dalmijn opened this issue Jun 18, 2024 · 0 comments
Labels
api:interlinks time:short Takes an hour or less to resolve type:bug Something isn't working

Comments

@dalmijn
Copy link

dalmijn commented Jun 18, 2024

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.

@machow machow added type:bug Something isn't working api:interlinks time:short Takes an hour or less to resolve labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:interlinks time:short Takes an hour or less to resolve type:bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants