@docusaurus/plugin-content-blog 0.0.0-5576 → 0.0.0-5580
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/index.js +1 -2
- package/package.json +9 -9
- package/src/index.ts +1 -2
package/lib/index.js
CHANGED
|
@@ -227,7 +227,7 @@ async function pluginContentBlog(context, options) {
|
|
|
227
227
|
translateContent({ content, translationFiles }) {
|
|
228
228
|
return (0, translations_1.translateContent)(content, translationFiles);
|
|
229
229
|
},
|
|
230
|
-
configureWebpack(_config, isServer,
|
|
230
|
+
configureWebpack(_config, isServer, utils, content) {
|
|
231
231
|
const { admonitions, rehypePlugins, remarkPlugins, truncateMarker, beforeDefaultRemarkPlugins, beforeDefaultRehypePlugins, } = options;
|
|
232
232
|
const markdownLoaderOptions = {
|
|
233
233
|
siteDir,
|
|
@@ -256,7 +256,6 @@ async function pluginContentBlog(context, options) {
|
|
|
256
256
|
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
257
257
|
.map(utils_1.addTrailingPathSeparator),
|
|
258
258
|
use: [
|
|
259
|
-
getJSLoader({ isServer }),
|
|
260
259
|
{
|
|
261
260
|
loader: require.resolve('@docusaurus/mdx-loader'),
|
|
262
261
|
options: {
|
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-5580",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -18,13 +18,13 @@
|
|
|
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/types": "0.0.0-
|
|
25
|
-
"@docusaurus/utils": "0.0.0-
|
|
26
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
27
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-5580",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-5580",
|
|
23
|
+
"@docusaurus/mdx-loader": "0.0.0-5580",
|
|
24
|
+
"@docusaurus/types": "0.0.0-5580",
|
|
25
|
+
"@docusaurus/utils": "0.0.0-5580",
|
|
26
|
+
"@docusaurus/utils-common": "0.0.0-5580",
|
|
27
|
+
"@docusaurus/utils-validation": "0.0.0-5580",
|
|
28
28
|
"cheerio": "^1.0.0-rc.12",
|
|
29
29
|
"feed": "^4.2.2",
|
|
30
30
|
"fs-extra": "^11.1.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=16.14"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "5747bb1b763c2da5ac2af314c1a0b96a9542e0a1"
|
|
46
46
|
}
|
package/src/index.ts
CHANGED
|
@@ -359,7 +359,7 @@ export default async function pluginContentBlog(
|
|
|
359
359
|
return translateContent(content, translationFiles);
|
|
360
360
|
},
|
|
361
361
|
|
|
362
|
-
configureWebpack(_config, isServer,
|
|
362
|
+
configureWebpack(_config, isServer, utils, content) {
|
|
363
363
|
const {
|
|
364
364
|
admonitions,
|
|
365
365
|
rehypePlugins,
|
|
@@ -399,7 +399,6 @@ export default async function pluginContentBlog(
|
|
|
399
399
|
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
400
400
|
.map(addTrailingPathSeparator),
|
|
401
401
|
use: [
|
|
402
|
-
getJSLoader({isServer}),
|
|
403
402
|
{
|
|
404
403
|
loader: require.resolve('@docusaurus/mdx-loader'),
|
|
405
404
|
options: {
|