Material for MkDocs only bundles selected plugins in order to keep the size of the official image small. If the plugin you want to use is not included, create a new Dockerfile and extend the official Docker image:, 在使用MkDocs构建文档项目时,许多开发者会选择搭配Material主题和各类插件来增强功能。 其中glightbox作为一款流行的图片灯箱插件,在实际部署时可能会遇到与Docker环境的兼容性问题,这反映了Python项目在容器化部署时的典型依赖管理挑战。, These need to be installed by pip on top of the main mkdocs-material image, therefore a custom Dockerfile is needed to add the relevant colour commands and create a custom image before they can be activated in the mkdocs.yml configuration file:, Our Docker image does not include the glightbox plugin – we try to ship a minimal image that is fast to download and run, because many people use it in CI environments. In our docs, we explain how to extend the image to add custom plugins., Material for MkDocs only bundles selected plugins in order to keep the size of the official image small. If the plugin you want to use is not included, create a new Dockerfile and extend the official Docker image:, I'm trying to do some pipeline work that injects certain values in a yaml document (an mkdocs config) if they are not currently present. But the problem is that the current values can be either items .