hd-garden 0.3.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/.agents/skills/garden-interactive-chart/SKILL.md +84 -0
- package/.agents/skills/garden-interactive-chart/references/shell.html +49 -0
- package/.agents/skills/garden-interactive-chart/references/style.md +61 -0
- package/.env.example +56 -0
- package/.openai/hosting.json +5 -0
- package/LICENSE +21 -0
- package/Makefile +48 -0
- package/README.md +72 -0
- package/app/about/page.tsx +60 -0
- package/app/admin/page.tsx +117 -0
- package/app/api/admin/distribution/route.ts +120 -0
- package/app/api/admin/posts/pin/route.ts +32 -0
- package/app/api/admin/thoughts/[id]/route.ts +44 -0
- package/app/api/admin/thoughts/route.ts +120 -0
- package/app/api/admin/uploads/route.ts +20 -0
- package/app/api/auth/github/callback/route.ts +136 -0
- package/app/api/auth/github/route.ts +29 -0
- package/app/api/auth/logout/route.ts +13 -0
- package/app/blog/[...path]/page.tsx +135 -0
- package/app/blog/page.tsx +139 -0
- package/app/chatgpt-auth.ts +86 -0
- package/app/columns/[column]/[...path]/page.tsx +160 -0
- package/app/columns/page.tsx +68 -0
- package/app/components/AdminDashboard.tsx +410 -0
- package/app/components/Comments.tsx +55 -0
- package/app/components/ContentEmptyState.tsx +51 -0
- package/app/components/ExternalEmbed.tsx +127 -0
- package/app/components/GardenAdminGuide.tsx +116 -0
- package/app/components/GardenContentGuide.tsx +241 -0
- package/app/components/GardenMediaGuide.tsx +81 -0
- package/app/components/GiscusComments.tsx +71 -0
- package/app/components/GithubLiveOverview.tsx +118 -0
- package/app/components/GithubProfile.tsx +326 -0
- package/app/components/MarkdownArticle.tsx +144 -0
- package/app/components/MermaidDiagram.tsx +117 -0
- package/app/components/PageIntro.tsx +32 -0
- package/app/components/SiteChrome.tsx +18 -0
- package/app/components/SiteFooter.tsx +29 -0
- package/app/components/SiteHeader.tsx +420 -0
- package/app/components/TableOfContents.tsx +433 -0
- package/app/components/ThoughtCard.tsx +242 -0
- package/app/components/Webmentions.tsx +194 -0
- package/app/components/WidgetChart.tsx +222 -0
- package/app/garden/page.tsx +284 -0
- package/app/garden-modules.d.ts +62 -0
- package/app/globals.css +4454 -0
- package/app/layout.tsx +102 -0
- package/app/lib/admin-auth.ts +134 -0
- package/app/lib/content.ts +112 -0
- package/app/lib/fallback-site-config.ts +56 -0
- package/app/lib/generated-content.ts +380 -0
- package/app/lib/github-content.ts +244 -0
- package/app/lib/markdown-plugins.ts +13 -0
- package/app/lib/oss.ts +100 -0
- package/app/lib/public-thoughts.ts +9 -0
- package/app/lib/repository-path.mjs +32 -0
- package/app/lib/site.ts +51 -0
- package/app/page.tsx +119 -0
- package/app/robots.ts +15 -0
- package/app/rss.xml/route.ts +84 -0
- package/app/site.config.ts +35 -0
- package/app/sitemap.ts +46 -0
- package/app/thoughts/[slug]/page.tsx +79 -0
- package/app/thoughts/page.tsx +33 -0
- package/app/yaml.d.ts +4 -0
- package/bin/garden.mjs +348 -0
- package/build/sites-vite-plugin.ts +39 -0
- package/eslint.config.mjs +20 -0
- package/next.config.ts +13 -0
- package/package.json +112 -0
- package/postcss.config.mjs +7 -0
- package/public/favicon.svg +4 -0
- package/public/images/garden/admin-studio.png +0 -0
- package/public/og.png +0 -0
- package/scripts/build-content.mjs +582 -0
- package/scripts/fetch-embed.mjs +189 -0
- package/scripts/garden-paths.mjs +21 -0
- package/scripts/new-post.mjs +73 -0
- package/scripts/prepare-pages-output.mjs +182 -0
- package/scripts/send-webmentions.mjs +27 -0
- package/site.config.yaml +48 -0
- package/templates/site/Makefile +46 -0
- package/templates/site/README.md +13 -0
- package/templates/site/content/columns.yaml +1 -0
- package/templates/site/content/posts/.gitkeep +0 -0
- package/templates/site/content/thoughts/.gitkeep +0 -0
- package/templates/site/package.json +19 -0
- package/templates/site/site.config.yaml +46 -0
- package/tsconfig.json +34 -0
- package/vite.config.ts +130 -0
- package/worker/index.ts +53 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare module "@garden/generated-content" {
|
|
2
|
+
export type MediaItem = {
|
|
3
|
+
type: "image" | "audio" | "video" | "link";
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
poster?: string;
|
|
7
|
+
mime?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type ContentEntry = {
|
|
13
|
+
title: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
path: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
date: string;
|
|
18
|
+
updated?: string;
|
|
19
|
+
publishAt?: string;
|
|
20
|
+
draft?: boolean;
|
|
21
|
+
topic?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
pinned?: boolean;
|
|
24
|
+
readingTime?: string;
|
|
25
|
+
kind: "post" | "column" | "thought";
|
|
26
|
+
sourcePath: string;
|
|
27
|
+
content: string;
|
|
28
|
+
column?: string;
|
|
29
|
+
columnTitle?: string;
|
|
30
|
+
columnDescription?: string;
|
|
31
|
+
columnStatus?: string;
|
|
32
|
+
columnCover?: string;
|
|
33
|
+
columnCoverAlt?: string;
|
|
34
|
+
order?: number;
|
|
35
|
+
cover?: string;
|
|
36
|
+
coverAlt?: string;
|
|
37
|
+
mediaType?: "image" | "audio" | "video" | "link" | "text";
|
|
38
|
+
media?: string | MediaItem[];
|
|
39
|
+
mediaAlt?: string;
|
|
40
|
+
poster?: string;
|
|
41
|
+
linkTitle?: string;
|
|
42
|
+
linkDescription?: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const contentHash: string;
|
|
46
|
+
export const posts: ContentEntry[];
|
|
47
|
+
export const columns: ContentEntry[];
|
|
48
|
+
export const thoughts: ContentEntry[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare module "@garden/site-config" {
|
|
52
|
+
export const siteConfig: {
|
|
53
|
+
name: string;
|
|
54
|
+
tagline: string;
|
|
55
|
+
description: string;
|
|
56
|
+
locale: string;
|
|
57
|
+
author: { name: string; github: string; githubBio: string; githubPinned?: string[] };
|
|
58
|
+
pages: Record<string, Record<string, unknown>>;
|
|
59
|
+
footer: string;
|
|
60
|
+
};
|
|
61
|
+
export const githubUrl: string;
|
|
62
|
+
}
|