Can directory level _metadata.yml provide separate repo-actions #11562
Answered
by
cderv
mark-andrews
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I don't think there is a way. It would be exactly the same kind of fix that for #4668 and 3870d39 We allow to opt out at document level using quarto-cli/src/project/types/website/website-navigation.ts Lines 642 to 660 in 37bc223 I'll move this to an enhancement. Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
In a directory level
_metadata.yml, we can have a newrepo-urlkey that overrides thewebsite/repo-urlthat is set in the top level_quarto.yml. See #4668 and 3870d39 .However, it seems like I can not do the same thing with
repo-actions. In other words, I can not set arepo-actionsvalue in a directory level_metadata.ymlthat overrides the value set inwebsite/repo-actionsin_quarto.yml. For example, if my_quarto.ymlhasif I have the following in a directory
_metadata.ymlthen the URL for the GitHub repo on pages in that sub-directory will change from
barfootobazfoo, but the actions will not have from view source and edit source to just view source.Ultimately what I would like is to have pages in some subdirectories to have the button to view the source code on GitHub, and pages in some other subdirectories to not have any buttons to link to the source code on GitHub, which I am trying to do by setting
repo-actions: nonein_metadata.ymlin some directories.Is there a way to to have directory level different values of
repo-actions, or is there some other way of turning off these repo actions in all pages in some subdirectories?Beta Was this translation helpful? Give feedback.
All reactions