-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add admonition for publishing guide #7977
Add admonition for publishing guide #7977
Conversation
910f2ae
to
5ba821f
Compare
docs/publishing-your-site.md
Outdated
@@ -4,6 +4,13 @@ The great thing about hosting project documentation in a `git` repository is | |||
the ability to deploy it automatically when new changes are pushed. MkDocs | |||
makes this ridiculously simple. | |||
|
|||
???+ warning | |||
|
|||
Please note that the container image with which mkdocs-material is delivered is not an image for |
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.
IMHO, this is misleading, it sounds like you should not build the documentation, which is what the image is for. Also, I'm not sure whether this page is the right choice to add this admonition, it might be rather confusing.
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.
Maybe rather under the Docker installation instructions in the getting started guide? Here's a draft:
Please note that the Docker container is optimized for local previewing, not for deployments. The reason for this is that the web server that MkDocs provides for the live preview functionality is not production-grade, and might have security issues.
There might be some note on the MkDocs docs that mentions this, but I'm having a hard time finding it. There ar, however, a lot of issues where the maintainers of MkDocs have pointed this out to users trying to just run mkdocs serve
in production.
Thanks for the review @squidfunk. I moved it to |
Great, LGTM! Thanks for investing the time |
I made this PR because in some discussions people use the inbuilt preview server as a ‘production’ server. To prevent this abuse, I have clarified in this change that the image is only for previewing the website or for building it.
But somehow I'm still not happy with it. Do you have any ideas on how to make this better @alexvoss?