Closed ashnair1 closed 3 years ago
Hi I was trying to setup a dark mode light mode toogle as per the mkdocs documentation so I basically replaced the following in mkdocs.yml
mkdocs.yml
palette: primary: light blue
with this
palette: - scheme: default primary: indigo accent: indigo toggle: icon: material/toggle-switch-off-outline name: Switch to dark mode - scheme: slate primary: red accent: red toggle: icon: material/toggle-switch name: Switch to light mode
However, this doesn't work and the toggle is not displayed. Do you have an idea as to why this happens?
Found the issue. My toggle less page was getting cached. Just needed to clear the browser history.
Thanks for update this info.
Description
Hi I was trying to setup a dark mode light mode toogle as per the mkdocs documentation so I basically replaced the following in
mkdocs.yml
with this
However, this doesn't work and the toggle is not displayed. Do you have an idea as to why this happens?