@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 +2 -0
- package/README_ja.md +2 -0
- package/dist/index.js +8 -3
- package/package.json +4 -4
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
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 }) =>
|
|
344
|
-
|
|
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.
|
|
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.
|
|
17
|
+
"@riebeckite/core": "0.0.23"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"tsx": "^4.22.4",
|
|
21
|
-
"@riebeckite/plugin-l10n": "0.0.
|
|
22
|
-
"@riebeckite/plugin-taxonomy": "0.0.
|
|
21
|
+
"@riebeckite/plugin-l10n": "0.0.23",
|
|
22
|
+
"@riebeckite/plugin-taxonomy": "0.0.23"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|