-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
No response
Bug description
Pretty tricky bug that I'm trying to catch up for months now!
Expected behavior: when using tag icons, the order of icons identifiers should not matter and every icon should be rendered, no matter if its identifier is below or above the entry entry.
Given this mkdocs.yml:
site_name: My Docs
plugins:
- tags:
enabled: true
theme:
name: material
icon:
tag:
database: fontawesome/solid/database
# icons above this entry are not rendered
default: fontawesome/solid/tag
globe: fontawesome/solid/earth-europe
extra:
tags:
DuckDB: database
GEOS: globe
PostGIS: database
PostgreSQL: database
This index.md:
---
tags:
- DuckDB
- GEOS
- PostGIS
- PostgreSQL
---
# Welcome to MkDocs
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
Output:
Now, let's move every icon identifiers below ðefault entry:
[...]
theme:
name: material
icon:
tag:
# icons above this entry are not rendered
default: fontawesome/solid/tag
database: fontawesome/solid/database
globe: fontawesome/solid/earth-europe
[...]Output:
🥳 every defined icons are rendered!
Related links
Reproduction
9.5.3+insiders.4.49.2-plugin_tags_icons_order.zip
Steps to reproduce
- Create a page with some tags
- In
theme.icon.tag, add some icons above and below thedefaultentry - In
extra.tags, match between tags and icons mkdocs serve--> every tag whose icon entry is defined abovedefaultdoes not have its own icon rendered
Browser
Chrome, Firefox
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open

