@riebeckite/plugin-article-metadata 0.0.38 → 0.0.40

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.
Files changed (3) hide show
  1. package/README.md +17 -0
  2. package/README_ja.md +17 -0
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -11,6 +11,23 @@ article context.
11
11
 
12
12
  The line under this page's title — publication date and reading time — is rendered here. The `<time>` element carries the machine-readable date. Tags appear as well when the note has any.
13
13
 
14
+ ## Installation
15
+
16
+ ```sh
17
+ npm install @riebeckite/plugin-article-metadata
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```ts
23
+ import { defineConfig } from "@riebeckite/core";
24
+ import { articleMetadata } from "@riebeckite/plugin-article-metadata";
25
+
26
+ export default defineConfig({
27
+ plugins: [articleMetadata()],
28
+ });
29
+ ```
30
+
14
31
  ## Overview
15
32
 
16
33
  `articleMetadata()` registers the component stylesheet. It does not add
package/README_ja.md CHANGED
@@ -26,6 +26,23 @@ import ArticleMetadata from "@riebeckite/plugin-article-metadata/components";
26
26
 
27
27
  タグのリンクはタクソノミープラグインの解決済み設定を使うため、独自の `tagsBasePath` にも追随します。タグページが無効な場合はタグをテキストで表示します。サイトコンテキストがない場合もテキスト表示です。
28
28
 
29
+ ## インストール
30
+
31
+ ```sh
32
+ npm install @riebeckite/plugin-article-metadata
33
+ ```
34
+
35
+ ## 使い方
36
+
37
+ ```ts
38
+ import { defineConfig } from "@riebeckite/core";
39
+ import { articleMetadata } from "@riebeckite/plugin-article-metadata";
40
+
41
+ export default defineConfig({
42
+ plugins: [articleMetadata()],
43
+ });
44
+ ```
45
+
29
46
  ## オプション
30
47
 
31
48
  | Prop | 既定値 | 説明 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-article-metadata",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,9 +21,9 @@
21
21
  "./style.css": "./style.css"
22
22
  },
23
23
  "dependencies": {
24
- "@riebeckite/core": "0.0.38",
25
- "@riebeckite/plugin-taxonomy": "0.0.38",
26
- "@riebeckite/ui": "0.0.38",
24
+ "@riebeckite/core": "0.0.40",
25
+ "@riebeckite/plugin-taxonomy": "0.0.40",
26
+ "@riebeckite/ui": "0.0.40",
27
27
  "hono": "^4.12.25"
28
28
  },
29
29
  "files": [