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
-
Description
In a directory level
_metadata.yml
, we can have a newrepo-url
key that overrides thewebsite/repo-url
that 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-actions
value in a directory level_metadata.yml
that overrides the value set inwebsite/repo-actions
in_quarto.yml
. For example, if my_quarto.yml
hasif I have the following in a directory
_metadata.yml
then the URL for the GitHub repo on pages in that sub-directory will change from
barfoo
tobazfoo
, 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: none
in_metadata.yml
in 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