@oneie/plugin-docs 0.1.1 → 0.1.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/package.json +1 -1
- package/src/DocsIndex.astro +7 -12
- package/src/DocsLayout.astro +7 -12
package/package.json
CHANGED
package/src/DocsIndex.astro
CHANGED
|
@@ -38,16 +38,12 @@ function folderLabel(key: string): string {
|
|
|
38
38
|
}
|
|
39
39
|
---
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<head
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{description && <meta name="description" content={description} />}
|
|
48
|
-
<slot name="head" />
|
|
49
|
-
</head>
|
|
50
|
-
<body class="bg-background text-foreground antialiased">
|
|
41
|
+
<!--
|
|
42
|
+
A fragment, not a full document — this composes into the consuming site's
|
|
43
|
+
own <Layout> (nav, <head>, CSS). It has no opinion on chrome, only content.
|
|
44
|
+
Wrap it yourself: <Layout title={title}><DocsIndex title={title} /></Layout>
|
|
45
|
+
-->
|
|
46
|
+
<div class="bg-background text-foreground antialiased">
|
|
51
47
|
<slot name="header" />
|
|
52
48
|
|
|
53
49
|
<!-- Hero -->
|
|
@@ -115,5 +111,4 @@ function folderLabel(key: string): string {
|
|
|
115
111
|
</main>
|
|
116
112
|
|
|
117
113
|
<slot name="footer" />
|
|
118
|
-
|
|
119
|
-
</html>
|
|
114
|
+
</div>
|
package/src/DocsLayout.astro
CHANGED
|
@@ -48,16 +48,12 @@ const editUrl = editBaseUrl ? `${editBaseUrl.replace(/\/$/, '')}/${entry.id}` :
|
|
|
48
48
|
const tocHeadings = headings.filter((h) => h.depth === 2 || h.depth === 3)
|
|
49
49
|
---
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<head
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{entry.data.description && <meta name="description" content={entry.data.description} />}
|
|
58
|
-
<slot name="head" />
|
|
59
|
-
</head>
|
|
60
|
-
<body class="h-full bg-background text-foreground antialiased">
|
|
51
|
+
<!--
|
|
52
|
+
A fragment, not a full document — this composes into the consuming site's
|
|
53
|
+
own <Layout> (nav, <head>, CSS). It has no opinion on chrome, only content.
|
|
54
|
+
Wrap it yourself: <Layout title={entry.data.title}><DocsLayout entry={entry} entries={entries}>…</DocsLayout></Layout>
|
|
55
|
+
-->
|
|
56
|
+
<div class="h-full bg-background text-foreground antialiased">
|
|
61
57
|
<!-- Top bar -->
|
|
62
58
|
<header class="sticky top-0 z-40 flex h-14 items-center gap-4 border-b border-border bg-background/95 px-6 backdrop-blur">
|
|
63
59
|
<a href="/docs" class="mr-4 text-sm font-semibold text-foreground hover:text-primary">
|
|
@@ -135,5 +131,4 @@ const tocHeadings = headings.filter((h) => h.depth === 2 || h.depth === 3)
|
|
|
135
131
|
</div>
|
|
136
132
|
</main>
|
|
137
133
|
</div>
|
|
138
|
-
|
|
139
|
-
</html>
|
|
134
|
+
</div>
|