blume 1.2.1 → 1.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/CHANGELOG.md +37 -0
- package/dist/cli/index.js +1680 -534
- package/dist/cli/index.js.map +37 -28
- package/dist/types/core/config-input.d.ts +131 -11
- package/dist/types/core/config.d.ts +9 -1
- package/dist/types/core/data.d.ts +24 -5
- package/dist/types/core/i18n-ui.d.ts +58 -799
- package/dist/types/core/schema.d.ts +534 -3305
- package/dist/types/theme/fonts.d.ts +55 -11
- package/docs/02-deployment.mdx +2 -0
- package/docs/07-faq.mdx +14 -14
- package/docs/advanced/skills.mdx +2 -2
- package/docs/configuration/ai.mdx +126 -2
- package/docs/configuration/index.mdx +19 -1
- package/docs/configuration/search.mdx +2 -0
- package/docs/configuration/seo.mdx +26 -3
- package/docs/configuration/theming.mdx +44 -2
- package/docs/content/syntax.mdx +18 -2
- package/docs/reference/cli.mdx +3 -3
- package/package.json +9 -8
- package/skills/blume/SKILL.md +6 -4
- package/skills/blume-migrate/SKILL.md +5 -3
- package/skills/blume-migrate/references/mintlify.md +5 -5
- package/skills/blume-migrate/references/monorepo.md +2 -1
- package/src/ai/agent-readability.ts +31 -1
- package/src/ai/api-catalog.ts +81 -0
- package/src/ai/link-headers.ts +52 -0
- package/src/ai/llms.ts +12 -1
- package/src/ai/markdown.ts +15 -2
- package/src/ai/mcp/discovery.ts +70 -15
- package/src/ai/mcp/server.ts +5 -4
- package/src/ai/skills.ts +193 -0
- package/src/ai/tar.ts +104 -0
- package/src/ai/web-bot-auth.ts +30 -0
- package/src/astro/generate.ts +116 -6
- package/src/astro/integration.ts +52 -14
- package/src/astro/templates.ts +176 -33
- package/src/audit/catalog.ts +20 -0
- package/src/audit/checks/dns-aid.ts +190 -0
- package/src/audit/report.ts +5 -0
- package/src/audit/run.ts +2 -0
- package/src/cli/commands/build.ts +178 -9
- package/src/cli/init/scaffold.ts +1 -1
- package/src/components/islands/ask-ai.tsx +4 -1
- package/src/components/islands/webmcp.ts +203 -0
- package/src/components/layout/PageLayout.astro +2 -0
- package/src/components/layout/ReferenceLayout.astro +2 -0
- package/src/components/layout/RootLayout.astro +62 -10
- package/src/components/layout/Search.astro +2 -2
- package/src/components/layout/WebMcp.astro +49 -0
- package/src/core/config-input.ts +143 -11
- package/src/core/config.ts +17 -1
- package/src/core/content-assets.ts +199 -0
- package/src/core/data.ts +21 -5
- package/src/core/diagnostics.ts +6 -5
- package/src/core/i18n-ui.ts +19 -28
- package/src/core/project-graph.ts +6 -0
- package/src/core/schema.ts +224 -71
- package/src/core/sources/normalize.ts +5 -5
- package/src/deploy/headers.ts +45 -3
- package/src/deploy/vercel-negotiation.ts +233 -0
- package/src/markdown/mermaid.ts +7 -1
- package/src/markdown/table-wrap.ts +33 -1
- package/src/og/card.ts +91 -22
- package/src/og/derive.ts +200 -0
- package/src/og/index.ts +6 -1
- package/src/search/orama-index.ts +98 -4
- package/src/theme/entry.ts +34 -13
- package/src/theme/fonts.ts +183 -30
- package/dist/types/og/card.d.ts +0 -63
- package/dist/types/og/dimensions.d.ts +0 -12
package/dist/types/og/card.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { RenderOptions } from "takumi-js";
|
|
2
|
-
/**
|
|
3
|
-
* A Google Font family to load into the OG card renderer. A bare string is the
|
|
4
|
-
* family name (weight 400, normal style); the object form pins weight and style.
|
|
5
|
-
* Handed straight to Takumi's `googleFonts` helper, which fetches the family
|
|
6
|
-
* from Google Fonts at build and returns per-glyph coverage subsets.
|
|
7
|
-
*/
|
|
8
|
-
export type OgFont = string | {
|
|
9
|
-
/** Google Fonts family name, e.g. `"Noto Sans JP"`. */
|
|
10
|
-
name: string;
|
|
11
|
-
/** `400`, `[400, 700]`, or a variable range like `"100..900"`. */
|
|
12
|
-
weight?: number | number[] | string;
|
|
13
|
-
/** `"normal"`, `"italic"`, or both. */
|
|
14
|
-
style?: "normal" | "italic" | ("normal" | "italic")[];
|
|
15
|
-
};
|
|
16
|
-
export interface OgCardPalette {
|
|
17
|
-
accent?: string;
|
|
18
|
-
background?: string;
|
|
19
|
-
border?: string;
|
|
20
|
-
foreground?: string;
|
|
21
|
-
muted?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface OgCardOptions {
|
|
24
|
-
/** Large headline — the page title. */
|
|
25
|
-
title: string;
|
|
26
|
-
/** Accent color (named preset or any CSS color) for the fallback brand mark. */
|
|
27
|
-
accent?: string;
|
|
28
|
-
/** Brand/site name shown in the top-left lockup. */
|
|
29
|
-
brand?: string;
|
|
30
|
-
/** Muted subtitle under the headline (usually the site description). */
|
|
31
|
-
description?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Inlined SVG markup of the configured logo, painted into
|
|
34
|
-
* the brand lockup. Falls back to an accent mark when absent.
|
|
35
|
-
*/
|
|
36
|
-
logo?: string;
|
|
37
|
-
/** Optional colors for the generated card. */
|
|
38
|
-
palette?: OgCardPalette;
|
|
39
|
-
/** Footer-left repository slug, e.g. `owner/repo`. */
|
|
40
|
-
repo?: string;
|
|
41
|
-
/** Footer-right site host, e.g. `docs.acme.com`. */
|
|
42
|
-
site?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Pre-fetched image entries, or a group controlling how remote images (and
|
|
45
|
-
* emoji glyphs) are fetched. Blume merges in a shared glyph cache; see
|
|
46
|
-
* {@link resolveImages}.
|
|
47
|
-
*/
|
|
48
|
-
images?: RenderOptions["images"];
|
|
49
|
-
/**
|
|
50
|
-
* Google Font families for non-Latin titles. Takumi's built-in font covers
|
|
51
|
-
* only Latin, so a CJK (etc.) title renders as tofu without a family that
|
|
52
|
-
* covers its script — see {@link loadFonts}.
|
|
53
|
-
*/
|
|
54
|
-
fonts?: OgFont[];
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Truncate to `max` code points with an ellipsis. Slices by code points, not
|
|
58
|
-
* UTF-16 units, so cutting mid-emoji doesn't leave a lone surrogate (a broken
|
|
59
|
-
* glyph) before the ellipsis.
|
|
60
|
-
*/
|
|
61
|
-
export declare const truncate: (value: string, max: number) => string;
|
|
62
|
-
/** Render a 1200x630 Open Graph card to a PNG buffer. */
|
|
63
|
-
export declare const renderOgImage: (options: OgCardOptions) => Promise<Uint8Array>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dimensions of a generated OG card, shared by the renderer (`card.ts`) and the
|
|
3
|
-
* layouts that declare them as `og:image:width`/`og:image:height` so a crawler
|
|
4
|
-
* can lay out the card without fetching the PNG first.
|
|
5
|
-
*
|
|
6
|
-
* This lives apart from `card.ts` because that module imports the Takumi native
|
|
7
|
-
* binding at load; a layout importing it would drag the renderer into every
|
|
8
|
-
* page render (and into the prerender/SSR bundles that externalize it).
|
|
9
|
-
*/
|
|
10
|
-
export declare const OG_IMAGE_WIDTH = 1200;
|
|
11
|
-
export declare const OG_IMAGE_HEIGHT = 630;
|
|
12
|
-
export declare const OG_IMAGE_TYPE = "image/png";
|