From 14b75894f26764e43c7c4cc3dc0c5ec14b917cd1 Mon Sep 17 00:00:00 2001
From: fujidana <53413319+fujidana@users.noreply.github.com>
Date: Tue, 20 Oct 2026 15:54:29 +0900
Subject: [PATCH] fix: incorrect link to local files created by `init -l`
---
lib/commands/init.js | 8 ++++----
lib/template/index.local.html | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/commands/init.js b/lib/commands/init.js
index 051fe62..2bc0df8 100644
--- a/lib/commands/init.js
+++ b/lib/commands/init.js
@@ -67,11 +67,11 @@ async function createFile(path, local, rcMode, theme, plugins) {
const vendor =
exists(cwd('node_modules/docsify')) || pwd('../node_modules/docsify')
- cp(resolve(vendor, 'dist/docsify.min.js'), target('vendor/docsify.js'))
- cp(resolve(vendor, 'dist/themes/core.css'), target('vendor/themes/core.css'))
+ cp(resolve(vendor, 'dist/docsify.min.js'), target('vendor/docsify.min.js'))
+ cp(resolve(vendor, 'dist/themes/core.min.css'), target('vendor/themes/core.min.css'))
cp(
- resolve(vendor, `dist/themes/addons/${theme}.css`),
- target(`vendor/themes/addons/${theme}.css`)
+ resolve(vendor, `dist/themes/addons/${theme}.min.css`),
+ target(`vendor/themes/addons/${theme}.min.css`)
)
}
diff --git a/lib/template/index.local.html b/lib/template/index.local.html
index 65c5550..c82e26b 100644
--- a/lib/template/index.local.html
+++ b/lib/template/index.local.html
@@ -16,6 +16,6 @@
repo: ''
}
-
+