|
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + title: "MagicMirror² Docs", |
| 6 | + description: "The open source modular smart mirror platform.", |
| 7 | + lang: "en", |
| 8 | + head: [ |
| 9 | + [ |
| 10 | + "script", |
| 11 | + { |
| 12 | + async: "", |
| 13 | + src: "https://www.googletagmanager.com/gtag/js?id=UA-1219071-59", |
| 14 | + }, |
| 15 | + ], |
| 16 | + [ |
| 17 | + "script", |
| 18 | + {}, |
| 19 | + `window.dataLayer = window.dataLayer || []; |
| 20 | + function gtag(){dataLayer.push(arguments);} |
| 21 | + gtag('js', new Date()); |
| 22 | + gtag('config', 'TAG_ID');`, |
| 23 | + ], |
| 24 | + ], |
| 25 | + sitemap: { |
| 26 | + hostname: "https://docs.magicmirror.builders/", |
| 27 | + }, |
| 28 | + themeConfig: { |
| 29 | + // https://vitepress.dev/reference/default-theme-config |
| 30 | + carbonAds: { |
| 31 | + code: "CK7IC23N", |
| 32 | + placement: "magicmirror", |
| 33 | + }, |
| 34 | + editLink: { |
| 35 | + pattern: |
| 36 | + "https://github.com/MagicMirrorOrg/MagicMirror-Documentation/blob/master/:path", |
| 37 | + text: "Help us improve this page!", |
| 38 | + }, |
| 39 | + lastUpdated: { |
| 40 | + text: "Updated at", |
| 41 | + }, |
| 42 | + logo: "/logo.png", |
| 43 | + nav: [ |
| 44 | + { text: "Donate", link: "https://magicmirror.builders/donate" }, |
| 45 | + { text: "Forum", link: "https://forum.magicmirror.builders" }, |
| 46 | + ], |
| 47 | + search: { |
| 48 | + options: { |
| 49 | + apiKey: "96d207343bbb5e45068a1e3c8d141bb4", |
| 50 | + appId: "U3QOOOGLZR", |
| 51 | + indexName: "docs-magicmirror-builders", |
| 52 | + }, |
| 53 | + provider: "algolia", |
| 54 | + }, |
| 55 | + sidebar: [ |
| 56 | + { |
| 57 | + text: "Getting Started", |
| 58 | + collapsed: false, |
| 59 | + items: [ |
| 60 | + { text: "Introduction", link: "/" }, |
| 61 | + { text: "Requirements", link: "/getting-started/requirements.md" }, |
| 62 | + { |
| 63 | + text: "Installation & Usage", |
| 64 | + link: "/getting-started/installation.md", |
| 65 | + }, |
| 66 | + { text: "Upgrade Guide", link: "/getting-started/upgrade-guide.md" }, |
| 67 | + ], |
| 68 | + }, |
| 69 | + { |
| 70 | + text: "Configuration", |
| 71 | + collapsed: true, |
| 72 | + items: [ |
| 73 | + { text: "Introduction", link: "/configuration/introduction" }, |
| 74 | + { |
| 75 | + text: "Autostart your MagicMirror²", |
| 76 | + link: "/configuration/autostart", |
| 77 | + }, |
| 78 | + { text: "Raspberry Specific", link: "/configuration/raspberry" }, |
| 79 | + ], |
| 80 | + }, |
| 81 | + { |
| 82 | + text: "Modules", |
| 83 | + collapsed: true, |
| 84 | + items: [ |
| 85 | + { text: "Introduction", link: "/modules/introduction" }, |
| 86 | + { text: "Configuration", link: "/modules/configuration" }, |
| 87 | + { |
| 88 | + text: "Default Modules", |
| 89 | + collapsed: true, |
| 90 | + items: [ |
| 91 | + { text: "Alert", link: "/modules/alert" }, |
| 92 | + { text: "Calendar", link: "/modules/calendar" }, |
| 93 | + { text: "Clock", link: "/modules/clock" }, |
| 94 | + { text: "Compliments", link: "/modules/compliments" }, |
| 95 | + { text: "Hello World", link: "/modules/helloworld" }, |
| 96 | + { text: "Newsfeed", link: "/modules/newsfeed" }, |
| 97 | + { |
| 98 | + text: "Update Notification", |
| 99 | + link: "/modules/updatenotification", |
| 100 | + }, |
| 101 | + { text: "Weather", link: "/modules/weather" }, |
| 102 | + ], |
| 103 | + }, |
| 104 | + { text: "Animation Guide", link: "/modules/animate" }, |
| 105 | + ], |
| 106 | + }, |
| 107 | + { |
| 108 | + text: "Module Development", |
| 109 | + collapsed: true, |
| 110 | + items: [ |
| 111 | + { text: "Introduction", link: "/module-development/introduction" }, |
| 112 | + { |
| 113 | + text: "The Core module file", |
| 114 | + link: "/module-development/core-module-file", |
| 115 | + }, |
| 116 | + { text: "The Node Helper", link: "/module-development/node-helper" }, |
| 117 | + { |
| 118 | + text: "Rendering Component", |
| 119 | + link: "/module-development/rendering", |
| 120 | + }, |
| 121 | + { |
| 122 | + text: "MagicMirror Helper Methods", |
| 123 | + link: "/module-development/helper-methods", |
| 124 | + }, |
| 125 | + { text: "Logger", link: "/module-development/logger" }, |
| 126 | + { text: "Notifications", link: "/module-development/notifications" }, |
| 127 | + { |
| 128 | + text: "Weather Module Weather Provider Development", |
| 129 | + link: "/module-development/weather-provider", |
| 130 | + }, |
| 131 | + { |
| 132 | + text: "How to write good documentation", |
| 133 | + link: "/module-development/documentation", |
| 134 | + }, |
| 135 | + ], |
| 136 | + }, |
| 137 | + { |
| 138 | + text: "Core Development", |
| 139 | + collapsed: true, |
| 140 | + items: [ |
| 141 | + { text: "Introduction", link: "/core-development/introduction.md" }, |
| 142 | + { |
| 143 | + text: "Testing", |
| 144 | + link: "/core-development/testing.md", |
| 145 | + }, |
| 146 | + { text: "Debugging", link: "/core-development/debugging.md" }, |
| 147 | + ], |
| 148 | + }, |
| 149 | + { |
| 150 | + text: "About", |
| 151 | + collapsed: true, |
| 152 | + items: [ |
| 153 | + { text: "Manifesto", link: "/about/manifesto" }, |
| 154 | + { text: "Contributing Guidelines", link: "/about/contributing" }, |
| 155 | + { text: "Donate", link: "/about/donate" }, |
| 156 | + { text: "Support", link: "/about/support" }, |
| 157 | + { text: "License", link: "/about/LICENSE" }, |
| 158 | + ], |
| 159 | + }, |
| 160 | + ], |
| 161 | + socialLinks: [ |
| 162 | + { icon: "github", link: "https://github.com/MagicMirrorOrg/MagicMirror" }, |
| 163 | + { icon: "discord", link: "https://discord.gg/J5BAtvx" }, |
| 164 | + ], |
| 165 | + }, |
| 166 | +}); |
0 commit comments