Skip to content
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

Merged

Conversation

niclasheinz
Copy link
Collaborator

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?

@niclasheinz niclasheinz force-pushed the add-admonition-for-publishing-guide branch from 910f2ae to 5ba821f Compare February 6, 2025 22:16
@@ -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
Copy link
Owner

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.

Copy link
Owner

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.

@niclasheinz niclasheinz marked this pull request as ready for review February 7, 2025 12:55
@niclasheinz
Copy link
Collaborator Author

Thanks for the review @squidfunk. I moved it to Getting Started at the end of the chapter with docker.

@squidfunk
Copy link
Owner

Great, LGTM! Thanks for investing the time ☺️

@squidfunk squidfunk merged commit 10dd004 into squidfunk:master Feb 8, 2025
4 checks passed
@niclasheinz niclasheinz deleted the add-admonition-for-publishing-guide branch February 8, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants