Allow configuration of admonition, details, etc. icons via mkdocs.yml
See original GitHub issue- I’ve read the contribution guidelines and agree with them
I want to suggest an idea and checked that …
- … to my best knowledge, my idea wouldn’t break something for other users
- … the documentation does not mention anything about my idea
- … there are no open or closed issues that are related to my idea
Description
It would be a nice addition, if the Material theme could offer a setting for choosing your icon-set. I talk about the icons used in things such as admonition headers.
It could be an extra
setting:
extra:
icon-set: material # Uses Material icon set
extra:
icon-set: fontawesome # Uses FontAwesome icon set
extra:
icon-set: octicons # Uses Octicons icon set
Use Cases
It would allow people without a big CSS knowledge to switch to a different set of icons, if they don’t like the default ones used. I’m well aware of the example on the reference section in the docs, about how to add custom icons. But in such a case like this one here would this create a rather large CSS file for just changing your icons used…
Screenshots / Mockups
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Martin Donath
Users of Material for MkDocs Insiders can now configure admonition icons and set them to any of the 8k bundled icons, or even...
Read more >Configuration
Guide to all available configuration settings. Introduction . Project settings are configured by default using a YAML configuration file in the project ......
Read more >Include Admonition "example" qualifier · Issue #646
The docs say admonition allows for custom qualifier, and mkdocs-material adds a few of its own. There is no example to use a...
Read more >Admonitions - Material for MkDocs
This configuration enables admonitions, allows to make them collapsible and to nest arbitrary content inside admonitions. Add the following lines to ...
Read more >Material for MkDocs - GitHub
Minimal configuration. Simply add the following lines to mkdocs.yml to enable the theme. Note ... Fixed sizing of icons in admonitions, task lists,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note: this is yet unreleased
This turned out pretty great! Here’s an example using custom icons from the Octicons icons package. Of course, this can be used with any icon from any package, even custom icons as described in the documentation.
mkdocs.yml
Result:
Cool. Will wait for the actual release…
Couldn’t this be put on a lower insiders milestone? 👉👈 I can’t afford to be part of insiders (yet) and the 8k milestone sure will take a long time to be reached…