Skip to content

Commit

Permalink
Merge branch 'develop' into events-overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Apr 15, 2024
2 parents a3eb1c4 + a3ab2be commit cf0f52f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/core/config.js
Expand Up @@ -47,17 +47,19 @@ export default function (vm) {
return this.__themeColor;
},
set themeColor(value) {
this.__themeColor = value;
console.warn(
stripIndent(/* html */ `
$docsify.themeColor is deprecated. Use a --theme-color property in your style sheet. Example:
<style>
:root {
--theme-color: deeppink;
}
</style>
`).trim()
);
if (value) {
this.__themeColor = value;
console.warn(
stripIndent(`
$docsify.themeColor is deprecated. Use a --theme-color property in your style sheet. Example:
<style>
:root {
--theme-color: deeppink;
}
</style>
`).trim()
);
}
},
},

Expand Down

0 comments on commit cf0f52f

Please sign in to comment.