@grove-dev/starlight 0.1.9
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/LICENSE +21 -0
- package/README.md +200 -0
- package/components/custom/ContainerSection.astro +58 -0
- package/components/custom/LinkButton.astro +141 -0
- package/components/custom/dropdown/Dropdown.astro +616 -0
- package/components/custom/dropdown/DropdownContent.astro +179 -0
- package/components/custom/dropdown/DropdownItem.astro +72 -0
- package/components/custom/dropdown/DropdownLabel.astro +31 -0
- package/components/custom/dropdown/DropdownSeparator.astro +18 -0
- package/components/custom/dropdown/DropdownShortcut.astro +24 -0
- package/components/custom/dropdown/DropdownTrigger.astro +54 -0
- package/components/custom/dropdown/index.ts +29 -0
- package/components/overrides/ContentPanel.astro +1 -0
- package/components/overrides/Footer.astro +54 -0
- package/components/overrides/Header.astro +93 -0
- package/components/overrides/Hero.astro +260 -0
- package/components/overrides/MarkdownContent.astro +17 -0
- package/components/overrides/PageFrame.astro +121 -0
- package/components/overrides/PageSidebar.astro +20 -0
- package/components/overrides/PageTitle.astro +130 -0
- package/components/overrides/Pagination.astro +101 -0
- package/components/overrides/Search.astro +549 -0
- package/components/overrides/Sidebar.astro +111 -0
- package/components/overrides/SiteTitle.astro +65 -0
- package/components/overrides/SocialIcons.astro +47 -0
- package/components/overrides/TableOfContents.astro +36 -0
- package/components/overrides/ThemeSelect.astro +156 -0
- package/components/overrides/TwoColumnContent.astro +75 -0
- package/components/overrides/parts/Drawer.astro +232 -0
- package/components/overrides/parts/MobileMenuToggle.astro +42 -0
- package/components/overrides/parts/NavBar.astro +110 -0
- package/components/overrides/parts/SidebarSublist.astro +115 -0
- package/components/overrides/parts/toc/TableOfContentsList.astro +71 -0
- package/components/overrides/parts/toc/starlight-toc.ts +119 -0
- package/core/config/constants.ts +1 -0
- package/core/config/expresive-code.ts +63 -0
- package/core/config/override.ts +48 -0
- package/core/config/schemas.ts +57 -0
- package/core/config/vite.ts +20 -0
- package/core/plugin.ts +56 -0
- package/global.d.ts +5 -0
- package/index.ts +3 -0
- package/package.json +54 -0
- package/schema.ts +24 -0
- package/styles/base.css +897 -0
- package/styles/layers.css +1 -0
- package/styles/theme.css +67 -0
- package/user-components.ts +3 -0
- package/virtual.d.ts +51 -0
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@grove-dev/starlight",
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Grove's theme for Starlight (the Astro native documentation site generator)",
|
|
6
|
+
"author": "grove-dev",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"readme": "README.md",
|
|
9
|
+
"homepage": "https://grove.dev.mn/",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/tortuvshin/grove.git",
|
|
13
|
+
"directory": "packages/starlight"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/tortuvshin/grove/issues"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./index.ts",
|
|
23
|
+
"./schema": "./schema.ts",
|
|
24
|
+
"./styles/base": "./styles/base.css",
|
|
25
|
+
"./styles/layers": "./styles/layers.css",
|
|
26
|
+
"./styles/theme": "./styles/theme.css",
|
|
27
|
+
"./components": "./user-components.ts",
|
|
28
|
+
"./components/overrides/ContentPanel.astro": "./components/overrides/ContentPanel.astro",
|
|
29
|
+
"./components/overrides/Footer.astro": "./components/overrides/Footer.astro",
|
|
30
|
+
"./components/overrides/Header.astro": "./components/overrides/Header.astro",
|
|
31
|
+
"./components/overrides/ThemeSelect.astro": "./components/overrides/ThemeSelect.astro",
|
|
32
|
+
"./components/overrides/SiteTitle.astro": "./components/overrides/SiteTitle.astro",
|
|
33
|
+
"./components/overrides/Search.astro": "./components/overrides/Search.astro",
|
|
34
|
+
"./components/overrides/SocialIcons.astro": "./components/overrides/SocialIcons.astro",
|
|
35
|
+
"./components/overrides/PageFrame.astro": "./components/overrides/PageFrame.astro",
|
|
36
|
+
"./components/overrides/TwoColumnContent.astro": "./components/overrides/TwoColumnContent.astro",
|
|
37
|
+
"./components/overrides/PageTitle.astro": "./components/overrides/PageTitle.astro",
|
|
38
|
+
"./components/overrides/TableOfContents.astro": "./components/overrides/TableOfContents.astro",
|
|
39
|
+
"./components/overrides/PageSidebar.astro": "./components/overrides/PageSidebar.astro",
|
|
40
|
+
"./components/overrides/Sidebar.astro": "./components/overrides/Sidebar.astro",
|
|
41
|
+
"./components/overrides/MarkdownContent.astro": "./components/overrides/MarkdownContent.astro",
|
|
42
|
+
"./components/overrides/Hero.astro": "./components/overrides/Hero.astro",
|
|
43
|
+
"./components/overrides/Pagination.astro": "./components/overrides/Pagination.astro",
|
|
44
|
+
"./package.json": "./package.json"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@astrojs/starlight": ">=0.38.3",
|
|
48
|
+
"astro": ">=5.0.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@pagefind/default-ui": "^1.5.2",
|
|
52
|
+
"marked": "^18.0.2"
|
|
53
|
+
}
|
|
54
|
+
}
|
package/schema.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'astro/zod';
|
|
2
|
+
|
|
3
|
+
export const heroLayoutSchema = z
|
|
4
|
+
.enum(['centered', 'centered-top', 'split-left', 'split-right', 'banner'])
|
|
5
|
+
.default('centered')
|
|
6
|
+
.describe(
|
|
7
|
+
'The layout of the hero section. "centered" places the image below the text, "centered-top" places it above, "split-left" places text left and image right, "split-right" places text right and image left.'
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export type HeroLayout = z.infer<typeof heroLayoutSchema>;
|
|
11
|
+
|
|
12
|
+
export const ExtendDocsSchema = z.object({
|
|
13
|
+
hero: z
|
|
14
|
+
.object({
|
|
15
|
+
layout: heroLayoutSchema,
|
|
16
|
+
announcement: z
|
|
17
|
+
.object({
|
|
18
|
+
text: z.string(),
|
|
19
|
+
link: z.string(),
|
|
20
|
+
})
|
|
21
|
+
.optional(),
|
|
22
|
+
})
|
|
23
|
+
.optional(),
|
|
24
|
+
});
|