@docusaurus/plugin-content-blog 3.10.1-canary-6655 → 3.10.2
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/assets/atom.css +1 -7
- package/assets/rss.css +1 -7
- package/lib/feed.js +2 -2
- package/lib/frontMatter.d.ts +0 -6
- package/lib/frontMatter.js +2 -3
- package/package.json +17 -17
- package/src/blogUtils.ts +1 -1
- package/src/client/sidebarUtils.test.ts +0 -1
- package/src/feed.ts +3 -3
- package/src/frontMatter.ts +0 -2
- package/src/plugin-content-blog.d.ts +2 -1
package/assets/atom.css
CHANGED
|
@@ -11,13 +11,7 @@ main {
|
|
|
11
11
|
margin: 2rem auto;
|
|
12
12
|
max-width: 800px;
|
|
13
13
|
/* stylelint-disable-next-line font-family-name-quotes */
|
|
14
|
-
font-family:
|
|
15
|
-
system-ui,
|
|
16
|
-
-apple-system,
|
|
17
|
-
'Segoe UI',
|
|
18
|
-
Roboto,
|
|
19
|
-
Ubuntu,
|
|
20
|
-
Cantarell;
|
|
14
|
+
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell;
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
.info {
|
package/assets/rss.css
CHANGED
|
@@ -11,13 +11,7 @@ main {
|
|
|
11
11
|
margin: 2rem auto;
|
|
12
12
|
max-width: 800px;
|
|
13
13
|
/* stylelint-disable-next-line font-family-name-quotes */
|
|
14
|
-
font-family:
|
|
15
|
-
system-ui,
|
|
16
|
-
-apple-system,
|
|
17
|
-
'Segoe UI',
|
|
18
|
-
Roboto,
|
|
19
|
-
Ubuntu,
|
|
20
|
-
Cantarell;
|
|
14
|
+
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell;
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
.info {
|
package/lib/feed.js
CHANGED
|
@@ -109,8 +109,8 @@ async function defaultCreateFeedItems({ blogPosts, siteConfig, outDir, }) {
|
|
|
109
109
|
async function resolveXsltFilePaths({ xsltFilePath, contentPaths, }) {
|
|
110
110
|
const xsltAbsolutePath = path_1.default.isAbsolute(xsltFilePath)
|
|
111
111
|
? xsltFilePath
|
|
112
|
-
: (
|
|
113
|
-
path_1.default.resolve(contentPaths.contentPath, xsltFilePath)
|
|
112
|
+
: (await (0, utils_1.getDataFilePath)({ filePath: xsltFilePath, contentPaths })) ??
|
|
113
|
+
path_1.default.resolve(contentPaths.contentPath, xsltFilePath);
|
|
114
114
|
if (!(await fs_extra_1.default.pathExists(xsltAbsolutePath))) {
|
|
115
115
|
throw new Error(logger_1.default.interpolate `Blog feed XSLT file not found at path=${path_1.default.relative(process.cwd(), xsltAbsolutePath)}`);
|
|
116
116
|
}
|
package/lib/frontMatter.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
1
|
import type { BlogPostFrontMatter } from '@docusaurus/plugin-content-blog';
|
|
8
2
|
export declare function validateBlogPostFrontMatter(frontMatter: {
|
|
9
3
|
[key: string]: unknown;
|
package/lib/frontMatter.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateBlogPostFrontMatter = validateBlogPostFrontMatter;
|
|
2
4
|
/**
|
|
3
5
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
6
|
*
|
|
5
7
|
* This source code is licensed under the MIT license found in the
|
|
6
8
|
* LICENSE file in the root directory of this source tree.
|
|
7
9
|
*/
|
|
8
|
-
/* eslint-disable camelcase */
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.validateBlogPostFrontMatter = validateBlogPostFrontMatter;
|
|
11
10
|
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
12
11
|
const authorsSocials_1 = require("./authorsSocials");
|
|
13
12
|
const BlogPostFrontMatterAuthorSchema = utils_validation_1.JoiFrontMatter.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-blog",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -31,37 +31,37 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@docusaurus/core": "3.10.
|
|
35
|
-
"@docusaurus/logger": "3.10.
|
|
36
|
-
"@docusaurus/mdx-loader": "3.10.
|
|
37
|
-
"@docusaurus/theme-common": "3.10.
|
|
38
|
-
"@docusaurus/types": "3.10.
|
|
39
|
-
"@docusaurus/utils": "3.10.
|
|
40
|
-
"@docusaurus/utils-common": "3.10.
|
|
41
|
-
"@docusaurus/utils-validation": "3.10.
|
|
42
|
-
"cheerio": "
|
|
34
|
+
"@docusaurus/core": "3.10.2",
|
|
35
|
+
"@docusaurus/logger": "3.10.2",
|
|
36
|
+
"@docusaurus/mdx-loader": "3.10.2",
|
|
37
|
+
"@docusaurus/theme-common": "3.10.2",
|
|
38
|
+
"@docusaurus/types": "3.10.2",
|
|
39
|
+
"@docusaurus/utils": "3.10.2",
|
|
40
|
+
"@docusaurus/utils-common": "3.10.2",
|
|
41
|
+
"@docusaurus/utils-validation": "3.10.2",
|
|
42
|
+
"cheerio": "1.0.0-rc.12",
|
|
43
43
|
"combine-promises": "^1.1.0",
|
|
44
44
|
"feed": "^4.2.2",
|
|
45
|
-
"fs-extra": "^11.
|
|
45
|
+
"fs-extra": "^11.1.1",
|
|
46
46
|
"lodash": "^4.17.21",
|
|
47
47
|
"schema-dts": "^1.1.2",
|
|
48
48
|
"srcset": "^4.0.0",
|
|
49
49
|
"tslib": "^2.6.0",
|
|
50
|
-
"unist-util-visit": "^5.
|
|
50
|
+
"unist-util-visit": "^5.0.0",
|
|
51
51
|
"utility-types": "^3.10.0",
|
|
52
|
-
"webpack": "^5.
|
|
52
|
+
"webpack": "^5.88.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@docusaurus/plugin-content-docs": "*",
|
|
56
|
-
"react": "^19.
|
|
57
|
-
"react-dom": "^19.
|
|
56
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
57
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
60
|
+
"node": ">=20.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
64
64
|
"tree-node-cli": "^1.6.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "f37f9035584917a97a260b91fc2842cba4f8b94f"
|
|
67
67
|
}
|
package/src/blogUtils.ts
CHANGED
package/src/feed.ts
CHANGED
|
@@ -196,8 +196,8 @@ async function resolveXsltFilePaths({
|
|
|
196
196
|
}) {
|
|
197
197
|
const xsltAbsolutePath: string = path.isAbsolute(xsltFilePath)
|
|
198
198
|
? xsltFilePath
|
|
199
|
-
: (
|
|
200
|
-
path.resolve(contentPaths.contentPath, xsltFilePath)
|
|
199
|
+
: (await getDataFilePath({filePath: xsltFilePath, contentPaths})) ??
|
|
200
|
+
path.resolve(contentPaths.contentPath, xsltFilePath);
|
|
201
201
|
|
|
202
202
|
if (!(await fs.pathExists(xsltAbsolutePath))) {
|
|
203
203
|
throw new Error(
|
|
@@ -323,7 +323,7 @@ async function createBlogFeedFile({
|
|
|
323
323
|
await fs.outputFile(outputPath, feedContent);
|
|
324
324
|
} catch (err) {
|
|
325
325
|
throw new Error(`Generating ${feedType} feed failed.`, {
|
|
326
|
-
cause: err,
|
|
326
|
+
cause: err as Error,
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
}
|
package/src/frontMatter.ts
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
/// <reference types="@docusaurus/module-type-aliases" />
|
|
8
8
|
|
|
9
9
|
declare module '@docusaurus/plugin-content-blog' {
|
|
10
|
-
import type {LoadedMDXContent
|
|
10
|
+
import type {LoadedMDXContent} from '@docusaurus/mdx-loader';
|
|
11
|
+
import type {MDXOptions} from '@docusaurus/mdx-loader';
|
|
11
12
|
import type {
|
|
12
13
|
FrontMatterTag,
|
|
13
14
|
TagMetadata,
|