You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I can't figure out how to get rid of the "View Source" buttons. I've added both "disableGitFeatures": true and "_disableContribution": true but they don't seem to work. The "Edit this Page" link at the bottom was removed, but not the </> buttons for View Source.
This is a privacy issue for me -- the View Source buttons are linking to my private GitHub repo, which I'd rather not advertise. Obviously the links will not work for anyone but me, so it's also just a dead link in my docs pages.
The github links are puzzling me for another reason: how is it even figuring out the github URLs into my private repo? I'm generating the docs from a temporary directory that does not have a .git folder or anything 🤔
Am I putting these properties in the wrong place? Anything else I'm missing?
To Reproduce
Steps to reproduce the behavior:
Add "disableGitFeatures": true to the metadata and build sections of the configuration JSON
Add "_disableContribution": true to the globalMetadata section within the build section of the configuration JSON
Rebuild your docs
Expected behavior
No "Edit this Page" links (this is working correctly)
No "View Source" links (does not work)
No github URLs in the generated HTML pages (does not work)
Context (please complete the following information):
OS: Windows 11
Docfx version: 2.74.0
Additional context
Here is my docfx.json. The src property is filled-in by a pre-build script. It will point to a folder whose contents are exactly what are needed for correctly generating the docs. There's no .git in there or anything.
Describe the bug
I can't figure out how to get rid of the "View Source" buttons. I've added both
"disableGitFeatures": true
and"_disableContribution": true
but they don't seem to work. The "Edit this Page" link at the bottom was removed, but not the</>
buttons for View Source.This is a privacy issue for me -- the View Source buttons are linking to my private GitHub repo, which I'd rather not advertise. Obviously the links will not work for anyone but me, so it's also just a dead link in my docs pages.
The github links are puzzling me for another reason: how is it even figuring out the github URLs into my private repo? I'm generating the docs from a temporary directory that does not have a
.git
folder or anything 🤔Am I putting these properties in the wrong place? Anything else I'm missing?
To Reproduce
Steps to reproduce the behavior:
"disableGitFeatures": true
to themetadata
andbuild
sections of the configuration JSON"_disableContribution": true
to theglobalMetadata
section within thebuild
section of the configuration JSONExpected behavior
No "Edit this Page" links (this is working correctly)
No "View Source" links (does not work)
No github URLs in the generated HTML pages (does not work)
Context (please complete the following information):
Additional context
Here is my
docfx.json
. Thesrc
property is filled-in by a pre-build script. It will point to a folder whose contents are exactly what are needed for correctly generating the docs. There's no.git
in there or anything.The text was updated successfully, but these errors were encountered: