@docusaurus/plugin-content-blog 0.0.0-4784 → 0.0.0-4788
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/lib/feed.js +1 -1
- package/package.json +9 -9
- package/src/feed.ts +1 -5
package/lib/feed.js
CHANGED
|
@@ -73,7 +73,7 @@ async function createBlogFeedFile({ feed, feedType, generatePath, }) {
|
|
|
73
73
|
}
|
|
74
74
|
})();
|
|
75
75
|
try {
|
|
76
|
-
await fs_extra_1.default.outputFile(
|
|
76
|
+
await fs_extra_1.default.outputFile(path_1.default.join(generatePath, feedPath), feedContent);
|
|
77
77
|
}
|
|
78
78
|
catch (err) {
|
|
79
79
|
throw new Error(`Generating ${feedType} feed failed: ${err}.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-blog",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4788",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/logger": "0.0.0-
|
|
23
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
24
|
-
"@docusaurus/utils": "0.0.0-
|
|
25
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
26
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-4788",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-4788",
|
|
23
|
+
"@docusaurus/mdx-loader": "0.0.0-4788",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-4788",
|
|
25
|
+
"@docusaurus/utils-common": "0.0.0-4788",
|
|
26
|
+
"@docusaurus/utils-validation": "0.0.0-4788",
|
|
27
27
|
"cheerio": "^1.0.0-rc.10",
|
|
28
28
|
"feed": "^4.2.2",
|
|
29
29
|
"fs-extra": "^10.0.1",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"webpack": "^5.70.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@docusaurus/types": "0.0.0-
|
|
38
|
+
"@docusaurus/types": "0.0.0-4788",
|
|
39
39
|
"escape-string-regexp": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=14"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "880b995e4b33e050d1e6cb2bcbe5058ee6fd8cbd"
|
|
49
49
|
}
|
package/src/feed.ts
CHANGED
|
@@ -9,7 +9,6 @@ import {Feed, type Author as FeedAuthor, type Item as FeedItem} from 'feed';
|
|
|
9
9
|
import type {BlogPost} from './types';
|
|
10
10
|
import {
|
|
11
11
|
normalizeUrl,
|
|
12
|
-
posixPath,
|
|
13
12
|
mapAsyncSequential,
|
|
14
13
|
readOutputHTMLFile,
|
|
15
14
|
} from '@docusaurus/utils';
|
|
@@ -128,10 +127,7 @@ async function createBlogFeedFile({
|
|
|
128
127
|
}
|
|
129
128
|
})();
|
|
130
129
|
try {
|
|
131
|
-
await fs.outputFile(
|
|
132
|
-
posixPath(path.join(generatePath, feedPath)),
|
|
133
|
-
feedContent,
|
|
134
|
-
);
|
|
130
|
+
await fs.outputFile(path.join(generatePath, feedPath), feedContent);
|
|
135
131
|
} catch (err) {
|
|
136
132
|
throw new Error(`Generating ${feedType} feed failed: ${err}.`);
|
|
137
133
|
}
|