oceanpress 1.0.14 → 1.0.15
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/dist-cli/cli.js +3 -4
- package/dist-cli/cli.js.map +1 -1
- package/package.json +1 -1
package/dist-cli/cli.js
CHANGED
|
@@ -271,11 +271,7 @@ var defaultConfig = {
|
|
|
271
271
|
/** Markdown 镜像导出配置 */
|
|
272
272
|
markdownMirror: {
|
|
273
273
|
enable: false,
|
|
274
|
-
outputDir: "",
|
|
275
274
|
includeAssets: false,
|
|
276
|
-
watchMode: false,
|
|
277
|
-
/** 定时同步间隔(毫秒) */
|
|
278
|
-
watchInterval: 6e4,
|
|
279
275
|
/** 是否移除头部和底部(侧边栏、导航、footer 等) */
|
|
280
276
|
removeTemplate: false
|
|
281
277
|
},
|
|
@@ -563,6 +559,7 @@ var MarkdownMirrorPlugin = class {
|
|
|
563
559
|
if (otherConfig?.beforeFileTree) {
|
|
564
560
|
await otherConfig.beforeFileTree(tree, effectApi);
|
|
565
561
|
}
|
|
562
|
+
console.log("[MarkdownMirrorPlugin] config.markdownMirror?.enable:", config.markdownMirror?.enable);
|
|
566
563
|
if (config.markdownMirror?.enable) {
|
|
567
564
|
effectApi.log("\n=== \u5F00\u59CB Markdown \u955C\u50CF\u5BFC\u51FA ===");
|
|
568
565
|
try {
|
|
@@ -2865,7 +2862,9 @@ var OceanPress = class {
|
|
|
2865
2862
|
deployOceanPressServer_plugin(this.config)
|
|
2866
2863
|
);
|
|
2867
2864
|
}
|
|
2865
|
+
console.log("[OceanPress constructor] config.markdownMirror?.enable:", config.markdownMirror?.enable);
|
|
2868
2866
|
if (config.markdownMirror?.enable) {
|
|
2867
|
+
console.log("[OceanPress] \u6CE8\u518C MarkdownMirror \u63D2\u4EF6");
|
|
2869
2868
|
this.pluginCenter.registerPlugin(
|
|
2870
2869
|
new MarkdownMirrorPlugin(config.markdownMirror)
|
|
2871
2870
|
);
|