@portosaur/core 0.5.0 → 0.6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portosaur/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "The engine of portosaur that translates YAML configuration into Docusaurus structures.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"author": "soymadip",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"types": "./src/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@portosaur/logger": "^0.
|
|
30
|
+
"@portosaur/logger": "^0.6.2",
|
|
31
31
|
"favicons": "^7.2.0",
|
|
32
32
|
"js-yaml": "^4.1.1",
|
|
33
33
|
"rehype-katex": "7",
|
|
@@ -349,6 +349,12 @@ export function buildDocuConfig(rawUserConfig, projectDir, context = {}) {
|
|
|
349
349
|
language: ["en"],
|
|
350
350
|
},
|
|
351
351
|
],
|
|
352
|
+
[
|
|
353
|
+
path.join(portoPaths.plugins, "theme.mjs"),
|
|
354
|
+
{
|
|
355
|
+
themeDir: portoPaths.theme,
|
|
356
|
+
},
|
|
357
|
+
],
|
|
352
358
|
],
|
|
353
359
|
|
|
354
360
|
// ------- Plugins -------
|
|
@@ -364,26 +370,6 @@ export function buildDocuConfig(rawUserConfig, projectDir, context = {}) {
|
|
|
364
370
|
],
|
|
365
371
|
|
|
366
372
|
plugins: [
|
|
367
|
-
function portosaurWebpackLoader(context, options) {
|
|
368
|
-
return {
|
|
369
|
-
name: "portosaur-webpack-loader",
|
|
370
|
-
configureWebpack(config, isServer, utils) {
|
|
371
|
-
return {
|
|
372
|
-
module: {
|
|
373
|
-
rules: [
|
|
374
|
-
{
|
|
375
|
-
test: /\.jsx?$/,
|
|
376
|
-
include: [
|
|
377
|
-
path.resolve(portoPaths.theme ?? context.portoRoot ?? ""),
|
|
378
|
-
],
|
|
379
|
-
use: [utils.getJSLoader({ isServer })],
|
|
380
|
-
},
|
|
381
|
-
],
|
|
382
|
-
},
|
|
383
|
-
};
|
|
384
|
-
},
|
|
385
|
-
};
|
|
386
|
-
},
|
|
387
373
|
[
|
|
388
374
|
"@docusaurus/plugin-pwa",
|
|
389
375
|
{
|