Skip to content

Commit

Permalink
完善欢迎页,添加示例图 (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Oct 14, 2024
1 parent 7f19a57 commit 27ea3a7
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
23 changes: 23 additions & 0 deletions docs/WELCOME.md
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# vscode-background

欢迎使用 `background@${VERSION}`,新版本带来了更多的功能,使你拥有更好的编码体验!

## 更多的可配置区域

每块区域都可以自定义 `图片``轮播``随机展示``样式` 等。

<img src="../images/containers.png" width="800" />

## 更清晰简洁的配置

> v1 的配置已经过时,需要进行迁移。当前保持一定的兼容性。
每块区域对应独立配置,查看 [README.md](https://github.com/shalldie/vscode-background) 了解更多。

```json
{
"background.sidebar": {...}, // 侧边栏
"background.editor": {...}, // 编辑器
"background.panel": {...}, // 面板
"background.fullscreen": {...} // 全屏
}
```
23 changes: 21 additions & 2 deletions docs/WELCOME.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# vscode-background

![](../images/logo.png)
欢迎使用 `background@${VERSION}`,新版本带来了更多的功能,使你拥有更好的编码体验!

欢迎使用 `background@${VERSION}` !
## 更多的可配置区域

每块区域都可以自定义 `图片``轮播``随机展示``样式` 等。

<img src="../images/containers.png" width="800" />

## 更清晰简洁的配置

> v1 的配置已经过时,需要进行迁移。当前保持一定的兼容性。
每块区域对应独立配置,查看 [README.md](https://github.com/shalldie/vscode-background) 了解更多。

```json
{
"background.sidebar": {...}, // 侧边栏
"background.editor": {...}, // 编辑器
"background.panel": {...}, // 面板
"background.fullscreen": {...} // 全屏
}
```
Binary file added images/containers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fullscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/section.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/background/Background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class Background implements Disposable {
// welcome 内容
let content = await fs.promises.readFile(path.join(docDir, docName), ENCODING);
// 替换图片内联为base64
content = content.replace(/\.\.\/images[^\)]+/g, (relativePath: string) => {
content = content.replace(/\.\.\/images[^\")]+/g, (relativePath: string) => {
const imgPath = path.join(vscodePath.extensionRoot, 'images', relativePath);

return (
Expand Down

0 comments on commit 27ea3a7

Please sign in to comment.