docsifyjs / docsify

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

fix: prevent unnecessary themeColor deprecation notice #2403

Closed jhildenbiddle closed 5 months ago

jhildenbiddle commented 5 months ago

Summary

The following deprecation warning was spamming the console even when $docsify.themeColor was not being used:

$docsify.themeColor is deprecated. Use a --theme-color property in your style sheet. Example:
<style>
  :root {
    --theme-color: deeppink;
  }
</style>

This console message will now only appear when $docsify.themeColor is used.

Related issue, if any:

None

What kind of change does this PR introduce?

Bugfix

For any code change,

N/A

Does this PR introduce a breaking change?

No

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 Updated (UTC)
docsify-preview ✅ Ready (Inspect) Visit Preview Apr 11, 2024 3:08pm