Skip to content

Optimize favicon bug #5098

@uPagge

Description

@uPagge

Context

No response

Bug description

The optimization plugin does not work, it crashes with an error at startup:

WARNING - Config value 'dev_addr': The use of the IP address '0.0.0.0' suggests a production environment or the use of a proxy to connect to the MkDocs server.
However, the MkDocs' server is intended for local development purposes only. Please use a third party production-ready server instead.
INFO - Building documentation...
INFO - Cleaning site directory

Optimizations:
FileNotFoundError: [Errno 2] No such file or directory: '.cache/plugin/optimize/images/assets/images/favicon.png'

Adding favicon to the assets/images/favicon.png folder does not solve the problem.

Only adding an image to '.cache/plugin/optimize/images/assets/images/favicon.png' Fixes this problem, but it's a clear crutch.

Related links

Reproduction

en.zip

Steps to reproduce

It is sufficient to simply run the assembly

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions