create-ardo 2.5.0 → 2.6.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ardo",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Scaffolding tool for Ardo documentation projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/sebastian-software/ardo.git",
|
|
25
25
|
"directory": "packages/create-ardo"
|
|
26
26
|
},
|
|
27
|
-
"homepage": "https://
|
|
27
|
+
"homepage": "https://ardo-docs.dev",
|
|
28
28
|
"bugs": {
|
|
29
29
|
"url": "https://github.com/sebastian-software/ardo/issues"
|
|
30
30
|
},
|
|
@@ -9,11 +9,16 @@ import {
|
|
|
9
9
|
SidebarLink,
|
|
10
10
|
Footer,
|
|
11
11
|
} from "ardo/ui"
|
|
12
|
-
import {
|
|
12
|
+
import { ArdoProvider } from "ardo/runtime"
|
|
13
13
|
import config from "virtual:ardo/config"
|
|
14
14
|
import sidebar from "virtual:ardo/sidebar"
|
|
15
|
+
import type { MetaFunction } from "react-router"
|
|
15
16
|
import "ardo/ui/styles.css"
|
|
16
17
|
|
|
18
|
+
export const meta: MetaFunction = () => [
|
|
19
|
+
{ title: "{{SITE_TITLE}}" },
|
|
20
|
+
]
|
|
21
|
+
|
|
17
22
|
export function Layout({ children }: { children: React.ReactNode }) {
|
|
18
23
|
return (
|
|
19
24
|
<html lang="en" suppressHydrationWarning>
|
|
@@ -37,7 +42,7 @@ export default function Root() {
|
|
|
37
42
|
const isHomePage = location.pathname === "/"
|
|
38
43
|
|
|
39
44
|
return (
|
|
40
|
-
<
|
|
45
|
+
<ArdoProvider config={config} sidebar={sidebar}>
|
|
41
46
|
<ArdoLayout
|
|
42
47
|
className={isHomePage ? "ardo-layout ardo-home" : "ardo-layout"}
|
|
43
48
|
header={
|
|
@@ -79,6 +84,6 @@ export default function Root() {
|
|
|
79
84
|
>
|
|
80
85
|
<Outlet />
|
|
81
86
|
</ArdoLayout>
|
|
82
|
-
</
|
|
87
|
+
</ArdoProvider>
|
|
83
88
|
)
|
|
84
89
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Hero, Features } from "ardo/ui"
|
|
2
2
|
import { Zap, Sparkles, Palette, ArrowRight, Github } from "ardo/icons"
|
|
3
|
+
import type { MetaFunction } from "react-router"
|
|
4
|
+
|
|
5
|
+
export const meta: MetaFunction = () => [
|
|
6
|
+
{ title: "{{SITE_TITLE}}" },
|
|
7
|
+
]
|
|
3
8
|
|
|
4
9
|
export default function HomePage() {
|
|
5
10
|
return (
|