@matra/site-generation 0.3.0 → 0.4.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/README.ja.md CHANGED
@@ -87,8 +87,7 @@ console.log(`Generated ${outputs.length} files`)
87
87
 
88
88
  両APIはlayout、asset、base path、再利用可能なMatra部品に対応します。
89
89
  Matra部品は`fn Name(props, children) { ... }`で定義し、単一の文書nodeを返します。
90
- 子要素なしの呼び出しは`Name(props, [])`と書きます。第2引数の省略には、公開済みの
91
- Core `0.3.1`より新しいruntimeが必要です。
90
+ 子要素なしの呼び出しは`Name(props)`または`Name(props, [])`と書きます。
92
91
  設定schema、入力規則、部品の動作、出力保証の詳細は
93
92
  [サイト生成の契約](../../spec/site-generation.ja.md)を参照してください。
94
93
 
@@ -98,7 +97,7 @@ HTML出力では子要素の配列を再帰的に平坦化するため、条件
98
97
 
99
98
  ## Markdownとブログの出力
100
99
 
101
- 既定のMarkdown変換はそのままです。site-generation `0.3.x`で、サイトに`npm install @matra/markdown-unified@^0.1.2`し、
100
+ 既定のMarkdown変換はそのままです。site-generation `0.4.x`で、サイトに`npm install @matra/markdown-unified@^0.1.3`し、
102
101
  `markdown: "unified"`(ファイル設定では`site.markdown`)を指定すると、
103
102
  YAML frontmatter・GFM・数式(MathML)・見出しID・目次・抜粋を利用できます。
104
103
  目次は`page.data.toc`、抜粋は`page.data.excerpt`から参照できます。
package/README.md CHANGED
@@ -90,8 +90,7 @@ link validation, page data and content, routes, and output management are unaffe
90
90
 
91
91
  Both APIs support layouts, assets, a base path, and reusable Matra components.
92
92
  Matra components are defined as `fn Name(props, children) { ... }` and return
93
- one document node. Use `Name(props, [])` when there are no children; omitting the
94
- second argument requires a newer Core runtime than the published `0.3.1`. See the
93
+ one document node. Use `Name(props)` or `Name(props, [])` when there are no children. See the
95
94
  [site-generation contract](../../spec/site-generation.md)
96
95
  for the complete configuration schema, input rules, component behavior, and
97
96
  output guarantees.
@@ -103,7 +102,7 @@ The document value retains its array structure, but child arrays previously rend
103
102
  ## Markdown and blog outputs
104
103
 
105
104
  The default Markdown behavior is unchanged. For frontmatter, GFM, math, heading IDs, TOC and
106
- excerpts, use site-generation `0.3.x` and install the [optional unified preset](../markdown-unified/README.md) (`@matra/markdown-unified@^0.1.2`) in the site
105
+ excerpts, use site-generation `0.4.x` and install the [optional unified preset](../markdown-unified/README.md) (`@matra/markdown-unified@^0.1.3`) in the site
107
106
  and set `markdown: "unified"` (under `site` in file configuration).
108
107
  `generateSite({ markdown: async ({ body, document, metadata }) => ..., ... })` also accepts a
109
108
  custom hook returning a node sequence or `{ content: nodes, data: derivedFields }`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matra/site-generation",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Declarative static site generation for Matra",
5
5
  "type": "module",
6
6
  "exports": {
@@ -10,8 +10,8 @@
10
10
  "src"
11
11
  ],
12
12
  "dependencies": {
13
- "@matra/core": "^0.3.1",
14
- "@matra/html": "^0.4.0",
13
+ "@matra/core": "^0.4.0",
14
+ "@matra/html": "^0.4.1",
15
15
  "js-yaml": "^5.2.2",
16
16
  "markdown-it": "^14.3.0"
17
17
  },