xs-dev 0.25.0 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/astro.config.mjs
CHANGED
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
---
|
|
2
|
-
import '../styles/theme.css'
|
|
3
|
-
import '../styles/index.css'
|
|
2
|
+
import '../styles/theme.css'
|
|
3
|
+
import '../styles/index.css'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Global Metadata -->
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<meta name="viewport" content="width=device-width" />
|
|
9
9
|
|
|
10
|
-
<link rel="icon" type="image/svg+xml" href="/
|
|
11
|
-
<link rel="alternate icon" type="image/x-icon" href="/
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
11
|
+
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />
|
|
12
12
|
|
|
13
|
-
<link rel="sitemap" href="/
|
|
13
|
+
<link rel="sitemap" href="/sitemap.xml" />
|
|
14
14
|
|
|
15
15
|
<!-- Preload Fonts -->
|
|
16
16
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
17
17
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
18
|
-
<link
|
|
18
|
+
<link
|
|
19
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital@0;1&display=swap"
|
|
20
|
+
rel="stylesheet"
|
|
21
|
+
/>
|
|
19
22
|
|
|
20
23
|
<!-- Scrollable a11y code helper -->
|
|
21
|
-
<script src="/
|
|
24
|
+
<script src="/make-scrollable-code-focusable.js" is:inline></script>
|
|
22
25
|
|
|
23
26
|
<!-- This is intentionally inlined to avoid FOUC -->
|
|
24
27
|
<script is:inline>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const root = document.documentElement
|
|
29
|
+
const theme = localStorage.getItem('theme')
|
|
30
|
+
if (
|
|
31
|
+
theme === 'dark' ||
|
|
32
|
+
(!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)
|
|
33
|
+
) {
|
|
34
|
+
root.classList.add('theme-dark')
|
|
35
|
+
} else {
|
|
36
|
+
root.classList.remove('theme-dark')
|
|
37
|
+
}
|
|
32
38
|
</script>
|
|
@@ -16,7 +16,7 @@ const SearchForm: Component = () => {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
onMount(async () => {
|
|
19
|
-
const content = await fetch('/
|
|
19
|
+
const content = await fetch('/search-index.json')
|
|
20
20
|
.then((res) => res.json())
|
|
21
21
|
const options = { keys: ['title', 'description', 'content'] }
|
|
22
22
|
fuse = new Fuse(content, options)
|
|
@@ -14,14 +14,14 @@ The Moddable SDK and associated dev board tooling is incredibly empowering for e
|
|
|
14
14
|
|
|
15
15
|
**Features:**
|
|
16
16
|
|
|
17
|
-
- [X] [Moddable SDK setup](/
|
|
18
|
-
- [X] [SDK updates](/
|
|
19
|
-
- [X] [Teardown](/
|
|
20
|
-
- [X] [Device discovery](/
|
|
21
|
-
- [X] [Project creation](/
|
|
22
|
-
- [X] [Run a project or example](/
|
|
23
|
-
- [X] [SDK module management](/
|
|
24
|
-
- [X] [Get dev environment info](/
|
|
17
|
+
- [X] [Moddable SDK setup](/en/features/setup)
|
|
18
|
+
- [X] [SDK updates](/en/features/update)
|
|
19
|
+
- [X] [Teardown](/en/features/teardown)
|
|
20
|
+
- [X] [Device discovery](/en/features/scan)
|
|
21
|
+
- [X] [Project creation](/en/features/init)
|
|
22
|
+
- [X] [Run a project or example](/en/features/run)
|
|
23
|
+
- [X] [SDK module management](/en/features/include)
|
|
24
|
+
- [X] [Get dev environment info](/en/features/doctor)
|
|
25
25
|
- [ ] Third-party dependency management ([coming soon](https://github.com/HipsterBrown/xs-dev/issues/49))
|
|
26
26
|
|
|
27
27
|
**Platform support:**
|