都会有一个“运行”按钮。您还可以通过向脚本标记添加属性来自定义嵌入式终端: data-cwd="folder-name" :终端中的起始工作目录 data-config="https://yourwebsite.com/config.json" :可选的远程配置 URL,使用与 GitHub 集成使用的 sandboxbio.config.json 文件相同的格式。该文件也可以托管在 GitHub Pages 上。如果需要在终端中预加载文件,可以在配置中使用数组文件,并指定每个文件所在位置的 URL: { tools: [ { "url": "https://.github.io//data/example.bam", "path": "example.bam" } ] }
开发者生态
morning
Show HN:在您的网站上嵌入真正的 Linux 终端
摘要
Embed sandbox.bio Add a live terminal to your website or blog post You can embed a sandbox.bio terminal directly on your website or blog post. Simply add this script tag to your page: If you use GitHu...
the
terminal
config
your
can
you
GitHub
data
file
sandbox
2026-08-15
1 阅读
约1分钟阅读
raboukhalil
字号:
嵌入 sandbox.bio 将实时终端添加到您的网站或博客文章 您可以将 sandbox.bio 终端直接嵌入到您的网站或博客文章中。只需将此脚本标记添加到您的页面中: 如果您使用 GitHub Pages,您标记为 ``bash 的任何 Markdown 代码块都会有一个“运行”按钮,可以直接在嵌入式终端中执行。对于 HTML 网站,任何具有“language-bash”类的
这篇文章对您有帮助吗?
订阅66必读
每日精选科技资讯,直达你的邮箱