-
Notifications
You must be signed in to change notification settings - Fork 393
fix(book): add missing support for configurable link target and rel attributes in the book project configuration #13770
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
Conversation
…tes in the book project configuration Fixes quarto-dev#13769
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
cderv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a test for this already? Otherwise, as other improvement and bug, we need one for regression test. And this is also opportunity to add test for some older feature where we did not add test thoroughly back then.
If you need help adding one, tell me.
This also helps to understand what is trying to be solved or added.
If I understand correctly, the plan is that repo-link-target and repo-link-rel sets for the github links part on each page (https://quarto.org/docs/websites/website-navigation.html#github-links) are also used for the sidebar tools: https://quarto.org/docs/books/book-output.html#sidebar-tools
Did I get it right ?
Looks good otherwise ! Thank you for those improvements!
And we may also take the opportunity for a doc update on the book part about those config being used now
|
I'll add the regexes tests to look for added rel/target.
Yes, that's the case.
The documentation basically says to look for website navigation where the options are described thus umplying that it should have work on the tools buttons in the first place. |
|
Test added. |
cderv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you !


The update adds support for the
repo-link-targetandrepo-link-relattributes in the book project configuration.The logic is similar to what was done for website/repo-actions:
quarto-cli/src/project/types/website/website-navigation.ts
Lines 753 to 785 in 9311ca8
Fixes #13769