@docusaurus/plugin-content-blog 0.0.0-4789 → 0.0.0-4791
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/package.json +9 -9
- package/src/plugin-content-blog.d.ts +18 -45
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-4791",
|
|
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-4791",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-4791",
|
|
23
|
+
"@docusaurus/mdx-loader": "0.0.0-4791",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-4791",
|
|
25
|
+
"@docusaurus/utils-common": "0.0.0-4791",
|
|
26
|
+
"@docusaurus/utils-validation": "0.0.0-4791",
|
|
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-4791",
|
|
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": "9da6c653971be375ee68fd6eae6a4e09551c3a5f"
|
|
49
49
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
declare module '@docusaurus/plugin-content-blog' {
|
|
9
|
-
import type {
|
|
10
|
-
import type {FrontMatterTag} from '@docusaurus/utils';
|
|
9
|
+
import type {MDXOptions} from '@docusaurus/mdx-loader';
|
|
10
|
+
import type {FrontMatterTag, Tag} from '@docusaurus/utils';
|
|
11
11
|
import type {Overwrite} from 'utility-types';
|
|
12
12
|
|
|
13
13
|
export interface Assets {
|
|
@@ -81,10 +81,7 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
81
81
|
* @see {@link BlogPostMetadata.tags}
|
|
82
82
|
*/
|
|
83
83
|
tags?: FrontMatterTag[];
|
|
84
|
-
/**
|
|
85
|
-
* Custom slug appended after /<baseUrl>/<routeBasePath>/
|
|
86
|
-
* @see {@link BlogPostMetadata.slug}
|
|
87
|
-
*/
|
|
84
|
+
/** Custom slug appended after `/<baseUrl>/<routeBasePath>/` */
|
|
88
85
|
slug?: string;
|
|
89
86
|
/**
|
|
90
87
|
* Marks the post as draft and excludes it from the production build.
|
|
@@ -130,25 +127,18 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
130
127
|
/** @deprecated v1 legacy */
|
|
131
128
|
authorImageURL?: string;
|
|
132
129
|
|
|
133
|
-
/**
|
|
134
|
-
* @see {@link BlogPostMetadata.image}
|
|
135
|
-
*/
|
|
130
|
+
/** Used in the head meta. Should use `assets.image` in priority. */
|
|
136
131
|
image?: string;
|
|
137
|
-
/**
|
|
138
|
-
* Used in the head meta
|
|
139
|
-
*/
|
|
132
|
+
/** Used in the head meta. */
|
|
140
133
|
keywords?: string[];
|
|
141
|
-
/**
|
|
142
|
-
* Hide the right TOC
|
|
143
|
-
*/
|
|
134
|
+
/** Hide the right TOC. */
|
|
144
135
|
hide_table_of_contents?: boolean;
|
|
145
136
|
/**
|
|
146
|
-
* Minimum TOC heading level
|
|
137
|
+
* Minimum TOC heading level. Must be between 2 and 6 and lower or equal to
|
|
138
|
+
* the max value.
|
|
147
139
|
*/
|
|
148
140
|
toc_min_heading_level?: number;
|
|
149
|
-
/**
|
|
150
|
-
* Maximum TOC heading level
|
|
151
|
-
*/
|
|
141
|
+
/** Maximum TOC heading level. Must be between 2 and 6. */
|
|
152
142
|
toc_max_heading_level?: number;
|
|
153
143
|
};
|
|
154
144
|
|
|
@@ -175,9 +165,7 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
175
165
|
| (string | BlogPostFrontMatterAuthor)[];
|
|
176
166
|
|
|
177
167
|
export type BlogPostMetadata = {
|
|
178
|
-
/**
|
|
179
|
-
* Path to the Markdown source, with `@site` alias.
|
|
180
|
-
*/
|
|
168
|
+
/** Path to the Markdown source, with `@site` alias. */
|
|
181
169
|
readonly source: string;
|
|
182
170
|
/**
|
|
183
171
|
* Used to generate the page h1 heading, tab title, and pagination title.
|
|
@@ -193,9 +181,7 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
193
181
|
* render the date regardless of the existence of `Intl.DateTimeFormat`.
|
|
194
182
|
*/
|
|
195
183
|
readonly formattedDate: string;
|
|
196
|
-
/**
|
|
197
|
-
* Full link including base URL.
|
|
198
|
-
*/
|
|
184
|
+
/** Full link including base URL. */
|
|
199
185
|
readonly permalink: string;
|
|
200
186
|
/**
|
|
201
187
|
* Description used in the meta. Could be an empty string (empty content)
|
|
@@ -229,17 +215,10 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
229
215
|
* `assets.authorsImageUrls` on client side.
|
|
230
216
|
*/
|
|
231
217
|
readonly authors: Author[];
|
|
232
|
-
/**
|
|
233
|
-
* Front matter, as-is.
|
|
234
|
-
*/
|
|
218
|
+
/** Front matter, as-is. */
|
|
235
219
|
readonly frontMatter: BlogPostFrontMatter & {[key: string]: unknown};
|
|
236
|
-
/**
|
|
237
|
-
|
|
238
|
-
*/
|
|
239
|
-
readonly tags: readonly {
|
|
240
|
-
readonly label: string;
|
|
241
|
-
readonly permalink: string;
|
|
242
|
-
}[];
|
|
220
|
+
/** Tags, normalized. */
|
|
221
|
+
readonly tags: Tag[];
|
|
243
222
|
};
|
|
244
223
|
/**
|
|
245
224
|
* @returns The edit URL that's directly plugged into metadata.
|
|
@@ -250,17 +229,11 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
250
229
|
* site path. Usually the same as `options.path` but can be localized
|
|
251
230
|
*/
|
|
252
231
|
blogDirPath: string;
|
|
253
|
-
/**
|
|
254
|
-
* Path to this post file, relative to `blogDirPath`
|
|
255
|
-
*/
|
|
232
|
+
/** Path to this post file, relative to `blogDirPath`. */
|
|
256
233
|
blogPath: string;
|
|
257
|
-
/**
|
|
258
|
-
* @see {@link BlogPostMetadata.permalink}
|
|
259
|
-
*/
|
|
234
|
+
/** @see {@link BlogPostMetadata.permalink} */
|
|
260
235
|
permalink: string;
|
|
261
|
-
/**
|
|
262
|
-
* Locale name.
|
|
263
|
-
*/
|
|
236
|
+
/** Locale name. */
|
|
264
237
|
locale: string;
|
|
265
238
|
}) => string | undefined;
|
|
266
239
|
|
|
@@ -325,7 +298,7 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
325
298
|
/**
|
|
326
299
|
* Plugin options after normalization.
|
|
327
300
|
*/
|
|
328
|
-
export type PluginOptions =
|
|
301
|
+
export type PluginOptions = MDXOptions & {
|
|
329
302
|
/** Plugin ID. */
|
|
330
303
|
id?: string;
|
|
331
304
|
/**
|