Remove/Disable "source code in": do not show code #7083
-
Hi there, I want to keep my source code private. I don't want the "Source code in" option to be available for viewing my code. I've been removing the HTML tags after building the website to achieve this, but I don't think this is a long-term solution. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Um, I am afraid I do not recognize what you are showing us. Might be that there are corners of Material for MkDocs I have not yet seen, might be this is produced by a plugin or other extension? Apologies if I am missing something. |
Beta Was this translation helpful? Give feedback.
-
Hello @jcerveto, I had a quick look at the docs and there is a Both in the global options and configurable for each code instance in the docs. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Hello @jcerveto,
this looks to me like mkdocsstrings
So an upstream plugin, and upstream issue.
I had a quick look at the docs and there is a
show_source
toggle.https://mkdocstrings.github.io/usage/#autodoc-syntax
Both in the global options and configurable for each code instance in the docs.