@riebeckite/plugin-folder-pages 0.0.21 → 0.0.23

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
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/plugin-folder-pages
2
2
 
3
+ <!-- Generated from docs/docs/plugins/folder-pages.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  [日本語](./README_ja.md)
4
6
 
5
7
  Folder Page support for Riebeckite. The plugin turns folder entry notes into the
package/README_ja.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/plugin-folder-pages
2
2
 
3
+ <!-- Generated from docs/docs/plugins/folder-pages.ja.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  [English](./README.md)
4
6
 
5
7
  Riebeckite の Folder Page を提供するプラグインです。フォルダの入口ノートを
package/dist/index.js CHANGED
@@ -340,9 +340,14 @@ function folderPages(options = {}) {
340
340
  id: "folder-page",
341
341
  directoryIndex: true,
342
342
  paths: ({ manifest }) => modelFor(manifest).paths,
343
- outputDependencies: ({ manifest, pathname }) => modelFor(manifest).byPath.get(pathname)?.dependencies ?? [
344
- { type: "unknown" }
345
- ],
343
+ outputDependencies: ({ manifest, pathname }) => {
344
+ const dependencies = modelFor(manifest).byPath.get(pathname)?.dependencies;
345
+ return dependencies ? [
346
+ ...dependencies,
347
+ { type: "projection", projection: "navigation" },
348
+ { type: "projection", projection: "recent-posts" }
349
+ ] : [{ type: "unknown" }];
350
+ },
346
351
  resolve: ({ manifest, pathname }) => {
347
352
  const page = modelFor(manifest).byPath.get(pathname);
348
353
  if (!page) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-folder-pages",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -14,12 +14,12 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@riebeckite/core": "0.0.21"
17
+ "@riebeckite/core": "0.0.23"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsx": "^4.22.4",
21
- "@riebeckite/plugin-l10n": "0.0.21",
22
- "@riebeckite/plugin-taxonomy": "0.0.21"
21
+ "@riebeckite/plugin-l10n": "0.0.23",
22
+ "@riebeckite/plugin-taxonomy": "0.0.23"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"