@rspress/plugin-rss 2.0.0-beta.1 → 2.0.0-beta.11
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
package/dist/index.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__ from "@rspress/shared/node-utils";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_feed__ from "feed";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
|
5
6
|
function notNullish(n) {
|
@@ -152,7 +153,7 @@ class FeedsSet {
|
|
152
153
|
]).map((options)=>({
|
153
154
|
title: config.title || '',
|
154
155
|
description: config.description || '',
|
155
|
-
favicon: config.icon && (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.resolve)(siteUrl, config.icon),
|
156
|
+
favicon: config.icon && (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.resolve)(siteUrl, (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__.getIconUrlPath)(config.icon)),
|
156
157
|
copyright: config.themeConfig?.footer?.message || '',
|
157
158
|
link: siteUrl,
|
158
159
|
docs: '',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-rss",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.11",
|
4
4
|
"description": "A plugin for rss generation for rspress",
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
6
6
|
"repository": {
|
@@ -25,19 +25,19 @@
|
|
25
25
|
],
|
26
26
|
"dependencies": {
|
27
27
|
"feed": "^4.2.2",
|
28
|
-
"@rspress/shared": "2.0.0-beta.
|
28
|
+
"@rspress/shared": "2.0.0-beta.11"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"@rslib/core": "0.
|
32
|
-
"@types/node": "^
|
33
|
-
"@types/react": "^
|
31
|
+
"@rslib/core": "0.8.0",
|
32
|
+
"@types/node": "^22.8.1",
|
33
|
+
"@types/react": "^19.1.6",
|
34
34
|
"react": "^19.1.0",
|
35
|
-
"rsbuild-plugin-publint": "^0.3.
|
35
|
+
"rsbuild-plugin-publint": "^0.3.2",
|
36
36
|
"typescript": "^5.8.2",
|
37
|
-
"@rspress/runtime": "2.0.0-beta.
|
37
|
+
"@rspress/runtime": "2.0.0-beta.11"
|
38
38
|
},
|
39
39
|
"peerDependencies": {
|
40
|
-
"rspress": "^2.0.0-beta.
|
40
|
+
"rspress": "^2.0.0-beta.11"
|
41
41
|
},
|
42
42
|
"engines": {
|
43
43
|
"node": ">=18.0.0"
|
@@ -1,14 +1,14 @@
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
2
2
|
|
3
3
|
import type { LinkHTMLAttributes } from 'react';
|
4
|
-
import {
|
4
|
+
import { Head, usePageData } from 'rspress/runtime';
|
5
5
|
|
6
6
|
export default function FeedsAnnotations() {
|
7
7
|
const { page } = usePageData();
|
8
8
|
const feeds = page.feeds || [];
|
9
9
|
|
10
10
|
return (
|
11
|
-
<
|
11
|
+
<Head>
|
12
12
|
{feeds.map(({ language, url, mime }) => {
|
13
13
|
const props: LinkHTMLAttributes<HTMLLinkElement> = {
|
14
14
|
rel: 'alternate',
|
@@ -21,6 +21,6 @@ export default function FeedsAnnotations() {
|
|
21
21
|
// biome-ignore lint/correctness/useJsxKeyInIterable: no key props
|
22
22
|
return <link {...props} />;
|
23
23
|
})}
|
24
|
-
</
|
24
|
+
</Head>
|
25
25
|
);
|
26
26
|
}
|