Skip to content

Commit

Permalink
Merge branch 'develop' into fix-dev-hot-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Apr 13, 2024
2 parents 7ce9c83 + a3ab2be commit a8aab9b
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 a8aab9b

Please sign in to comment.