@docusaurus/plugin-content-blog 3.9.2-canary-6445 → 3.9.2-canary-6447
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/blogUtils.js +2 -0
- package/lib/index.js +3 -0
- package/package.json +10 -10
- package/src/blogUtils.ts +2 -0
- package/src/index.ts +3 -0
package/lib/blogUtils.js
CHANGED
|
@@ -256,6 +256,8 @@ async function generateBlogPosts(contentPaths, context, options, authorsMap) {
|
|
|
256
256
|
cwd: contentPaths.contentPath,
|
|
257
257
|
ignore: exclude,
|
|
258
258
|
});
|
|
259
|
+
// TODO this should be done outside of this function
|
|
260
|
+
// directly in plugin loadContent()
|
|
259
261
|
const tagsFile = await (0, utils_validation_1.getTagsFile)({ contentPaths, tags: options.tags });
|
|
260
262
|
async function doProcessBlogSourceFile(blogSourceFile) {
|
|
261
263
|
try {
|
package/lib/index.js
CHANGED
|
@@ -192,6 +192,9 @@ async function pluginContentBlog(context, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
+
// TODO this is not the correct place to aggregate and paginate tags
|
|
196
|
+
// for reasons similar to https://github.com/facebook/docusaurus/pull/11562
|
|
197
|
+
// What we should do here is only read the tags file (similar to authors)
|
|
195
198
|
const blogTags = (0, blogUtils_1.getBlogTags)({
|
|
196
199
|
blogPosts,
|
|
197
200
|
postsPerPageOption,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-blog",
|
|
3
|
-
"version": "3.9.2-canary-
|
|
3
|
+
"version": "3.9.2-canary-6447",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@docusaurus/core": "3.9.2-canary-
|
|
35
|
-
"@docusaurus/logger": "3.9.2-canary-
|
|
36
|
-
"@docusaurus/mdx-loader": "3.9.2-canary-
|
|
37
|
-
"@docusaurus/theme-common": "3.9.2-canary-
|
|
38
|
-
"@docusaurus/types": "3.9.2-canary-
|
|
39
|
-
"@docusaurus/utils": "3.9.2-canary-
|
|
40
|
-
"@docusaurus/utils-common": "3.9.2-canary-
|
|
41
|
-
"@docusaurus/utils-validation": "3.9.2-canary-
|
|
34
|
+
"@docusaurus/core": "3.9.2-canary-6447",
|
|
35
|
+
"@docusaurus/logger": "3.9.2-canary-6447",
|
|
36
|
+
"@docusaurus/mdx-loader": "3.9.2-canary-6447",
|
|
37
|
+
"@docusaurus/theme-common": "3.9.2-canary-6447",
|
|
38
|
+
"@docusaurus/types": "3.9.2-canary-6447",
|
|
39
|
+
"@docusaurus/utils": "3.9.2-canary-6447",
|
|
40
|
+
"@docusaurus/utils-common": "3.9.2-canary-6447",
|
|
41
|
+
"@docusaurus/utils-validation": "3.9.2-canary-6447",
|
|
42
42
|
"cheerio": "1.0.0-rc.12",
|
|
43
43
|
"feed": "^4.2.2",
|
|
44
44
|
"fs-extra": "^11.1.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
63
63
|
"tree-node-cli": "^1.6.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "4e8e951f5bc8f9e58d839ead1a48a3b234ba91f6"
|
|
66
66
|
}
|
package/src/blogUtils.ts
CHANGED
|
@@ -401,6 +401,8 @@ export async function generateBlogPosts(
|
|
|
401
401
|
ignore: exclude,
|
|
402
402
|
});
|
|
403
403
|
|
|
404
|
+
// TODO this should be done outside of this function
|
|
405
|
+
// directly in plugin loadContent()
|
|
404
406
|
const tagsFile = await getTagsFile({contentPaths, tags: options.tags});
|
|
405
407
|
|
|
406
408
|
async function doProcessBlogSourceFile(blogSourceFile: string) {
|
package/src/index.ts
CHANGED
|
@@ -289,6 +289,9 @@ export default async function pluginContentBlog(
|
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
|
|
292
|
+
// TODO this is not the correct place to aggregate and paginate tags
|
|
293
|
+
// for reasons similar to https://github.com/facebook/docusaurus/pull/11562
|
|
294
|
+
// What we should do here is only read the tags file (similar to authors)
|
|
292
295
|
const blogTags: BlogTags = getBlogTags({
|
|
293
296
|
blogPosts,
|
|
294
297
|
postsPerPageOption,
|