Skip to content

Commit f95bb67

Browse files
committed
Icon
1 parent ccc24bc commit f95bb67

File tree

6 files changed

+25
-20
lines changed

6 files changed

+25
-20
lines changed

docs/public/logo.png

40.1 KB
Loading

docs/public/logo.svg

Lines changed: 16 additions & 0 deletions
Loading

docs/zh/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hero:
1313
text: 下载
1414
link: https://apps.apple.com/app/apple-store/id6479691128
1515
image:
16-
src: /scripting-icon.png
16+
src: /logo.png
1717
alt: Logo
1818
features:
1919
- title: 高性能编辑器

rspress.config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ export default defineConfig({
55
root: path.join(__dirname, "docs"),
66
// outDir: "public",
77
title: "Scripting",
8-
icon: "/icon-512.png",
9-
logo: {
10-
light: "/scripting-icon.png",
11-
dark: "/scripting-icon.png",
12-
},
8+
icon: "/icon.png",
9+
logo: "/logo.png",
1310
logoText: "Scripting",
1411
route: {
1512
cleanUrls: true,

scripts/docs-beta.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ const processDocItem = (item, parentPath = "", language = "en") => {
2121
const basePath = path.join(docsPath, language, "guide", "docs", parentPath, folderName);
2222

2323
// 生成 _meta.json
24-
if (children && children.length > 0) {
25-
const metaPath = path.join(path.join(docsPath, language, "guide", "docs", parentPath), "_meta.json");
26-
if (!fs.existsSync(metaPath)) {
27-
writeFile(metaPath, JSON.stringify([], null, 2));
28-
}
29-
30-
const metaJson = JSON.parse(readFile(metaPath));
24+
const metaPath = path.join(path.join(docsPath, language, "guide", "docs", parentPath), "_meta.json");
25+
if (!fs.existsSync(metaPath)) {
26+
writeFile(metaPath, JSON.stringify([], null, 2));
27+
}
28+
const metaJson = JSON.parse(readFile(metaPath));
3129

30+
if (children) {
3231
metaJson.push({
3332
type: "dir",
3433
name: folderName,
@@ -38,13 +37,6 @@ const processDocItem = (item, parentPath = "", language = "en") => {
3837
});
3938
writeFile(metaPath, JSON.stringify(metaJson, null, 2));
4039
} else {
41-
const metaPath = path.join(path.join(docsPath, language, "guide", "docs", parentPath), "_meta.json");
42-
if (!fs.existsSync(metaPath)) {
43-
writeFile(metaPath, JSON.stringify([], null, 2));
44-
}
45-
46-
const metaJson = JSON.parse(readFile(metaPath));
47-
4840
metaJson.push({
4941
type: "file",
5042
name: folderName,

0 commit comments

Comments
 (0)