Skip to content

Commit 6366352

Browse files
committed
0
1 parent f8d513b commit 6366352

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

docs/packager/embedding.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ hide_table_of_contents: true
44
sidebar_label: Embedding
55
---
66

7+
# 嵌入打包器
8+
9+
!!! info "注意了"
10+
这个页面是关于[TurboWarp 打包器](https://turbowarp.org/)的。如果你只想知道如何嵌入Scratch项目到网站,查看[另一个嵌入页面](/website/embedding/).
11+
12+
13+
You can embed the output of the TurboWarp Packager into another website:
14+
15+
```html
16+
<iframe src="path_to_project.html" width="480" height="360" allowtransparency="true" frameborder="0" scrolling="no" allowfullscreen></iframe>
17+
```
18+
19+
Depending on the environment you used, where you stored the project, and what you named it, the `src` attribute will vary.
20+
21+
- If you used "Plain HTML", it's just the path to the HTML file.
22+
- If you used "Zip", it's the path to the file `index.html` contained within the extracted zip.
23+
24+
If you have controls enabled, add 48 to the value of `height` to avoid the stage getting shrunk.
25+
726
# Embedding the packager
827

928
:::info

docs/packager/index.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ slug: TurboWarp打包器
33
hide_table_of_contents: true
44
---
55

6-
# TurboWarp Packager
6+
# TurboWarp 打包器
77

8-
!!! info
9-
Use the TurboWarp Packager here: https://packager.turbowarp.org/
8+
!!! info "注意啦"
9+
在这里使用 TurboWarp 打包器: [https://packager.turbowarp.org/](https://packager.turbowarp.org/)
1010

1111
The TurboWarp Packager converts Scratch projects into HTML files, zip archives, or executable programs for Windows, macOS, and Linux. It's like HTMLifier and the forkphorus packager.
1212

1313
This is the place where some extra documentation goes. Use the sidebar on the left to navigate.
14+
15+
TurboWarp 打包器转换Scratch文件为HTML、zip文件,或者转换为适用于Windows、macOS、Linux的应用程序。就像HTMLifier和forkphorus打包器一样.
16+
17+
18+
这里包含一些其它不常需要参阅的文档,你可以使用上面的菜单栏来导航。

0 commit comments

Comments
 (0)