Replies: 1 comment 11 replies
-
Correct, we cannot control what users do with this project, and plugins or extension may cause significant slowdown, which is why, in general, we only offer support for issues that are not related to customization.
Nope, you'd have to narrow it down by commenting out your customizations one-by-one. If you've isolated the cause, we can look into it, but it looks like it's more likely related to an upstream dependency of Material for MkDocs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Everyone,
I recently updated one of my docs sites to mkdocs-material 7.2.5 (issue was also seen in 7.2.4) and MkDocs 1.2.2 and followed the instructions for extending the theme and adding custom icons (for use with the theme toggles) https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/#additional-icons
Relevant lines in
mkdocs.yml
:When these overrides are in place, it takes a very long time for the site to build (specifically with
mkdocs serve
but the same issue occurs withmkdocs build
as well):$ mkdocs serve INFO - Building documentation... INFO - Cleaning site directory ... ... INFO - Documentation built in 121.92 seconds
With the overrides removed it takes a "normal" amount of time to build and serve:
$ mkdocs serve INFO - Building documentation... INFO - Cleaning site directory ... ... INFO - Documentation built in 10.86 seconds INFO - [12:53:10] Serving on http://127.0.0.1:8000/
considering there is a checklist item to disable overrides when reporting a bug/issue, I'm assuming this is expected in some fashion, but my question is: is there a way to determine why there is such a slowdown? For reference, there are a whole 2
.svg
files in the custom directory. It's structure is as follows:I'd appreciate any info.
Beta Was this translation helpful? Give feedback.
All reactions