@sugarat/theme 0.1.44 → 0.1.46
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/node.js +4 -3
- package/package.json +2 -2
- package/src/styles/index.scss +8 -0
- package/src/utils/node/vitePlugins.ts +3 -2
package/node.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(node_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(node_exports);
|
|
34
34
|
|
|
35
|
-
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.
|
|
35
|
+
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.13_vue@3.3.4/node_modules/vitepress-plugin-tabs/dist/index.js
|
|
36
36
|
var tabsMarker = "=tabs";
|
|
37
37
|
var tabsMarkerLen = tabsMarker.length;
|
|
38
38
|
var ruleBlockTabs = (state, startLine, endLine, silent) => {
|
|
@@ -552,10 +552,11 @@ function inlinePagefindPlugin(buildEndFn) {
|
|
|
552
552
|
const { log } = console;
|
|
553
553
|
log();
|
|
554
554
|
log("=== pagefind: https://pagefind.app/ ===");
|
|
555
|
-
|
|
555
|
+
const siteDir = import_path3.default.join(
|
|
556
556
|
process.argv.slice(2)?.[1] || ".",
|
|
557
557
|
".vitepress/dist"
|
|
558
|
-
)
|
|
558
|
+
);
|
|
559
|
+
let command = `npx pagefind --site ${siteDir} --output-subdir "_pagefind"`;
|
|
559
560
|
if (ignore.length) {
|
|
560
561
|
command += ` --exclude-selectors "${ignore.join(", ")}"`;
|
|
561
562
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sugarat/theme",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"exports": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"sass": "^1.56.1",
|
|
52
52
|
"tsup": " ^6.5.0",
|
|
53
53
|
"typescript": "^4.8.2",
|
|
54
|
-
"vitepress": "1.0.0-rc.
|
|
54
|
+
"vitepress": "1.0.0-rc.13",
|
|
55
55
|
"vitepress-plugin-tabs": "^0.2.0",
|
|
56
56
|
"vue": "^3.3.4"
|
|
57
57
|
},
|
package/src/styles/index.scss
CHANGED
|
@@ -42,10 +42,11 @@ export function inlinePagefindPlugin(buildEndFn: any[]) {
|
|
|
42
42
|
const { log } = console
|
|
43
43
|
log()
|
|
44
44
|
log('=== pagefind: https://pagefind.app/ ===')
|
|
45
|
-
|
|
45
|
+
const siteDir = path.join(
|
|
46
46
|
process.argv.slice(2)?.[1] || '.',
|
|
47
47
|
'.vitepress/dist'
|
|
48
|
-
)
|
|
48
|
+
)
|
|
49
|
+
let command = `npx pagefind --site ${siteDir} --output-subdir "_pagefind"`
|
|
49
50
|
|
|
50
51
|
if (ignore.length) {
|
|
51
52
|
command += ` --exclude-selectors "${ignore.join(', ')}"`
|