@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneie/plugin-docs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "ONE docs — Astro content collection with sidebar nav, search, code blocks, and versioning",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -38,16 +38,12 @@ function folderLabel(key: string): string {
38
38
  }
39
39
  ---
40
40
 
41
- <!doctype html>
42
- <html lang="en">
43
- <head>
44
- <meta charset="UTF-8" />
45
- <meta name="viewport" content="width=device-width, initial-scale=1" />
46
- <title>{title}</title>
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
- </body>
119
- </html>
114
+ </div>
@@ -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
- <!doctype html>
52
- <html lang="en" class="h-full">
53
- <head>
54
- <meta charset="UTF-8" />
55
- <meta name="viewport" content="width=device-width, initial-scale=1" />
56
- <title>{entry.data.title}</title>
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
- </body>
139
- </html>
134
+ </div>