@riebeckite/plugin-docs 0.0.51 → 0.1.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.md CHANGED
@@ -10,7 +10,7 @@ router or recalculating public URLs from filesystem paths.
10
10
 
11
11
  ## Live example
12
12
 
13
- This page is a Docs entry. The Documentation sidebar on the right, the previous/next links below the article, and the [Docs index](/docs/) all come from this plugin.
13
+ This page is a Docs entry. The Documentation sidebar on the left, the previous/next links below the article, and the [Docs index](/docs/) all come from this plugin.
14
14
 
15
15
  ## Installation
16
16
 
@@ -58,8 +58,8 @@ its own property instead of a JSON blob):
58
58
  - `sidebar.order` — explicit deterministic order. Missing values sort after ordered
59
59
  items by title and path.
60
60
  - `sidebar.hidden` — removes the page from sidebar and previous/next navigation.
61
- - `sidebar.collapsed` — exposes collapsed state through `data-docs-collapsed` for theme
62
- or client enhancement.
61
+ - `sidebar.collapsed` — initial collapsed state of the section. `<DocsSidebar>`
62
+ starts sections collapsed unless this is `false`.
63
63
 
64
64
  All fields are optional. A page without `sidebar.*` keys still appears in
65
65
  the navigation: the hierarchy follows the folder structure, the label falls back
@@ -93,7 +93,7 @@ outside-root content does not appear in the sidebar or previous/next sequence.
93
93
 
94
94
  ## Exports
95
95
 
96
- - `docs(options)` / `docs(options)` — plugin factory
96
+ - `docs(options)` — plugin factory
97
97
  - `buildDocsNavigation(entries, options)` — build the framework-independent model
98
98
  - `flattenDocsNavigation(items)` — derive the previous/next sequence
99
99
  - `renderDocsSidebar(...)` and `renderDocsPrevNext(...)` — server HTML renderers
package/README_ja.md CHANGED
@@ -10,7 +10,7 @@ Riebeckite の Markdown コンテンツから、Docs 用のサイドバーと前
10
10
 
11
11
  ## 実行例
12
12
 
13
- このページは Docs のエントリです。右側の Documentation サイドバー、記事下の前後リンク、[Docs の一覧](/ja/docs/) はすべてこのプラグインが生成しています。
13
+ このページは Docs のエントリです。左側の Documentation サイドバー、記事下の前後リンク、[Docs の一覧](/ja/docs/) はすべてこのプラグインが生成しています。
14
14
 
15
15
  ## インストール
16
16
 
@@ -56,7 +56,7 @@ Obsidian のプロパティパネルでもそれぞれ個別のプロパティ
56
56
  - `sidebar.label`: ナビゲーションに表示する名前。未指定なら `title`、さらに未指定ならファイル名。
57
57
  - `sidebar.order`: 明示的な並び順。指定のない項目は、`order` を持つ項目の後に、タイトル、パスの順で並びます。
58
58
  - `sidebar.hidden`: サイドバーと前後ページリンクから除外します。
59
- - `sidebar.collapsed`: Theme やクライアント側の拡張で使えるよう、`data-docs-collapsed` として出力します。
59
+ - `sidebar.collapsed`: セクションの初期折り畳み状態。`<DocsSidebar>` は、この値が `false` でない限りセクションを折り畳んだ状態で表示します。
60
60
 
61
61
  これらのフィールドはすべて任意です。`sidebar.*` キーのないページも
62
62
  ナビゲーションに表示されます。階層はフォルダ構造に従い、ラベルは `title`、
@@ -86,7 +86,7 @@ Obsidian のプロパティパネルでもそれぞれ個別のプロパティ
86
86
 
87
87
  ## エクスポート
88
88
 
89
- - `docs(options)` / `docs(options)`: プラグインファクトリ
89
+ - `docs(options)`: プラグインファクトリ
90
90
  - `buildDocsNavigation(entries, options)`: フレームワークに依存しないナビゲーションモデル
91
91
  - `flattenDocsNavigation(items)`: 前後ページリンク用の並び
92
92
  - `renderDocsSidebar(...)` / `renderDocsPrevNext(...)`: サーバー側の HTML レンダラー
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-docs",
3
- "version": "0.0.51",
3
+ "version": "0.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,16 +28,16 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "hono": "^4.13.18",
31
- "@riebeckite/ui": "0.0.51",
32
- "@riebeckite/plugin-navigation": "0.0.51"
31
+ "@riebeckite/ui": "0.1.0",
32
+ "@riebeckite/plugin-navigation": "0.1.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@riebeckite/core": "^0.0.51"
35
+ "@riebeckite/core": "^0.1.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "tsx": "^4.22.4",
39
- "@riebeckite/core": "0.0.51",
40
- "@riebeckite/test": "0.0.51"
39
+ "@riebeckite/core": "0.1.0",
40
+ "@riebeckite/test": "0.1.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"