@ingram-tech/nk-blog 0.1.7 → 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/README.md +11 -11
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @ingram-tech/nk-blog
|
|
2
2
|
|
|
3
|
-
File-based blogs for Next.js
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
File-based blogs for Next.js: one frontmatter contract, a build-time reader,
|
|
4
|
+
`.md`/limited-`.mdx` rendering, a typed component vocabulary with unstyled
|
|
5
|
+
defaults, GitHub read/publish for automated publishers, and RSS.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
`posts.json
|
|
7
|
+
The files are the index. Posts are `content/blog/<slug>.md` (or `.mdx`, or
|
|
8
|
+
`<slug>/index.mdx` folders) with YAML frontmatter. There is no generated
|
|
9
|
+
`posts.json` and no metadata-extraction script.
|
|
10
10
|
|
|
11
11
|
## Entry points
|
|
12
12
|
|
|
@@ -31,7 +31,7 @@ export const blog = createBlog({
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
```tsx
|
|
34
|
-
// src/lib/blog-components.tsx — the site's
|
|
34
|
+
// src/lib/blog-components.tsx — the site's component vocabulary
|
|
35
35
|
import { defineBlogComponents } from "@ingram-tech/nk-blog";
|
|
36
36
|
import { unstyled } from "@ingram-tech/nk-blog/unstyled";
|
|
37
37
|
|
|
@@ -68,11 +68,11 @@ export default async function Post({ params }: PageProps<"/blog/[slug]">) {
|
|
|
68
68
|
else. `render` enforces this in the AST (`remarkLimitedMdx`): no ESM, no
|
|
69
69
|
`{…}` expressions, literal props only. Automated publishers emit `.md` (pure
|
|
70
70
|
data) and validate `.mdx` with `validateLimitedMdx` before committing.
|
|
71
|
-
- **Tier-2
|
|
72
|
-
|
|
71
|
+
- **Tier-2 posts** are folders with a human-reviewed `components.tsx`, passed
|
|
72
|
+
via `bespoke`, which relaxes the AST enforcement.
|
|
73
73
|
- **No pixels in this package.** The unstyled defaults carry semantics and
|
|
74
|
-
behavior only and accept no visual props beyond `className`.
|
|
75
|
-
|
|
74
|
+
behavior only and accept no visual props beyond `className`. For variation,
|
|
75
|
+
replace the component in your registry; never add props here.
|
|
76
76
|
- **Build-time only.** `fsSource` runs under `generateStaticParams` /
|
|
77
77
|
`dynamicParams = false`; serverless functions must not read post files at
|
|
78
78
|
request time (output tracing won't include them).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ingram-tech/nk-blog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "File-based blog foundation for Next.js sites: frontmatter schema, build-time reader, limited-MDX rendering, a typed component contract with unstyled defaults, GitHub read/publish, and RSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ingram-tech/nk-seo": "^0.
|
|
46
|
+
"@ingram-tech/nk-seo": "^0.10.1",
|
|
47
47
|
"@mdx-js/mdx": "^3.1.1",
|
|
48
48
|
"gray-matter": "^4.0.3",
|
|
49
49
|
"react-markdown": "^10.1.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@ingram-tech/nk-dev": "0.13.
|
|
67
|
+
"@ingram-tech/nk-dev": "0.13.1",
|
|
68
68
|
"@types/mdast": "^4.0.4",
|
|
69
69
|
"@types/node": "^26.2.0",
|
|
70
70
|
"@types/react": "^19.2.18",
|