@the-smithy/create-hearth-site 0.21.0 → 0.22.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": "@the-smithy/create-hearth-site",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Start a new client website powered by Hearth: pnpm create @the-smithy/hearth-site",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "devDependencies": {
31
31
  "vitest": "^5.0.3",
32
- "@the-smithy/hearth-schema": "^0.21.0"
32
+ "@the-smithy/hearth-schema": "^0.22.0"
33
33
  },
34
34
  "scripts": {
35
35
  "test": "node --test \"test/**/*.test.js\" && vitest run test/blocks.test.ts"
@@ -72,8 +72,9 @@ Keep the API key out of chat: the agent never needs to see it, only `.env.local`
72
72
  - Headings can mark words with `*asterisks*` to highlight them (the `emphasis` slot, and `hero.emphasis`).
73
73
  - To leave a block type out, ask for it to be turned off for the site in Hearth.
74
74
  - **SEO comes from Hearth.** Titles, descriptions, canonical addresses, share images, structured data, the
75
- sitemap, robots.txt, redirects for old addresses, Search Console verification and the page's language all come
76
- from Hearth (`siteMetadata`, `generatePageMetadata`, `sitemapWith`, `robots`, `redirectOrNotFound`). Preview deploys
75
+ sitemap, robots.txt, llms.txt (the summary AI tools read), redirects for old addresses, Search Console verification
76
+ and the page's language all come from Hearth (`siteMetadata`, `generatePageMetadata`, `sitemapWith`, `robots`,
77
+ `llmsTxtHandler`, `redirectOrNotFound`). Preview deploys
77
78
  and sites hidden in Hearth are kept out of search engines. What's still yours:
78
79
  - Pages your own code serves (like `/events`) need their own `generateMetadata` and a place in `src/app/sitemap.ts`.
79
80
  - Use `<Img priority>` for the image at the top of a page, and keep one `<h1>` per page (the Hero block renders it).
@@ -119,6 +120,7 @@ States are Tailwind variants inside the slot: `on-dark:` for blocks on an invers
119
120
  | `src/app/api/revalidate/route.ts` | Hearth calls this when something is published, so changes go live in seconds |
120
121
  | `src/app/api/preview/route.ts` | Opens drafts from Hearth's "Preview on the website"; `/api/preview/exit` ends it |
121
122
  | `src/app/sitemap.ts`, `robots.ts` | Generated from Hearth. Search engines stay out until the site's web address is set |
123
+ | `src/app/llms.txt/route.ts` | The site's summary for AI tools, generated from Hearth (not found until the site is live) |
122
124
 
123
125
  ## Deploying to Netlify
124
126
 
@@ -0,0 +1,7 @@
1
+ import { hearthNext } from "@/hearth/client";
2
+
3
+ /**
4
+ * The summary AI tools read (https://llmstxt.org): the organization, its contact details and hours, and every
5
+ * page search engines may list, with a line on each. Not found on preview deploys and while the site is hidden.
6
+ */
7
+ export const GET = hearthNext.llmsTxtHandler();
@@ -16,6 +16,7 @@
16
16
  "src/app/registered/page.tsx",
17
17
  "src/app/robots.ts",
18
18
  "src/app/sitemap.ts",
19
+ "src/app/llms.txt/route.ts",
19
20
  "src/app/api/preview/route.ts",
20
21
  "src/app/api/preview/exit/route.ts",
21
22
  "src/app/api/revalidate/route.ts",