mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
feat(docs): Added support for prefers-color-scheme in docs
Now, instead of always defaulting to light theme, documentation, docs will default to the color scheme based by the user preference (reported by web browser as a `prefers-color-scheme` media query). It is still possible for user to change the theme by using the switch next to the search box. His preference will be remembered.
This commit is contained in:
@@ -10,6 +10,9 @@ module.exports = {
|
|||||||
projectName: "zmk", // Usually your repo name.
|
projectName: "zmk", // Usually your repo name.
|
||||||
plugins: [path.resolve(__dirname, "src/docusaurus-tree-sitter-plugin")],
|
plugins: [path.resolve(__dirname, "src/docusaurus-tree-sitter-plugin")],
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
colorMode: {
|
||||||
|
respectPrefersColorScheme: true,
|
||||||
|
},
|
||||||
googleAnalytics: {
|
googleAnalytics: {
|
||||||
trackingID: "UA-145201102-2",
|
trackingID: "UA-145201102-2",
|
||||||
anonymizeIP: true,
|
anonymizeIP: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user