Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix button toggle and support lightbox #40

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

OnceUponALoop
Copy link

I ran into an issue wherein the light/dark switch was not being detected when using the mkdocs-material built-in toggle.

I resolved it by updating the switch_dark.js to account for it. Once that was fixed I found another issue with lightbox functionality when using this plugin, the lightbox image reference gets updated but we need to restart lightbox in order for it to access the new one.

  • Update requirements
  • Removed unused css and replaced with a mkdocs-material dark theme
  • Generate docstrings while reviewing the code

Demo:
switch_lightbox

- not needed if using the example as provided
- detects manual change via dark/light input as well as browser preference changes.
- extends support to the glightbox plugin
- uses transparent plantuml drawings
- update mkdocs example to include lightbox
- produce a new gif demo
- update readme
- cleanup header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant