docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.78k stars 5.68k forks source link

Add a example of how to make a theme switch in docs/write-a-plugin.md #2455

Closed hqshi closed 5 months ago

hqshi commented 5 months ago

Summary

Add a example of how to make a theme switch in docs/write-a-plugin.md, this switch can switch self and auto add dark class to the body

also the light and darkmode's logo can be modified. and the example demo is https://hqshi.cn

darkmode

image

ligthmode

image

What kind of change does this PR introduce?

a improvement of Docs

For any code change,

no any code changed

Does this PR introduce a breaking change?

of couse not

Tested in the following browsers:

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docsify-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2024 7:25am